Skip to content
Snippets Groups Projects
Commit 5578eb94 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

clean up the docs generation (sphinx-api and graph_models)

parent a503b405
No related branches found
No related tags found
1 merge request!15Master
...@@ -62,8 +62,6 @@ test-centos7: ...@@ -62,8 +62,6 @@ test-centos7:
- coverage html - coverage html
- pip3.6 install sphinx sphinx-argparse sphinxcontrib.bibtex sphinx_rtd_theme - pip3.6 install sphinx sphinx-argparse sphinxcontrib.bibtex sphinx_rtd_theme
- cd docs - cd docs
- sphinx-apidoc -o source/ippidb/ ../ippidb
- sphinx-apidoc -o source/ippisite/ ../ippisite
- make html - make html
artifacts: artifacts:
paths: paths:
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
# You can set these variables from the command line. # You can set these variables from the command line.
SPHINXOPTS = SPHINXOPTS =
SPHINXAPI = sphinx-apidoc
SPHINXAPISRC = ..
SPHINXBUILD = sphinx-build SPHINXBUILD = sphinx-build
SOURCEDIR = source SOURCEDIR = source
BUILDDIR = build BUILDDIR = build
...@@ -16,4 +18,6 @@ help: ...@@ -16,4 +18,6 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new # Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile %: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) @$(SPHINXAPI) -o $(SOURCEDIR) $(SPHINXAPISRC)
\ No newline at end of file python ../manage.py graph_models ippidb --dot > source/db.dot
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment