mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Use web-style paragraphs in std docs
This commit is contained in:
parent
197c8543fe
commit
1b75e5c315
8
doc/std.css
Normal file
8
doc/std.css
Normal file
@ -0,0 +1,8 @@
|
||||
/*
|
||||
Custom styles for the standard library docs generated by naturaldocs
|
||||
*/
|
||||
|
||||
p {
|
||||
text-indent: 0;
|
||||
margin-bottom: 1em;
|
||||
}
|
@ -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 $< $@
|
Loading…
Reference in New Issue
Block a user