switch to openstackdocstheme

Change-Id: I2175582357c86f461b0f1f940915e9306f67ee67
This commit is contained in:
zhurong 2017-07-07 15:53:51 +08:00 committed by Kirill Zaitsev
parent 860288305f
commit 34c1757f75
4 changed files with 24 additions and 6 deletions

View File

@ -37,6 +37,9 @@ sys.path.insert(0, os.path.abspath('../../muranoagent'))
#extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage',
# 'sphinx.ext.pngmath', 'sphinx.ext.viewcode', 'sphinxcontrib.httpdomain']
extensions = [
'openstackdocstheme',
]
# Add any paths that contain templates here, relative to this directory.
# templates_path = ['_templates']
@ -112,6 +115,15 @@ pygments_style = 'sphinx'
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
html_theme = 'openstackdocs'
# openstackdocstheme options
repository_name = 'openstack/murano-agent'
bug_project = 'murano'
bug_tag = ''
# Must set this variable to include year, month, day, hours, and minutes.
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
html_title = 'Murano Agent'
@ -136,9 +148,6 @@ html_title = 'Murano Agent'
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
"-n1"]
html_last_updated_fmt = subprocess.check_output(git_cmd)
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.

View File

@ -38,7 +38,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'oslosphinx',
'openstackdocstheme',
'reno.sphinxext',
]
@ -112,7 +112,15 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
html_theme = 'openstackdocs'
# openstackdocstheme options
repository_name = 'openstack/murano-agent'
bug_project = 'murano'
bug_tag = ''
# Must set this variable to include year, month, day, hours, and minutes.
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the

View File

@ -39,6 +39,7 @@ console_scripts =
all_files = 1
build-dir = doc/build
source-dir = doc/source
warning-is-error = 1
[egg_info]
tag_build =

View File

@ -10,6 +10,6 @@ testrepository>=0.0.18 # Apache-2.0/BSD
oslotest>=1.10.0 # Apache-2.0
# doc build requirements
oslosphinx>=4.7.0 # Apache-2.0
openstackdocstheme>=1.11.0 # Apache-2.0
sphinx>=1.6.2 # BSD
reno!=2.3.1,>=1.8.0 # Apache-2.0