$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+ @cp $(BUILDDIR)/epub/*epub _static/
+ @echo "A copy was made to _static/."
latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+ @cp $(BUILDDIR)/latex/*pdf _static/
+ @echo "A copy was made to _static/."
text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
-web: clean html
+web: clean epub latexpdf html
web_deploy:
@rsync -avz --delete _build/html/ templates:/var/sites/templates/www/
# serve to show the default.
import sys, os
+import recommonmark
+from recommonmark.transform import AutoStructify
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# Allow duplicate toc entries.
#epub_tocdup = True
+
+# See http://recommonmark.readthedocs.io
+#github_doc_root = 'https://github.com/rtfd/recommonmark/tree/master/doc/'
+def setup(app):
+ app.add_config_value('recommonmark_config', {
+ #'url_resolver': lambda url: github_doc_root + url,
+ 'auto_toc_tree_section': 'Index',
+ 'enable_auto_toc_tree' : True,
+ 'enable_auto_doc_ref' : True,
+ 'enable_eval_rst' : True,
+ }, True)
+ app.add_transform(AutoStructify)