Merge "Use oslosphinx when not building on read-the-docs"

This commit is contained in:
Jenkins 2017-01-31 19:27:49 +00:00 committed by Gerrit Code Review
commit fa1eed7286
2 changed files with 13 additions and 9 deletions

View File

@ -13,7 +13,6 @@
import os
import sys
import datetime
import openstackdocstheme
sys.path.insert(0, os.path.abspath('../..'))
# -- General configuration ----------------------------------------------------
@ -22,6 +21,12 @@ sys.path.insert(0, os.path.abspath('../..'))
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = []
# Executing on Read The Docs?
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if not on_rtd:
extensions.append("oslosphinx")
# autodoc generation is a bit aggressive and a nuisance when doing heavy
# text edit cycles.
# execute "export SPHINX_DEBUG=1" in your terminal to disable
@ -33,8 +38,10 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'OpenStack Browbeat'
project = u'Browbeat'
copyright = u"%d, OpenStack Foundation" % datetime.datetime.now().year
bug_tracker = u'Launchpad'
bug_tracker_uri = u'https://launchpad.net/openstack-browbeat'
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True
@ -48,11 +55,6 @@ pygments_style = 'sphinx'
# -- Options for HTML output --------------------------------------------------
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
html_theme = 'openstackdocs'
html_theme_path = [openstackdocstheme.get_html_theme_path()]
# Output file base name for HTML help builder.
htmlhelp_basename = '%sdoc' % project

View File

@ -7,8 +7,10 @@ hacking<0.11,>=0.10.0
ansible-lint
coverage>=3.6
python-subunit>=0.0.18
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2
sphinx>=1.3
oslosphinx>=2.5.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
sphinx_rtd_theme
testrepository>=0.0.18
testscenarios>=0.4
testtools>=1.4.0
openstackdocstheme