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

Auto-expanding navigation #114

Merged
merged 2 commits into from
May 12, 2017
Merged

Conversation

pvlugter
Copy link
Member

@pvlugter pvlugter commented May 10, 2017

Allow TOCs to expand for the active page. When enabled, the TOC will expand beyond the regular depth down to the active page, and also expand descendants of the active page down to the expand depth. Useful for a large or deep index, where having a full navigation doesn't work so well.

Add an option for including headers in the navigation. Also add page and header classes for the links in the TOCs, so they can be styled differently as needed.

This is being used in the conversion of Akka documentation to Paradox. WIP version of the docs that uses expanding navigation with headers can be found here:

https://downloads.lightbend.com/paradox/akka-docs-new/20170510-wip/scala.html

@ktoso
Copy link
Contributor

ktoso commented May 10, 2017

Whoa this looks awesome, thanks Peter :)

@eed3si9n
Copy link
Contributor

Looks awesome. This is going to be a game changer I think.

@pvlugter pvlugter force-pushed the auto-expand-navigation branch from 0d7476e to 5376280 Compare May 12, 2017 04:51
@pvlugter
Copy link
Member Author

Rebased on master for the merge conflicts. Merging now.

@pvlugter pvlugter merged commit 45cf0c3 into lightbend:master May 12, 2017
@pvlugter pvlugter deleted the auto-expand-navigation branch May 12, 2017 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants