Skip to content

Commit

Permalink
Display the full TOC in the manual. Closes rust-lang#4194
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Dec 15, 2012
1 parent 309cdfd commit e67190a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions doc/manual.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* Display the full TOC */

#TOC ul ul {
display: block;
padding-left: 2em;
}
7 changes: 6 additions & 1 deletion mk/docs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)" \
Expand All @@ -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
Expand Down

0 comments on commit e67190a

Please sign in to comment.