diff --git a/doc/source/conf.py b/doc/source/conf.py index 9cb193f76..0792f5619 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -5,7 +5,7 @@ import os # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. sys.path.append(os.path.abspath('../lib')) -extensions = ['oslosphinx', 'element_deps', 'sphinx.ext.autodoc'] +extensions = ['openstackdocstheme', 'element_deps', 'sphinx.ext.autodoc'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -23,6 +23,12 @@ master_doc = 'index' project = u'diskimage-builder' copyright = u'2015-2016, Various Authors' +# openstackdocstheme options +repository_name = 'openstack/diskimage-builder' +bug_project = 'diskimage-builder' +bug_tag = '' +html_last_updated_fmt = '%Y-%m-%d %H:%M' + # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. @@ -80,7 +86,7 @@ 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' # 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 diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index ed01c8f27..0aefbc819 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -4,7 +4,7 @@ import os # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = ['oslosphinx', 'reno.sphinxext'] +extensions = ['openstackdocstheme', 'reno.sphinxext'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -22,6 +22,12 @@ master_doc = 'index' project = u'diskimage-builder' copyright = u'2016, Diskimage-builder contributors' +# openstackdocstheme options +repository_name = 'openstack/diskimage-builder' +bug_project = 'diskimage-builder' +bug_tag = '' +html_last_updated_fmt = '%Y-%m-%d %H:%M' + # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. @@ -76,7 +82,7 @@ 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' # 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 diff --git a/test-requirements.txt b/test-requirements.txt index 3f88fb770..287016a7b 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -12,7 +12,7 @@ testtools>=1.4.0 # MIT # Doc requirements sphinx>=1.6.2 # BSD -oslosphinx>=4.7.0 # Apache-2.0 +openstackdocstheme>=1.11.0 # Apache-2.0 # releasenotes reno!=2.3.1,>=1.8.0 # Apache-2.0