Use web-style paragraphs in std docs

This commit is contained in:
Brian Anderson 2011-10-26 11:55:28 -07:00
parent 197c8543fe
commit 1b75e5c315
2 changed files with 14 additions and 2 deletions

8
doc/std.css Normal file
View File

@ -0,0 +1,8 @@
/*
Custom styles for the standard library docs generated by naturaldocs
*/
p {
text-indent: 0;
margin-bottom: 1em;
}

View File

@ -20,10 +20,10 @@ docsnap: doc/rust.pdf
@$(call E, snap: doc/rust-$(shell date +"%Y-%m-%d")-snap.pdf)
$(Q)mv $< doc/rust-$(shell date +"%Y-%m-%d")-snap.pdf
doc/std/index.html: nd/std/Languages.txt nd/std/Topics.txt \
doc/std/index.html: nd/std/Languages.txt nd/std/Topics.txt nd/std/std.css \
$(STDLIB_CRATE) $(STDLIB_INPUTS)
@$(call E, naturaldocs: $@)
naturaldocs -i $(S)src/lib -o HTML doc/std -p nd/std -r
naturaldocs -i $(S)src/lib -o HTML doc/std -p nd/std -r -s Default std
nd/std/Languages.txt: $(S)doc/Languages.txt
@$(call E, cp: $@)
@ -32,3 +32,7 @@ nd/std/Languages.txt: $(S)doc/Languages.txt
nd/std/Topics.txt: $(S)doc/Topics.txt
@$(call E, cp: $@)
$(Q)cp $< $@
nd/std/std.css: $(S)doc/std.css
@$(call E, cp: $@)
$(Q)cp $< $@