mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-06-14 13:01:54 +00:00
html: use new table-of-contents (toc2) also for individual chapters
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
d7f5c1f706
commit
396e1d03f2
@ -327,7 +327,7 @@ sub compile_asciidoc {
|
|||||||
$attributes->{manvolnum} = $mansection;
|
$attributes->{manvolnum} = $mansection;
|
||||||
} elsif ($env eq 'default') {
|
} elsif ($env eq 'default') {
|
||||||
die "$infile: wrong doctype\n" if $doctype != 0;
|
die "$infile: wrong doctype\n" if $doctype != 0;
|
||||||
$attributes->{toc} = undef;
|
$attributes->{toc2} = undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!defined($outfile)) {
|
if (!defined($outfile)) {
|
||||||
|
@ -590,8 +590,9 @@ ifdef::toc2[]
|
|||||||
div #toc {
|
div #toc {
|
||||||
width: 19em;
|
width: 19em;
|
||||||
font-family: sans;
|
font-family: sans;
|
||||||
|
border-right: 3px solid gainsboro;
|
||||||
}
|
}
|
||||||
.book {
|
.book, .article {
|
||||||
margin-left: 22em
|
margin-left: 22em
|
||||||
}
|
}
|
||||||
div #toc a:link, div #toc a:visited {
|
div #toc a:link, div #toc a:visited {
|
||||||
@ -609,7 +610,7 @@ div .toclevel1 {
|
|||||||
div #toc {
|
div #toc {
|
||||||
width: 22em
|
width: 22em
|
||||||
}
|
}
|
||||||
.book {
|
.book, .article {
|
||||||
margin-left: 25em
|
margin-left: 25em
|
||||||
}
|
}
|
||||||
div .toclevel1 {
|
div .toclevel1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user