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