flylzj
V2EX  ›  科技

技术询问,关于 nextjs 文档

  •  
  •   flylzj · Mar 20, 2024 · 2629 views
    This topic created in 959 days ago, the information mentioned may be changed or developed.
    最近正在学习用 next.js 建文档站,想问下各位 nextjs.org 的 Doc 页面的目录是如何生成的,我看了它的 github 源码是通过 mdx 生成的,尝试了一下 Nextjs 的 mdx 教程,但是没办法生成左侧的页面目录以及右侧的文章目录,请问这部分功能是如何实现的
    5 replies  •  2024-03-20 23:11:43 +08:00
    Iamadog
    Iamadog
    Mar 20, 2024
    1
    你去 template 里面找找有没有 blog 模版,你可以看一下他们的
    yangg
    yangg
    Mar 20, 2024
    2
    直接 Docusaurus ?
    jguo
    jguo
    Mar 20, 2024
    3
    没看代码,但我猜/docs 下的页面用了同一个 layout
    https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts#layouts
    binhb
    binhb
    Mar 20, 2024 via iPhone
    4
    你可能在找 nextra
    https://github.com/shuding/nextra
    flylzj
    flylzj
    OP
    Mar 20, 2024
    5
    @binhb 确实是我想要的,感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1388 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 20:18 · PVG 04:18 · LAX 12:18 · JFK 15:18
    ♥ Do have faith in what you're doing.