V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
flylzj
V2EX  ›  科技

技术询问,关于 nextjs 文档

  •  
  •   flylzj · Mar 20, 2024 · 2068 views
    This topic created in 769 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
        1
    Iamadog  
       Mar 20, 2024
    你去 template 里面找找有没有 blog 模版,你可以看一下他们的
    yangg
        2
    yangg  
       Mar 20, 2024
    直接 Docusaurus ?
    jguo
        3
    jguo  
       Mar 20, 2024
    没看代码,但我猜/docs 下的页面用了同一个 layout
    https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts#layouts
    binhb
        4
    binhb  
       Mar 20, 2024 via iPhone
    你可能在找 nextra
    https://github.com/shuding/nextra
    flylzj
        5
    flylzj  
    OP
       Mar 20, 2024
    @binhb 确实是我想要的,感谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5917 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 06:27 · PVG 14:27 · LAX 23:27 · JFK 02:27
    ♥ Do have faith in what you're doing.