Login  Register

Table of contents and autowidth

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Table of contents and autowidth

Nesrad
Hello, here are a couple questions I've been grappling with:

1. I have a huge document split into several .adoc files. I would like to have a single table of contents, without including all the separate files into a huge document that will take forever to load. The table of contents should simply provide links to the reader to who can load the appropriate document separately. Any suggestions?

2. Is there a way to set the table option "autowidth" as a global attribute so I don't have to repeat it in each table?

That's it for now, thanks.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Table of contents and autowidth

Jeremie Bresson
Your first question reminds me the discussion we had with Dan Allen about the possibility to create a "reference-toc" macro.

This way in document1.adoc you could do something like that:

reference-toc::document2.adoc[]

to get the TOC of the second document in your first document.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Table of contents and autowidth

Nesrad
Thanks for the reply. I assume the feature is not yet implemented?
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Table of contents and autowidth

Jeremie Bresson
I have stopped the experiment, because we have rewritten our documentation pages and we did no longer use that concept. I have started something and I can see if I can finish it if you are interested.

Are you using Java (asciidoctorj) to build your documentation?