]> git.lizzy.rs Git - rust.git/commitdiff
Use web-style paragraphs in std docs
authorBrian Anderson <banderson@mozilla.com>
Wed, 26 Oct 2011 18:55:28 +0000 (11:55 -0700)
committerBrian Anderson <banderson@mozilla.com>
Wed, 26 Oct 2011 18:55:28 +0000 (11:55 -0700)
doc/std.css [new file with mode: 0644]
mk/docs.mk

diff --git a/doc/std.css b/doc/std.css
new file mode 100644 (file)
index 0000000..9593f25
--- /dev/null
@@ -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
index 72e549bec28f82d5d4b276b72b93876c649bb82a..4c46c437ad508cbd97c054cb5a055802f6e6b75c 100644 (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 $< $@
\ No newline at end of file