Skip to content

Commit

Permalink
use dynamic guide links
Browse files Browse the repository at this point in the history
  • Loading branch information
souporserious committed Oct 8, 2024
1 parent 27d260c commit 4a82611
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions apps/site/guides/AllGuides.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { GuidesCollection } from '@/collections'
import { Card } from '@/components/Card'

export function AllGuides() {
return GuidesCollection.getSources().then((sources) =>
sources.map((source, index) => (
<Card key={index} href={source.getPath()} label={source.getTitle()} />
))
)
}
5 changes: 3 additions & 2 deletions apps/site/guides/index.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { AllGuides } from './AllGuides'

export const metadata = {
title: 'Guides',
description:
'Renoun works with most JavaScript libraries, enhancing flexibility and compatibility. These guides will help you integrate Renoun with your favorite library.',
}

<Row>
<Card href="/guides/next" label="Next.js" />
<Card href="/guides/waku" label="Waku" />
<AllGuides />
</Row>

Don't see a guide for the library you use? [Request a guide](https://github.com/souporserious/renoun/issues/new?title=requesting%20a%20guide%20for%20%3Cframework-here%3E) and we'll help you get started!
Expand Down

0 comments on commit 4a82611

Please sign in to comment.