hasura / gatsby-gitbook-starter

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

Support for ordering sidebar by frontmatter: order? #91

Closed monkey5an closed 3 years ago

monkey5an commented 3 years ago

New to Gatsby, here's my question:

How can I set up this starter so that it sorts articles in sidebar by a frontmatter value, such as order, so that articles are not sorted alphabetically by title, which is hugely unhelpful in almost any documentation context.

monkey5an commented 3 years ago

The existing system works well enough, and I have since learned how to make the change myself if needed.

Thanks.

swarupdonepudi commented 3 years ago

@monkey5an could you please elaborate on what you have done to fix this default behavior of expanding all the sidebar items by default.

donenoyes commented 3 years ago

@monkey5an Can you share what code you changed for sort order?