I've noticed that on this instance of Phabricator, there is a button to the left of the Page heading that provides a table of contents that can be used to navigate around the page. I've also seen some references to table of contents panels in the UI, such as D12417: Move ToC in Phriction to it's own column.
I'm sure I've looked in all the obvious places (phriction config, page source for the Test Page)but I cannot find anything relating to Table of Contents in my own instance of Phabricator? Is there something I am missing? I'm following the stable branch.
This is the menu I mean:
It is generated automatically if a document has at least two headers.
Documents without headers do not generate a table of contents, because we have no way to determine which sections are present in the document.
Documents with fewer than two headers do not generate a table of contents because it wouldn't be useful.
Your document probably does not have any headers, or has fewer than two headers.
Thanks for getting back to me so quickly @epriestley!
I've been using multiple headers with the following style:
= Heading for something = == Sub heading in there == = Heading for something else =
However this has not generated anything. Do I need to use the alternative style?
Heading for something =======
Even more interesting, that code works fine on my instance...
Ha, what is even more entertaining is that having added that page, I now see the button to show the TOC on my other pages...
I'm absolutely certain it wasn't there prior to replicating the test page on my own instance...
hmm. I'll close this since everything seems to be working as intended...
Is there a way to show nesting in the menu? i.e. == should sit inside = headings?
From my limited understanding of how Remarkup works, it seems like that should be possible, though I guess its effort that no one else has asked for.
Thank you for answering my query so quickly!