From db490d17a5ca235956a0069c72e7bb5a3ae59c37 Mon Sep 17 00:00:00 2001 From: zhurong Date: Tue, 4 Jul 2017 09:39:48 +0800 Subject: [PATCH] Using the latest openstackdocstheme settings Change-Id: If922a2455bd4f6a8fd9fa81d3f9dfaccb8cf845a --- doc/source/conf.py | 15 +++++++++++---- releasenotes/source/conf.py | 13 ++++++++++--- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index b137e3a7..9cae9988 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -13,15 +13,14 @@ import os -import openstackdocstheme - project = 'python-muranoclient' # -- General configuration ---------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc'] +extensions = ['sphinx.ext.autodoc', + 'openstackdocstheme',] # autodoc generation is a bit aggressive and a nuisance when doing heavy # text edit cycles. @@ -58,7 +57,15 @@ html_theme = 'openstackdocs' # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = ['_theme'] -html_theme_path = [openstackdocstheme.get_html_theme_path()] +#html_theme_path = [openstackdocstheme.get_html_theme_path()] + +# openstackdocstheme options +repository_name = 'openstack/python-muranoclient' +bug_project = 'python-muranoclient' +bug_tag = '' + +# Must set this variable to include year, month, day, hours, and minutes. +html_last_updated_fmt = '%Y-%m-%d %H:%M' # Output file base name for HTML help builder. htmlhelp_basename = '%sdoc' % project diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 95f2e8ce..4c9b6876 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -29,8 +29,6 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # sys.path.insert(0, os.path.abspath('.')) -import openstackdocstheme - # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. @@ -41,6 +39,7 @@ import openstackdocstheme # ones. extensions = [ 'reno.sphinxext', + 'openstackdocstheme', ] # Add any paths that contain templates here, relative to this directory. @@ -122,7 +121,15 @@ html_theme = 'openstackdocs' # Add any paths that contain custom themes here, relative to this directory. # html_theme_path = [] -html_theme_path = [openstackdocstheme.get_html_theme_path()] +# html_theme_path = [openstackdocstheme.get_html_theme_path()] + +# openstackdocstheme options +repository_name = 'openstack/python-muranoclient' +bug_project = 'python-muranoclient' +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 # " v documentation".