Commit 34d6f621 authored by Evgeni Golov's avatar Evgeni Golov

build and install docs

parent 36cea104
README.rst README.rst
docs/*.md docs_deprecated/*.md
docs/build/html/
/usr/share/javascript/mathjax /usr/share/doc/ansible-tower-cli/html/_static/mathjax
docs/build/man/tower_cli.1
...@@ -11,7 +11,8 @@ Build-Depends: debhelper (>= 9), dh-python, ...@@ -11,7 +11,8 @@ Build-Depends: debhelper (>= 9), dh-python,
python3-nose, python3-nose,
python3-requests, python3-requests,
python3-six, python3-six,
python3-yaml python3-yaml,
python-sphinx,
Standards-Version: 4.1.1 Standards-Version: 4.1.1
Homepage: https://github.com/ansible/tower-cli Homepage: https://github.com/ansible/tower-cli
Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/ansible-tower-cli.git Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/ansible-tower-cli.git
...@@ -19,7 +20,7 @@ Vcs-Git: https://anonscm.debian.org/git/collab-maint/ansible-tower-cli.git ...@@ -19,7 +20,7 @@ Vcs-Git: https://anonscm.debian.org/git/collab-maint/ansible-tower-cli.git
Package: ansible-tower-cli Package: ansible-tower-cli
Architecture: all Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, Depends: ${misc:Depends}, ${python3:Depends}, ${sphinxdoc:Depends}, libjs-mathjax,
Recommends: ${python3:Recommends} Recommends: ${python3:Recommends}
Suggests: ${python3:Suggests} Suggests: ${python3:Suggests}
Description: command line tool for Ansible Tower Description: command line tool for Ansible Tower
......
diff --git a/docs/source/conf.py b/docs/source/conf.py
index c881ad7..342b4c8 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -40,6 +40,9 @@ extensions = [
'sphinx.ext.githubpages'
]
+# Use local MathJax
+mathjax_path = 'mathjax/MathJax.js'
+
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
...@@ -2,9 +2,20 @@ ...@@ -2,9 +2,20 @@
export PYBUILD_NAME=ansible-tower-cli export PYBUILD_NAME=ansible-tower-cli
%: %:
dh $@ --with python3 --buildsystem=pybuild dh $@ --with python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
PYTHONPATH=$(CURDIR) make -C docs html man
override_dh_auto_clean:
dh_auto_clean
$(RM) -rf $(CURDIR)/docs/build/
override_dh_auto_test: override_dh_auto_test:
# tests need https://github.com/lukesneeringer/fauxquests # tests need https://github.com/lukesneeringer/fauxquests
# which is not yet in Debian # which is not yet in Debian
# nosetests3 # nosetests3
override_dh_sphinxdoc:
dh_sphinxdoc -X_static/mathjax
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment