Skip to content

Commit 630d90e

Browse files
committed
fix(docs): fetch raw markdown content of the docs page
1 parent 0df91e8 commit 630d90e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/docs/app/(docs)/[...slug]/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ export default async function Page(props: {
1818
if (!page) notFound();
1919

2020
const MDXContent = page.data.body;
21+
const markdownUrl = `/llms.mdx${page.url}`
2122

2223
return (
2324
<DocsPage toc={page.data.toc} full={page.data.full}>
2425
<DocsTitle>{page.data.title}</DocsTitle>
2526
<DocsDescription className="!mb-2">{page.data.description}</DocsDescription>
2627
<div className="flex flex-row gap-2 items-center border-b pb-6">
27-
<LLMCopyButton markdownUrl={`${page.url}.mdx`} />
28+
<LLMCopyButton markdownUrl={markdownUrl} />
2829
<ViewOptions
29-
markdownUrl={`${page.url}.mdx`}
30+
markdownUrl={markdownUrl}
3031
githubUrl={`https://github.com/MeshJS/mimir/tree/main/apps/docs/content/docs/${page.path}`}
3132
/>
3233
</div>

0 commit comments

Comments
 (0)