about summary refs log tree commit diff
path: root/mk/docs.mk
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-20 15:01:55 -0700
committerbors <bors@rust-lang.org>2013-08-20 15:01:55 -0700
commit3cd978fbc75a691a144dcafe99a08531a424fcd0 (patch)
tree8356d2a75fc7d2784840df899365d02a3d146655 /mk/docs.mk
parent293660d44347967cbb724d1ff94b90d635c2c64f (diff)
parentef5d537010dbc7192b15e44ac01c62af45de4df9 (diff)
downloadrust-3cd978fbc75a691a144dcafe99a08531a424fcd0.tar.gz
rust-3cd978fbc75a691a144dcafe99a08531a424fcd0.zip
auto merge of #8563 : graydon/rust/2013-08-16-condition-tutorial, r=catamorphism
First cut of a tutorial on conditions.

cc: #6701 
Diffstat (limited to 'mk/docs.mk')
-rw-r--r--mk/docs.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/mk/docs.mk b/mk/docs.mk
index 16858628815..7e3da1c86b1 100644
--- a/mk/docs.mk
+++ b/mk/docs.mk
@@ -150,6 +150,16 @@ doc/tutorial-tasks.html: tutorial-tasks.md doc/version_info.html doc/rust.css
 	   --include-before-body=doc/version_info.html \
            --output=$@
 
+DOCS += doc/tutorial-conditions.html
+doc/tutorial-conditions.html: tutorial-conditions.md doc/version_info.html doc/rust.css
+	@$(call E, pandoc: $@)
+	$(Q)$(CFG_NODE) $(S)doc/prep.js --highlight $< | \
+          $(CFG_PANDOC) --standalone --toc \
+           --section-divs --number-sections \
+           --from=markdown --to=html --css=rust.css \
+           --include-before-body=doc/version_info.html \
+           --output=$@
+
   ifeq ($(CFG_PDFLATEX),)
     $(info cfg: no pdflatex found, omitting doc/rust.pdf)
   else