Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page exclusion from docs #59

Open
matteofrana opened this issue Dec 16, 2020 · 8 comments
Open

Page exclusion from docs #59

matteofrana opened this issue Dec 16, 2020 · 8 comments

Comments

@matteofrana
Copy link

matteofrana commented Dec 16, 2020

Hi Shu,
I'd like to have the docs root in /pages/docs, but have a content site in the /pages root folder.
So I'd like to have a way to exclude pages from the docs navigation or set the documentation root folder.

What do you think?
Matteo

@davehorton
Copy link

I am interested in this feature as well...is there currently a way to accomplish this?

@shuding shuding added the enhancement New feature or request label Apr 3, 2021
@shuding
Copy link
Owner

shuding commented Apr 3, 2021

Yeah this will be an important feature to support (setting project root).

@davehorton
Copy link

Is this a change in nextra, or in next itself? I would be happy to take a shot at making the change if you could point me in the right direction...

@kitajchuk
Copy link

It seems like you might be able to add an extra config option or use the path config option to determine which files/directories to generate the pageMap.

https://github.com/shuding/nextra/blob/core/packages/nextra-theme-docs/src/index.js#L174

@shuding shuding added feature request and removed enhancement New feature or request labels Jun 23, 2021
@talentlessguy
Copy link

does anyone know how to set a docs root right now?

@mattvb91
Copy link

has anyone managed to solve this?

@carlbrn
Copy link

carlbrn commented Mar 13, 2023

You can deploy your application as a sub-path in nextjs. Learn more: https://nextjs.org/docs/api-reference/next.config.js/basepath

There should be a way to set up the rewrites in next.config, I don't know how to.

@NasirAbdullahSyed
Copy link

Need this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants