From: Thomas Lamprecht Date: Tue, 28 Jan 2020 16:18:53 +0000 (+0100) Subject: html: use new table-of-contents (toc2) also for individual chapters X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=396e1d03f2ef08e2a68962a43a67b6f9671d654a html: use new table-of-contents (toc2) also for individual chapters Signed-off-by: Thomas Lamprecht --- diff --git a/asciidoc-pve.in b/asciidoc-pve.in index d1a754d..bbaf597 100644 --- a/asciidoc-pve.in +++ b/asciidoc-pve.in @@ -327,7 +327,7 @@ sub compile_asciidoc { $attributes->{manvolnum} = $mansection; } elsif ($env eq 'default') { die "$infile: wrong doctype\n" if $doctype != 0; - $attributes->{toc} = undef; + $attributes->{toc2} = undef; } if (!defined($outfile)) { diff --git a/asciidoc/pve-html.conf b/asciidoc/pve-html.conf index ba1a7d0..2722041 100644 --- a/asciidoc/pve-html.conf +++ b/asciidoc/pve-html.conf @@ -590,8 +590,9 @@ ifdef::toc2[] div #toc { width: 19em; font-family: sans; + border-right: 3px solid gainsboro; } -.book { +.book, .article { margin-left: 22em } div #toc a:link, div #toc a:visited { @@ -609,7 +610,7 @@ div .toclevel1 { div #toc { width: 22em } -.book { +.book, .article { margin-left: 25em } div .toclevel1 {