From 1b75e5c315f00e6a10b1eca0a2f501107fd8063e Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 26 Oct 2011 11:55:28 -0700 Subject: [PATCH] Use web-style paragraphs in std docs --- doc/std.css | 8 ++++++++ mk/docs.mk | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 doc/std.css diff --git a/doc/std.css b/doc/std.css new file mode 100644 index 00000000000..9593f25e8f6 --- /dev/null +++ b/doc/std.css @@ -0,0 +1,8 @@ +/* +Custom styles for the standard library docs generated by naturaldocs +*/ + +p { + text-indent: 0; + margin-bottom: 1em; + } \ No newline at end of file diff --git a/mk/docs.mk b/mk/docs.mk index 72e549bec28..4c46c437ad5 100644 --- a/mk/docs.mk +++ b/mk/docs.mk @@ -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 $< $@ \ No newline at end of file