about summary refs log tree commit diff
path: root/mk/docs.mk
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2012-01-18 09:58:08 +0100
committerMarijn Haverbeke <marijnh@gmail.com>2012-01-18 16:28:31 +0100
commitba6c94e321d9afbb72952f771ec4ba0b37a3de18 (patch)
tree7181c1446e89abb6c6c8bcd2e31ec2c1aa4f88a1 /mk/docs.mk
parent861b8f0107fe55941df7ca391dee51fe338b0bd8 (diff)
Add a stylesheet to make the reference HTML look a bit prettier
Diffstat (limited to 'mk/docs.mk')
-rw-r--r--mk/docs.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/docs.mk b/mk/docs.mk
index 7f7c74e6234..4edc0cc3b8d 100644
--- a/mk/docs.mk
+++ b/mk/docs.mk
@@ -19,8 +19,12 @@ doc/rust.html: rust.md doc/version.md doc/keywords.md
          --section-divs \
          --number-sections \
          --from=markdown --to=html \
+         --css=rust.css \
          --output=$@ \
          $<
+	@$(call E, cp: $(S)doc/rust.css)
+	-$(Q)cp -a $(S)doc/rust.css doc/rust.css 2> /dev/null
+
 
 ifdef CFG_PDFLATEX
 
@@ -50,7 +54,7 @@ ifdef CFG_NODE
 doc/tutorial/web/index.html: \
         $(wildcard $(S)doc/tutorial/*.md)
 	@$(call E, cp: $(S)doc/tutorial)
-	$(Q)cp -a $(S)doc/tutorial doc/
+	-$(Q)cp -a $(S)doc/tutorial doc/ 2> /dev/null
 	@$(call E, node: build.js)
 	$(Q)cd doc/tutorial && $(CFG_NODE) build.js