hasura / gatsby-gitbook-starter

Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
https://hasura.io/learn/graphql/react/introduction/
MIT License
983 stars 378 forks source link

Feature request: allow forcedNavOrder to handle ordering of multiple levels and items within them #93

Open pdesmarets opened 3 years ago

pdesmarets commented 3 years ago

The documentation says "For sub nesting in left sidebar, create a folder with the same name as the top level .md filename and the sub navigation is auto-generated. The sub navigation is alphabetically ordered."

And manual numbering of files and folders, while possible for small static structures, is not practical for larger and more dynamic structures.

Would you please consider allowing a declaration in forcedNavOrder of the entire tree structure of the nav? Or some sort of practical workaround?

AlewsonRyan commented 2 years ago

This is also a need of mine. I have a list of lessons that I need to be sequence in the right order for the user to go through the entire tutorial. the name of the MD file ( or the Title of the page) does not suffice in accomplishing this requirement.

Thanks for providing.