Skip to content

Commit 1ef12cb

Browse files
authored
Build tables of contents with Asciidoctor (#711)
We chain the books that make the all of the docs together into a web site by making tables of content that link the whole thing together. We make these by building asciidoc files and then building them like single-page books. This switches from building them with AsciiDoc to building them with Asciidoctor.
1 parent 58f89f6 commit 1ef12cb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/ES/Toc.pm

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ sub write {
3737
$adoc_file->spew( iomode => '>:utf8', $adoc );
3838

3939
build_single( $adoc_file, $dir,
40-
type => 'article',
41-
lang => $self->lang,
42-
root_dir => '',
43-
edit_urls => {'' => ''},
44-
latest => 1,
40+
type => 'article',
41+
lang => $self->lang,
42+
asciidoctor => 1,
43+
root_dir => '', # Required but thrown on the floor with asciidoctor
44+
latest => 1, # Run all of our warnings
45+
private => 1, # Don't generate edit me urls
4546
);
4647
$adoc_file->remove;
4748
}

0 commit comments

Comments
 (0)