mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +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: $@)
|
||||
$(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
|
||||
|
Loading…
Reference in New Issue
Block a user