Skip to content

Commit

Permalink
feat: examples page
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed Jun 25, 2024
1 parent 7116621 commit eed99c7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default defineConfig({
keepBackground: true,
theme: moonlightTheme,
transformers: [
transformerTwoslash({ renderer: rendererRich() }),
transformerCopyButton({
visibility: 'always',
feedbackDuration: 2_500,
Expand Down Expand Up @@ -101,6 +100,10 @@ export default defineConfig({
collapsed: false,
},
},
{
label: 'Examples',
link: '/examples',
},
],
}),
tailwind({ applyBaseStyles: false }),
Expand Down
11 changes: 11 additions & 0 deletions docs/src/content/docs/examples.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Examples
description: rehype-pretty-code examples
---
import { LinkCard, CardGrid } from '@astrojs/starlight/components';

<LinkCard title="Next.js" href="https://github.com/rehype-pretty/rehype-pretty-code/tree/master/examples/next" />
<LinkCard title="Astro" href="https://github.com/rehype-pretty/rehype-pretty-code/tree/master/examples/astro" />
<LinkCard title="Astro Starlight" href="https://github.com/rehype-pretty/rehype-pretty-code/tree/master/docs" />
<LinkCard title="Svelte" href="https://github.com/rehype-pretty/rehype-pretty-code/tree/master/examples/sveltekit" />
<LinkCard title="HTML - CDN" href="https://github.com/rehype-pretty/rehype-pretty-code/tree/master/examples/cdn" />

0 comments on commit eed99c7

Please sign in to comment.