-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Highlight current page or section in table of contents #60
Comments
@NateWr, I love the new split navigation menu for the table of contents in the Docs Hub, but it would be even better if the current chapter or section that the user is in could be highlighted. This would make it a lot easier for the user to remember which chapter or section they're in and to navigate to another chapter or section. Would it be hard to implement this? |
Mmm, yes a bit more tricky because we are storing the table of contents as markdown instead of structured data (like the yaml files where cards are defined). This has been the source of some of the other challenges we have (ie - next/previous pages or links to this page in another language). We inherited this structure from the original conversion over from gitbooks. To resolve this and related issues, we'd need to convert every * [Preface](.)
* [Introduction](./introduction.md)
* [Background](./introduction.md#background)
* [OJS Features](./introduction.md#ojs-features)
... To something like: toc:
- name: "Preface"
path: "."
- name: Introduction
path: "./introduction.md"
sections:
- name: "Background"
path: "./introduction.md#background"
- name: "OJS Features"
path: "./introduction.md#ojs-features" I might be able to write an automated conversion tool, but we may need the docs team to do the conversion manually. We may also need to move these files out of their respective categories and into the If it sounds like grunt work the docs team would be willing to do, I can try to set aside a little bit of time in the next few weeks for a quick experiment to see if we can implement some of these features fairly easily... |
One concern I have with moving things into the |
Yeah that would be a significant downside. I did a quick search but didn't find anything suggesting we could access data files outside of the |
No description provided.
The text was updated successfully, but these errors were encountered: