From 8932465654c98c4e80b004c959dbc8399ab2d0e4 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Sun, 2 Jul 2017 14:23:16 +0800 Subject: [PATCH] Fix openstackdocstheme See the docs[0] how to use it. Also add the variables for the bug log feature. [0]https://docs.openstack.org/openstackdocstheme/latest/ Change-Id: I72f9b78cb2899adce633bda25d16d8af99674dda --- releasenotes/source/conf.py | 6 +++--- test-requirements.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py index 3d5c0bd..6d893cb 100644 --- a/releasenotes/source/conf.py +++ b/releasenotes/source/conf.py @@ -19,7 +19,6 @@ # -- General configuration ------------------------------------------------ -import openstackdocstheme # If your documentation needs a minimal Sphinx version, state it here. #needs_sphinx = '1.0' @@ -28,6 +27,7 @@ import openstackdocstheme # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ + 'openstackdocstheme', 'reno.sphinxext', ] @@ -107,7 +107,7 @@ html_theme = 'openstackdocs' #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. -html_theme_path = [openstackdocstheme.get_html_theme_path()] +# html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". @@ -137,7 +137,7 @@ html_static_path = ['_static'] # 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' +html_last_updated_fmt = '%Y-%m-%d %H:%M' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. diff --git a/test-requirements.txt b/test-requirements.txt index 31c3f5a..a23c7e7 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,6 +1,6 @@ # This is required for the docs build jobs -sphinx!=1.6.1,>=1.5.1 # BSD -openstackdocstheme>=1.5.0 # Apache-2.0 +sphinx>=1.6.2 # BSD +openstackdocstheme>=1.11.0 # Apache-2.0 # This is required for the releasenotes build jobs # FIXME: reno is manually pinned to !=2.0.0 because of bug #1651995