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

table of contents to support groups? #582

Closed
gre opened this issue Nov 1, 2016 · 1 comment
Closed

table of contents to support groups? #582

gre opened this issue Nov 1, 2016 · 1 comment

Comments

@gre
Copy link

gre commented Nov 1, 2016

with configuration.yml, you can do things like this:

toc:
  - Map
  - LngLat
  - LngLatBounds

I think it would actually be great if you could level it at multiple levels, meaning it would be "groups" in the HTML:

toc:
  - libraryPartOne
    - Map
  - libraryPartTwo
    - LngLat
    - LngLatBounds

( a bit like in gitbooks actually: https://paulkogel.gitbooks.io/redux-docs/content/ )

@tmcw
Copy link
Member

tmcw commented Nov 25, 2016

Yep, this would definitely be great, and we're very open to PRs that would implement this. The current table of contents implementation is a very minimal, restrictive version, aimed more at making sure we don't break other kind of hierarchy rather than making hierarchy especially expressive. If anyone wants to take a second look at the code and improve it, please do! The relevant code for integrating the toc is in sort.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants