From 7890be5e56b3ef72a2cca297ff7c6ea5e1cb0b95 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Tue, 12 Mar 2019 19:32:02 -0400 Subject: [PATCH] Build tables of contents with Asciidoctor 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. --- lib/ES/Toc.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/ES/Toc.pm b/lib/ES/Toc.pm index 72fa7d9edbca8..9ce0ad4a3fd0d 100644 --- a/lib/ES/Toc.pm +++ b/lib/ES/Toc.pm @@ -37,11 +37,12 @@ sub write { $adoc_file->spew( iomode => '>:utf8', $adoc ); build_single( $adoc_file, $dir, - type => 'article', - lang => $self->lang, - root_dir => '', - edit_urls => {'' => ''}, - latest => 1, + type => 'article', + lang => $self->lang, + asciidoctor => 1, + root_dir => '', # Required but thrown on the floor with asciidoctor + latest => 1, # Run all of our warnings + private => 1, # Don't generate edit me urls ); $adoc_file->remove; }