Skip to content

Commit

Permalink
chore(docs): fix guide to example links
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Sep 15, 2024
1 parent 060db41 commit 1aa55ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-examples-derivatives/generate-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const generateDocs = async (examples: Example[]) => {
await Promise.all(
Object.entries(groups).map(async ([groupName, examples]) => {
const codeLinks = examples.map(example => {
return `<a href="../../examples/${example.fileName.canonical}">${example.fileName.canonicalTitle}</a>`
return `<a href="../../examples/${example.group.humanName}/${example.fileName.canonical}">${example.fileName.canonicalTitle}</a>`
}).join(` <span class="ExampleLinksSeparator"></span> `)
const code =
`<p class="ExampleLinks">Examples <span class="ExampleLinksTitleSeparator">-></span> ${codeLinks}</p>`
Expand Down

0 comments on commit 1aa55ca

Please sign in to comment.