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

Configuration to tell nav to include non-specified entries without and ... rest option #38

Open
mrmanc opened this issue Jan 22, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@mrmanc
Copy link

mrmanc commented Jan 22, 2021

Love the plugin—it was probably the killer feature that persuaded us to migrate our docs to mkdocs from Jekyll, as it was so simple for a contributor to add a page to the navigation.

I recently migrated the pages files to replace arrange: with nav: as I spotted it was a deprecated syntax but failed to spot the change in functionality 🤦🏻‍♂️. I’ve just worked out (after spotting #20) why some pages weren’t showing, and now understand how to fix that.

However, I’m worried that our contributors won’t understand that when they add a page to a folder with a .pages file (or when they create a .pages file) that they need to specify explicitly where unmentioned items should sit. They aren’t familiar with how mkdocs and it’s plugins work, as we encourage all engineers across the organisation to contribute to the site.

We never really want to hide pages in the navigation, and I’m conscious that the next major release will remove arrange: support, so I wondered if it would be possible to add plugin configuration to be able to disable this part of the nav: functionality? I think it will save people some head-scratching in the future for sites like ours.

Thanks!

@lukasgeiter
Copy link
Owner

I'm glad to hear you like the plugin. I can see how this behavior might cause users to accidentally hide pages.
Having an option for it makes sense and should be fairly straightforward to implement. I'll definitely make sure to have a solution for your case before removing arrange completely.

@lukasgeiter lukasgeiter added the enhancement New feature or request label Jan 22, 2021
@mrmanc
Copy link
Author

mrmanc commented Jan 22, 2021

Amazing, thanks so much 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants