From eed99c7b7ffb124cf7c01096e8e3dae605eb3455 Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 24 Jun 2024 21:19:03 -0700 Subject: [PATCH] feat: examples page --- docs/astro.config.ts | 5 ++++- docs/src/content/docs/examples.mdx | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 docs/src/content/docs/examples.mdx diff --git a/docs/astro.config.ts b/docs/astro.config.ts index 63ba80a..6a112b4 100644 --- a/docs/astro.config.ts +++ b/docs/astro.config.ts @@ -57,7 +57,6 @@ export default defineConfig({ keepBackground: true, theme: moonlightTheme, transformers: [ - transformerTwoslash({ renderer: rendererRich() }), transformerCopyButton({ visibility: 'always', feedbackDuration: 2_500, @@ -101,6 +100,10 @@ export default defineConfig({ collapsed: false, }, }, + { + label: 'Examples', + link: '/examples', + }, ], }), tailwind({ applyBaseStyles: false }), diff --git a/docs/src/content/docs/examples.mdx b/docs/src/content/docs/examples.mdx new file mode 100644 index 0000000..0e763de --- /dev/null +++ b/docs/src/content/docs/examples.mdx @@ -0,0 +1,11 @@ +--- +title: Examples +description: rehype-pretty-code examples +--- +import { LinkCard, CardGrid } from '@astrojs/starlight/components'; + + + + + +