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

Nested entries in the TOC #7

Open
julienrf opened this issue Jan 22, 2017 · 3 comments
Open

Nested entries in the TOC #7

julienrf opened this issue Jan 22, 2017 · 3 comments

Comments

@julienrf
Copy link

Is it possible to define sub-entries in the TOC? I would like them to be collapsed by default, e.g.:

  • foo
  • quux

But, when one entry is selected, then its sub-entries would be expanded:

  • foo
    • bar
    • baz
  • quux
@szeiger
Copy link
Owner

szeiger commented Mar 11, 2017

I'm not sure what you mean. There's currently no way to define a hierarchical page structure. If you want the TOC of the current page (usually shown on the right) to be merged into the main page navigation on the left you can use a TOC element like ![](toctree:maxLevel=0,focusMaxLevel=6) which shows everything down to level 6 for the current page but only level 0 (i.e. the actual page) for all other pages.

@julienrf
Copy link
Author

I was referring to the TOC on the left. I would like to have pages bar and baz to be hidden when quux is displayed.

@szeiger
Copy link
Owner

szeiger commented Mar 13, 2017

Since Ornate does not yet support nested pages, this TOC tree is not possible in the first place. If bar and baz are headings instead of pages you can do it with focusMaxLevel.

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

No branches or pull requests

2 participants