Skip to content

Commit

Permalink
feat: stubs for learn category (#2100)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhyll authored May 1, 2024
1 parent 54d8cff commit 3f9a96e
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 3 deletions.
11 changes: 8 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ export default defineConfig({
collapsed: true,
autogenerate: { directory: 'distribute' },
},
{
label: 'Learn',
collapsed: true,
autogenerate: { directory: 'learn' },
},
{
label: 'Features & Recipes',
collapsed: true,
Expand Down Expand Up @@ -253,9 +258,9 @@ function i18nRedirect(from, to) {
locale === 'root'
? (routes[from] = to)
: (routes[`/${locale}/${from.replaceAll(/^\/*/g, '')}`] = `/${locale}/${to.replaceAll(
/^\/*/g,
''
)}`)
/^\/*/g,
''
)}`)
);
return routes;
}
13 changes: 13 additions & 0 deletions src/content/docs/learn/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Learn
sidebar:
order: 0
label: Overview
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />
11 changes: 11 additions & 0 deletions src/content/docs/learn/sidecar-nodejs.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Node.js as a sidecar
sidebar:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />
11 changes: 11 additions & 0 deletions src/content/docs/learn/sidecar-python.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Python as a sidecar
sidebar:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />
11 changes: 11 additions & 0 deletions src/content/docs/learn/splashscreen.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Splashscreen
sidebar:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />
11 changes: 11 additions & 0 deletions src/content/docs/learn/tokio-runtime.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Custom Tokio runtime
sidebar:
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />

0 comments on commit 3f9a96e

Please sign in to comment.