doc: update the configuration of the theme

Use the configuration options described in the documentation of
openstackdocstheme and clean up some old options on the way.

Change-Id: I16972c7fa1102baf66bd4478e03c0f6c77096788
This commit is contained in:
Luigi Toscano 2017-07-03 22:40:55 +02:00
parent 911aee11f6
commit ce2e165ebf
1 changed files with 7 additions and 14 deletions

View File

@ -14,13 +14,17 @@
# Sahara Release Notes documentation build configuration file # Sahara Release Notes documentation build configuration file
import openstackdocstheme
extensions = [ extensions = [
'reno.sphinxext', 'reno.sphinxext',
'openstackdocstheme'
] ]
# openstackdocstheme options
repository_name = 'openstack/sahara'
bug_project = 'sahara'
bug_tag = 'releasenotes'
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']
@ -58,7 +62,6 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
html_theme = 'openstackdocs' html_theme = 'openstackdocs'
html_theme_path = [openstackdocstheme.get_html_theme_path()]
# Theme options are theme-specific and customize the look and feel of a theme # 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 # further. For a list of options available for each theme, see the
@ -89,16 +92,6 @@ html_theme_path = [openstackdocstheme.get_html_theme_path()]
# so a file named "default.css" will overwrite the builtin "default.css". # so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static'] html_static_path = ['_static']
giturl = (
u'http://git.openstack.org/cgit/openstack/sahara/tree/releasenotes/source'
)
# html_context allows us to pass arbitrary values into the html template
html_context = {
"bug_tag": "releasenotes",
"giturl": giturl,
"bug_project": "sahara"
}
# Add any extra paths that contain custom files (such as robots.txt or # Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied # .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation. # directly to the root of the documentation.