mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Display the full TOC in the manual. Closes #4194
This commit is contained in:
parent
309cdfd835
commit
e67190a0d2
6
doc/manual.css
Normal file
6
doc/manual.css
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
/* Display the full TOC */
|
||||||
|
|
||||||
|
#TOC ul ul {
|
||||||
|
display: block;
|
||||||
|
padding-left: 2em;
|
||||||
|
}
|
@ -30,8 +30,12 @@ doc/rust.css: rust.css
|
|||||||
@$(call E, cp: $@)
|
@$(call E, cp: $@)
|
||||||
$(Q)cp -a $< $@ 2> /dev/null
|
$(Q)cp -a $< $@ 2> /dev/null
|
||||||
|
|
||||||
|
doc/manual.css: manual.css
|
||||||
|
@$(call E, cp: $@)
|
||||||
|
$(Q)cp -a $< $@ 2> /dev/null
|
||||||
|
|
||||||
DOCS += doc/rust.html
|
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: $@)
|
@$(call E, pandoc: $@)
|
||||||
$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
|
$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
|
||||||
"$(CFG_PANDOC)" \
|
"$(CFG_PANDOC)" \
|
||||||
@ -40,6 +44,7 @@ doc/rust.html: rust.md doc/version_info.html doc/rust.css
|
|||||||
--number-sections \
|
--number-sections \
|
||||||
--from=markdown --to=html \
|
--from=markdown --to=html \
|
||||||
--css=rust.css \
|
--css=rust.css \
|
||||||
|
--css=manual.css \
|
||||||
--include-before-body=doc/version_info.html \
|
--include-before-body=doc/version_info.html \
|
||||||
--output=$@
|
--output=$@
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user