Skip to content

Commit e67190a

Browse files
committed
Display the full TOC in the manual. Closes #4194
1 parent 309cdfd commit e67190a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

doc/manual.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* Display the full TOC */
2+
3+
#TOC ul ul {
4+
display: block;
5+
padding-left: 2em;
6+
}

mk/docs.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ doc/rust.css: rust.css
3030
@$(call E, cp: $@)
3131
$(Q)cp -a $< $@ 2> /dev/null
3232

33+
doc/manual.css: manual.css
34+
@$(call E, cp: $@)
35+
$(Q)cp -a $< $@ 2> /dev/null
36+
3337
DOCS += doc/rust.html
34-
doc/rust.html: rust.md doc/version_info.html doc/rust.css
38+
doc/rust.html: rust.md doc/version_info.html doc/rust.css doc/manual.css
3539
@$(call E, pandoc: $@)
3640
$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
3741
"$(CFG_PANDOC)" \
@@ -40,6 +44,7 @@ doc/rust.html: rust.md doc/version_info.html doc/rust.css
4044
--number-sections \
4145
--from=markdown --to=html \
4246
--css=rust.css \
47+
--css=manual.css \
4348
--include-before-body=doc/version_info.html \
4449
--output=$@
4550
endif

0 commit comments

Comments
 (0)