Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Asciidoctor render a separate HTML page per chapter?

Tags:

asciidoctor

If I have something like the following:

The Manual
====================
Gregg Bolinger
v1.0, 2014-15
:doctype: book
:icons: font
:imagesdir: images

Preamble paragraph

include::chapter1.ad[]

include::chapter2.ad[]

I'd like so that each chapter renders in its own HTML file and is linked to from the TOC rather than everything being in a single book.html, for example. It seems to generate separate files already, but that's only because they are in the source directory. It is still combining everything into a single HTML page. I'm using the Gradle Asciidoctor plugin, if that helps to know.

like image 741
Gregg Avatar asked Jan 27 '15 00:01

Gregg


1 Answers

Unless there's something in the gradle plugin that does chunked html, asciidoctor does not handle chunked output at the moment. It's on the list of things to do, but it hasn't been done. If you look at the issue, however, someone has create a custom script/converter to do it though, perhaps that will work for your case as well.

like image 58
LightGuard Avatar answered Oct 13 '22 04:10

LightGuard