Display the full TOC in the manual. Closes #4194

This commit is contained in:
Brian Anderson 2012-12-14 18:06:11 -08:00
parent 309cdfd835
commit e67190a0d2
2 changed files with 12 additions and 1 deletions

6
doc/manual.css Normal file
View File

@ -0,0 +1,6 @@
/* Display the full TOC */
#TOC ul ul {
display: block;
padding-left: 2em;
}

View File

@ -30,8 +30,12 @@ doc/rust.css: rust.css
@$(call E, cp: $@)
$(Q)cp -a $< $@ 2> /dev/null
doc/manual.css: manual.css
@$(call E, cp: $@)
$(Q)cp -a $< $@ 2> /dev/null
DOCS += doc/rust.html
doc/rust.html: rust.md doc/version_info.html doc/rust.css
doc/rust.html: rust.md doc/version_info.html doc/rust.css doc/manual.css
@$(call E, pandoc: $@)
$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
"$(CFG_PANDOC)" \
@ -40,6 +44,7 @@ doc/rust.html: rust.md doc/version_info.html doc/rust.css
--number-sections \
--from=markdown --to=html \
--css=rust.css \
--css=manual.css \
--include-before-body=doc/version_info.html \
--output=$@
endif