Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/lib/get-markdown-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export async function getMarkdownContent(pagePath: string): Promise<string> {

// Normalize the path - remove leading/trailing slashes and 'content/' prefix if present
let normalizedPath = pagePath.replace(/^\/|\/$/g, "").replace(/^content\//, "");

// Remove file extension (.mdx, .md) as page.path from fumadocs doesn't include it
normalizedPath = normalizedPath.replace(/\.mdx?$/, "");

// Try to find a matching page
// page.path from Fumadocs is typically in the format 'docs/...' or similar
Expand Down
Loading