Adds tox docs job
Follow PTI for this and add all needed changes, remove obsolete options. Switch to openstackdocstheme instead of oslosphinx since that is retired. Remove module index - this repo has no modules and thus nothing is generated. Add job to publish documents. Change-Id: Ida269f9755099f32a12f46082b529311ecb7e2b6
This commit is contained in:
parent
59d12c214e
commit
2b1c945b45
@ -2,3 +2,4 @@
|
|||||||
templates:
|
templates:
|
||||||
- openstack-python-jobs-no-constraints
|
- openstack-python-jobs-no-constraints
|
||||||
- openstack-python35-jobs-no-constraints
|
- openstack-python35-jobs-no-constraints
|
||||||
|
- publish-openstack-docs-pti
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
============
|
||||||
|
Contributing
|
||||||
|
============
|
||||||
|
|
||||||
If you would like to contribute to the development of OpenStack,
|
If you would like to contribute to the development of OpenStack,
|
||||||
you must follow the steps in this page:
|
you must follow the steps in this page:
|
||||||
|
|
||||||
|
3
doc/requirements.txt
Normal file
3
doc/requirements.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
|
||||||
|
sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
|
||||||
|
openstackdocstheme>=1.20 # Apache-2.0
|
@ -23,9 +23,14 @@ sys.path.insert(0, os.path.abspath('../..'))
|
|||||||
extensions = [
|
extensions = [
|
||||||
'sphinx.ext.autodoc',
|
'sphinx.ext.autodoc',
|
||||||
#'sphinx.ext.intersphinx',
|
#'sphinx.ext.intersphinx',
|
||||||
'oslo.sphinx'
|
'openstackdocstheme'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# openstackdocstheme options
|
||||||
|
repository_name = 'openstack/reviewstats'
|
||||||
|
use_storyboard = True
|
||||||
|
html_theme = 'openstackdocs'
|
||||||
|
|
||||||
# autodoc generation is a bit aggressive and a nuisance when doing heavy
|
# autodoc generation is a bit aggressive and a nuisance when doing heavy
|
||||||
# text edit cycles.
|
# text edit cycles.
|
||||||
# execute "export SPHINX_DEBUG=1" in your terminal to disable
|
# execute "export SPHINX_DEBUG=1" in your terminal to disable
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
|
=======================================
|
||||||
Welcome to reviewstats's documentation!
|
Welcome to reviewstats's documentation!
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
Contents:
|
Contents
|
||||||
|
========
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
@ -15,5 +17,4 @@ Indices and tables
|
|||||||
==================
|
==================
|
||||||
|
|
||||||
* :ref:`genindex`
|
* :ref:`genindex`
|
||||||
* :ref:`modindex`
|
|
||||||
* :ref:`search`
|
* :ref:`search`
|
||||||
|
@ -1 +1 @@
|
|||||||
.. include:: ../README.rst
|
.. include:: ../../README.rst
|
@ -1,6 +1,6 @@
|
|||||||
========
|
=====
|
||||||
Usage
|
Usage
|
||||||
========
|
=====
|
||||||
|
|
||||||
To use reviewstats in a project::
|
To use reviewstats in a project::
|
||||||
|
|
||||||
|
@ -22,14 +22,6 @@ classifier =
|
|||||||
packages =
|
packages =
|
||||||
reviewstats
|
reviewstats
|
||||||
|
|
||||||
[build_sphinx]
|
|
||||||
source-dir = doc/source
|
|
||||||
build-dir = doc/build
|
|
||||||
all_files = 1
|
|
||||||
|
|
||||||
[upload_sphinx]
|
|
||||||
upload-dir = doc/build/html
|
|
||||||
|
|
||||||
[compile_catalog]
|
[compile_catalog]
|
||||||
directory = reviewstats/locale
|
directory = reviewstats/locale
|
||||||
domain = reviewstats
|
domain = reviewstats
|
||||||
|
@ -3,8 +3,6 @@ hacking>=0.5.6,<0.8
|
|||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
fixtures>=0.3.14
|
fixtures>=0.3.14
|
||||||
python-subunit
|
python-subunit
|
||||||
sphinx>=1.1.2,<1.2
|
|
||||||
oslo.sphinx
|
|
||||||
testrepository>=0.0.17
|
testrepository>=0.0.17
|
||||||
testscenarios>=0.4,<0.5
|
testscenarios>=0.4,<0.5
|
||||||
testtools>=0.9.32
|
testtools>=0.9.32
|
||||||
|
7
tox.ini
7
tox.ini
@ -1,6 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
envlist = py27,py35,pypy,pep8
|
envlist = py27,py35,pypy,pep8,docs
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
@ -12,6 +12,11 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
|
[testenv:docs]
|
||||||
|
basepython = python3
|
||||||
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
|
commands = sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8
|
commands = flake8
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user