]> git.phdru.name Git - sqlconvert.git/commitdiff
Rebuild docs in a venv using system Sphinx
authorOleg Broytman <phd@phdru.name>
Sun, 19 Mar 2017 16:22:11 +0000 (19:22 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 19 Mar 2017 16:25:51 +0000 (19:25 +0300)
Makefile
docs/rebuild [new file with mode: 0755]

index c2727fb0d33a39ba1b625ba9a63dffe7afb0887b..ee1c84e537608dd840457c0617969d1b8b294d19 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ flake8:
 
 .PHONY: docs
 docs:
-       $(MAKE) -C docs html
+       cd docs && exec ./rebuild
 
 .PHONY: test
 test:
diff --git a/docs/rebuild b/docs/rebuild
new file mode 100755 (executable)
index 0000000..56d07b5
--- /dev/null
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+SPHINXBUILD="`which sphinx-build`"
+PYTHONPATH=.. exec make SPHINXBUILD="python $SPHINXBUILD" html