Next.js Discord

Discord Forum

Where is the code that renders the Next.js docs website?

Answered
Giant panda posted this in #help-forum
Open in Discord
Avatar
Giant pandaOP
I see the docs .mdx files, but I can't for the life of me find the code that actually renders that web app. Can somebody point me to it (if it's on GitHub)? https://github.com/vercel/next.js/tree/main/docs
Answered by joulev
It’s not open source. Use useSelectedLayoutSegments for the breadcrumbs
View full answer

7 Replies

Avatar
Giant pandaOP
Looks like it may not be open source 😦 was looking for how they implemented the breadcrumbs, to see if it was hardcoded in each page (like the dashboard tutorial does) or how else they might have implemented it dynamically
Avatar
If you want to build some document website, I would recommend you to start from a template.
https://fumadocs.vercel.app/
TAL @Giant panda
Avatar
I think they just use MDX?
Its just plain Markdown with jsx
Avatar
It’s not open source. Use useSelectedLayoutSegments for the breadcrumbs
Answer
Avatar
Giant pandaOP
oh, amazing, that's exactly what i needed. thank you
this is also awesome, thanks for sharing. they even have the cool little table of contents indicator like the Clerk docs
Image