jpedroschmitz / rocketdocs

Easy to use Gatsby Theme to create documentation websites ⚡️🔥
https://rocketdocs-gatsby.vercel.app/
MIT License
254 stars 95 forks source link

Prev/Next links don't honor sidebar.yml order #2

Closed robmcguinness closed 4 years ago

robmcguinness commented 4 years ago

Description of bug

Prev and Next links appear to be in alphebetical order vs using the order of the sidebar.yml

To Reproduce

  1. Go to https://rocketdocs.netlify.com/usage/creating-docs
  2. Scroll down to to view Prev and Next links
  3. Notice the page links

Expected behavior

Prev is set to Navigation when it should be Getting Started and Next is set to Getting Started when it should be Navigation. The Next and Prev page links should use the order of sidebar.yml

Screenshots

image

Environment: N/A

Additional context

---

Apologies if I'm off the mark 🎉

jpedroschmitz commented 4 years ago

Hey @robmcguinness, thanks for opening this issue. We are aware of this problem and are planning to fix it on the next version of the project, that will be released in the next days 💜

Sorry for the inconvenience and keep rocking 🚀

robmcguinness commented 4 years ago

No worries! Thanks for great theme!

jpvalery commented 4 years ago

Any updates on this? Or how can I shadow https://github.com/Rocketseat/gatsby-themes/blob/master/%40rocketseat/gatsby-theme-docs/src/components/Docs/PostNav/index.js to use filenames as sorting order?

jpedroschmitz commented 4 years ago

Hey @jpvalery and @robmcguinness! I have already fixed this issue and I am going to release it as soon as I can. Thanks for your patience 💜

jpedroschmitz commented 4 years ago

Guys, I have released version 2.1.0, that adds a table of content for pages, a button to edit page on GitHub and fixes the issue with prev/next links 🚀

Also, I want to update the docs with more use cases and information. I would love suggestions or even PR's 😍If you have further questions or features request please create a new issue! For now, I am closing this. Thanks again for your patience and for using the theme 💜