Multiple project documentation #4051
Replies: 1 comment
-
I'm not sure how you'd get separate sidebar menus and the navigation features you mentioned - seems plausible but I haven't tried anything like that. However I have been experimenting with ways you can combine documentation source from multiple sites/repos, under one consolidated Nextra menu/sidebar structure (assuming your have a project/repo holding the "root" of your content tree) Option 1: Nextra's Remote Content support is a bit tedious to set up, but it does work - including support for static exports. However, there are some limits - the method shown merges the remote content in as a top level branch of your pagemap/navigagtion menu, but if you want it somewhere else (deeper in your navigation tree) you'll have to figure that out. I experimented with this a bit, but eventually decided try something else. Option 2: you can create symbolic links under your "root" project's Nextra content directory to the others. This partially worked, but had some problems Option 3: you can move the documentation for each project into a separate dedicated repo only for that project's documentation content (i.e. your mdx files). Then you can put it back in the project as a submodule. AND you can add it as a submodule to your "root" project. This is the approach I just switched to, and so far it's working well |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to create documentation using Nextra for multiple projects under the same site?
For example:
site.com/docs/main-project
site.com/docs/other-project
Or similar to these examples:
https://swr.vercel.app/docs/getting-started
https://swr.vercel.app/examples/basic
My goal is to have separate sidebar menus and distinct "Previous" and "Next" navigation buttons for each project. How can I achieve this?
Im new for using Nextra
Beta Was this translation helpful? Give feedback.
All reactions