Skip to content

Commit

Permalink
Local Documentation Builds
Browse files Browse the repository at this point in the history
    This adds configuration for performing local documentation builds
    with the following simple command:

    tox -e docs

Change-Id: Id07d11951e9fb4812737574884ff505bf536b221
Signed-off-by: Aric Gardner <[email protected]>
  • Loading branch information
Aricg committed Sep 18, 2018
1 parent b52c942 commit 478dc53
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
*~
*.sw?
*.pyc
/docs_build/
/docs_output/
/releng/
*.egg-info/
.*project
.settings
build
dist
.tox
docs/_build/*
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from docs_conf.conf import *
3 changes: 3 additions & 0 deletions docs/conf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
project_cfg: opnfv
project: BAROMETER
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lfdocs-conf
sphinx_opnfv_theme
17 changes: 17 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tox]
minversion = 1.6
envlist =
docs,
docs-linkcheck
skipsdist = true

[testenv:docs]
deps = -rdocs/requirements.txt
commands =
sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals = echo

[testenv:docs-linkcheck]
deps = -rdocs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck

0 comments on commit 478dc53

Please sign in to comment.