tutorial: compile the tutorial in rst so it can be included draft
authorBoris Feld <boris.feld@octobus.net>
Fri, 22 Nov 2019 18:56:42 +0100
changeset 5226 38d225efcea9
parent 5225 43b62e1c72ee
child 5227 b24de4b465ea
tutorial: compile the tutorial in rst so it can be included
docs/index.rst
docs/makefile
docs/tutorial/compile.sh
--- a/docs/index.rst	Fri Nov 22 18:29:27 2019 +0100
+++ b/docs/index.rst	Fri Nov 22 18:56:42 2019 +0100
@@ -56,6 +56,7 @@
    from-mq
    commands
    known-doc-issues
+   tutorial/index.rst
 
 .. _`changeset evolution`:
 
--- a/docs/makefile	Fri Nov 22 18:29:27 2019 +0100
+++ b/docs/makefile	Fri Nov 22 18:56:42 2019 +0100
@@ -1,6 +1,6 @@
 SPHINXBUILD ?= sphinx-build
 
-all: tutorials/tutorial.rst tutorials/topic-tutorial.rst static/logo-evolve.ico
+all: tutorials/tutorial.rst tutorials/topic-tutorial.rst tutorial/index.rst static/logo-evolve.ico
 	$(SPHINXBUILD) . ../html/
 
 tutorials/tutorial.rst: tutorials/tutorial.t test2rst.py
@@ -9,5 +9,8 @@
 tutorials/topic-tutorial.rst: tutorials/topic-tutorial.t test2rst.py
 	python test2rst.py tutorials/
 
+tutorial/index.rst: tutorial/slides.md tutorial/test-training.t tutorial/compile.sh
+	cd tutorial && ./compile.sh
+
 static/logo-evolve.ico: static/logo-evolve.svg
 	convert -resize 36x36 static/logo-evolve.svg static/logo-evolve.ico
--- a/docs/tutorial/compile.sh	Fri Nov 22 18:29:27 2019 +0100
+++ b/docs/tutorial/compile.sh	Fri Nov 22 18:56:42 2019 +0100
@@ -8,9 +8,9 @@
     -o $2 \
     --toc --toc-depth=4 \
     -F pandocfilters/examples/graphviz.py -F mypandocfilters/graphviz-file.py -F mypandocfilters/raw-file.py \
-    -t html5 \
-    --template standalone.html --variable=template_css:uikit.css
+    -t rst \
+    # --template standalone.html --variable=template_css:uikit.css
 
 }
 
-compile slides.md index.html
+compile slides.md index.rst