Hello,
I use asciidoc to generate book website with following command: asciidoc -d book -b html5 -a toc2 -a toclevels=3 book.asciidoc But apparently asciidoctor doesn't know anything about toc attribute. Please advise. Cheers, Vik |
Administrator
|
Actually, it does. It just doesn't know anything about the toc2 attribute :) I should add support for that now that I realize what it does (it just adds an extra style to the HTML output and pulls in an extra stylesheet). So, to get what you want, you would just run: asciidoctor -d book -b html5 -a toc book.asciidoc Unfortunately, Asciidoctor doesn't yet honor the toclevels attribute. It shouldn't be hard to do, just haven't gotten around to it yet. Feel free to hack on it if you would like. Otherwise, I'll get to it in a short while.
-Dan On Tue, Apr 9, 2013 at 10:27 PM, gamussa [via Asciidoctor :: Discussion] <[hidden email]> wrote: Hello, Dan Allen Principal Software Engineer, Red Hat | Author of Seam in ActionRegistered Linux User #231597 |
Administrator
|
In reply to this post by gamussa
I put support for toc2 on the roadmap for 0.1.2. That will line up with the arrival of the default stylesheet, so the timing is good. -Dan On Wed, Apr 10, 2013 at 2:41 AM, Dan Allen <[hidden email]> wrote:
Dan Allen Principal Software Engineer, Red Hat | Author of Seam in ActionRegistered Linux User #231597 |
Administrator
|
In reply to this post by gamussa
Btw, thanks for pointing out this compliance issue! -Dan On Wed, Apr 10, 2013 at 2:43 AM, Dan Allen <[hidden email]> wrote:
Dan Allen Principal Software Engineer, Red Hat | Author of Seam in ActionRegistered Linux User #231597 |
Thanks for help, Dan.
|
In reply to this post by mojavelinux
Dan,
Is there any way to specify depth of TOC? By default, asciidoctor generates 3 (===) levels depth. Thanks |
Administrator
|
Yep, the toclevels attribute. :toclevels: 1 Actually, but default it generates 2 levels (which amounts to the === heading as the document title doesn't count as a toc level).
-Dan On Wed, Apr 17, 2013 at 11:36 PM, gamussa [via Asciidoctor :: Discussion] <[hidden email]> wrote: Dan, Dan Allen Principal Software Engineer, Red Hat | Author of Seam in ActionRegistered Linux User #231597 |
Free forum by Nabble | Edit this page |