Local Documentation Builds 17/62517/3
authorAric Gardner <agardner@linuxfoundation.org>
Tue, 18 Sep 2018 16:10:43 +0000 (12:10 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Tue, 2 Oct 2018 17:56:37 +0000 (13:56 -0400)
This adds configuration for performing local documentation builds
with the following simple command:

tox -e docs

This patch is part of our documentation effor to Move away from submodules
https://docs.opnfv.org/en/latest/how-to-use-docs/local-build-transition.html

added index.rst so that docs build succsesfully

Change-Id: I2d28f03ad4d5c9c14de095dc544257af9d1e51d9
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
.gitignore
docs/conf.py [new file with mode: 0644]
docs/conf.yaml [new file with mode: 0644]
docs/index.rst [new file with mode: 0644]
docs/requirements.txt [new file with mode: 0644]
tox.ini

index 7bb5fbc..6bc2461 100644 (file)
@@ -1,6 +1,5 @@
 *~
 *.pyc
-/docs_build/
 /docs_output/
 /releng/
 venv/
@@ -10,3 +9,5 @@ nosetests.xml
 .*
 *.log
 *.retry
+.tox
+docs/_build/*
diff --git a/docs/conf.py b/docs/conf.py
new file mode 100644 (file)
index 0000000..eb12e74
--- /dev/null
@@ -0,0 +1 @@
+from docs_conf.conf import *  # noqa: F401,F403
diff --git a/docs/conf.yaml b/docs/conf.yaml
new file mode 100644 (file)
index 0000000..6c76e3c
--- /dev/null
@@ -0,0 +1,3 @@
+---
+project_cfg: opnfv
+project: APEX
diff --git a/docs/index.rst b/docs/index.rst
new file mode 100644 (file)
index 0000000..01f8c19
--- /dev/null
@@ -0,0 +1,24 @@
+.. _apex:
+
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+.. SPDX-License-Identifier CC-BY-4.0
+.. (c) Open Platform for NFV Project, Inc. and its contributors
+
+*********************************
+OPNFV Apex
+*********************************
+
+.. toctree::
+   :numbered:
+   :maxdepth: 3
+
+   release/scenarios/os-nosdn-nofeature-noha/index
+   release/scenarios/os-nosdn-performance-ha/index
+   release/scenarios/os-ovn-nofeature-noha/index
+   release/scenarios/os-nosdn-nofeature-ha/index
+   release/scenarios/os-odl-nofeature-noha/index
+   release/scenarios/os-odl-nofeature-ha/index
+   release/scenarios/k8s-nosdn-nofeature-noha/index
+   release/installation/index
+   release/release-notes/index
diff --git a/docs/requirements.txt b/docs/requirements.txt
new file mode 100644 (file)
index 0000000..9fde2df
--- /dev/null
@@ -0,0 +1,2 @@
+lfdocs-conf
+sphinx_opnfv_theme
diff --git a/tox.ini b/tox.ini
index 4d9ed62..f69881e 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = docs,pep8,pylint,py35
+envlist = docs,docs-linkcheck,pep8,pylint,py35
 
 [testenv]
 usedevelop = True
@@ -24,3 +24,13 @@ commands = flake8 --exclude .build,build --ignore=F401
 [testenv:py35]
 basepython = python3
 
+[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