ornate icon indicating copy to clipboard operation
ornate copied to clipboard

Nested entries in the TOC

Open julienrf opened this issue 8 years ago • 3 comments

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

julienrf avatar Jan 22 '17 16:01 julienrf

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.

szeiger avatar Mar 11 '17 17:03 szeiger

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.

julienrf avatar Mar 11 '17 21:03 julienrf

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.

szeiger avatar Mar 13 '17 11:03 szeiger