Asciidoc itself does not provide the sort of feature you are describing. You might look at the alternative toolchains or the asciidoctor implementation to see if they do it.
Cheers Lex On 21 December 2015 at 20:17, Rami Honig <[email protected]> wrote: > The documentation I'm maintaining is made up of many .asciidoc files. > Each file represents a separate page in the documentation. > There is one overall TOC in a sidebar on the left which reflects the > hierarchy of all the different files. > Each item in the TOC is the Level 0 header of the .asciidoc files. > > I would like to create a page contents block at the top of each page of > documentation that would generate automatically according to the different > headings on the page. > > > For example, if my page looked something like this: > > First Level 1 Heading > Some text > First Level 2 Heading > Some more text > > Second Level 1 Heading > Some text > Second Level 2 Heading > Some more text > > Then at the top of my page, the page contents would automatically be > generated, something like this: > > First Level 1 Heading > First Level 2 Heading > Second Level 1 Heading > Second Level 2 Heading > > Is that possible with asciidoc? > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
