You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then append "include" instruction and levelofoffset in the merged asciidoc: awk '{print "include::"$1"[leveloffset=1]"}' all_in_one.asciidoc > all_in_one_book.asciidoc
And you may append the toc in the book:
= Ethereum development book
:sectnums:
:toc:
:toclevels: 2
:doctype: book
First generate the file list of the book:
find . -name '*.asciidoc' | sort > all_in_one.asciidoc
Then append "include" instruction and levelofoffset in the merged asciidoc:
awk '{print "include::"$1"[leveloffset=1]"}' all_in_one.asciidoc > all_in_one_book.asciidoc
And you may append the toc in the book:
= Ethereum development book
:sectnums:
:toc:
:toclevels: 2
:doctype: book
:leveloffset: 1
include::./前言.asciidoc[leveloffset=1]
include::./术语.asciidoc[leveloffset=1]
include::./第一章.asciidoc[leveloffset=1]
include::./第二章.asciidoc[leveloffset=1]
include::./第三章.asciidoc[leveloffset=1]
:leveloffset: 0
[Index]
= Index
Finally generate the book as:
/Applications/asciidoctor-web-pdf-mac-v1.0.0-alpha.14/asciidoctor-web-pdf -D ~/Downloads/ethereum_book/ -B ~/workspace/ethereum_book/ all_in_one_book.asciidoc
The text was updated successfully, but these errors were encountered: