summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2020-06-02 13:36:43 +0200
committerAndreas Jaeger <aj@suse.com>2020-06-02 15:17:57 +0200
commitc568c9f769aa788bc70c2f26de28367cade832f3 (patch)
tree635dd83dac4e93f19c3cd71b6a3d5ac6f69aac1a
parentc4c57a168028465b86de4ead0d5662943c6021b8 (diff)
downloadosprofiler-c568c9f769aa788bc70c2f26de28367cade832f3.tar.gz
Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using these versions will allow especially: * Linking from HTML to PDF document * Allow parallel building of documents * Fix some rendering problems Update Sphinx version as well. Disable openstackdocs_auto_name to use 'project' variable as name. Change pygments_style to 'native' since old theme version always used 'native' and the theme now respects the setting and using 'sphinx' can lead to some strange rendering. openstackdocstheme renames some variables, so follow the renames before the next release removes them. A couple of variables are also not needed anymore, remove them. See also http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html Change-Id: Ia700e656b4c2616ccbff32707eb4297a1dafbe3b
-rw-r--r--doc/source/conf.py13
-rw-r--r--lower-constraints.txt6
-rw-r--r--releasenotes/source/conf.py10
-rw-r--r--test-requirements.txt6
4 files changed, 16 insertions, 19 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 8412b05..67978eb 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -40,9 +40,10 @@ extensions = [
]
# openstackdocstheme options
-repository_name = 'openstack/osprofiler'
-bug_project = 'osprofiler'
-bug_tag = ''
+openstackdocs_repo_name = 'openstack/osprofiler'
+openstackdocs_auto_name = False
+openstackdocs_bug_project = 'osprofiler'
+openstackdocs_bug_tag = ''
todo_include_todos = True
@@ -91,7 +92,7 @@ add_module_names = True
#show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = 'sphinx'
+pygments_style = 'native'
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
@@ -132,10 +133,6 @@ html_theme = 'openstackdocs'
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = []
-# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
-# using the given strftime format.
-html_last_updated_fmt = '%Y-%m-%d %H:%M'
-
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
#html_use_smartypants = True
diff --git a/lower-constraints.txt b/lower-constraints.txt
index ffd70a2..ebc7642 100644
--- a/lower-constraints.txt
+++ b/lower-constraints.txt
@@ -5,7 +5,7 @@ elasticsearch===2.0.0
jaeger-client==3.8.0
mock===2.0.0
netaddr===0.7.18
-openstackdocstheme===1.18.1
+openstackdocstheme==2.2.1
oslo.concurrency===3.26.0
oslo.config===5.2.0
oslo.serialization===2.18.0
@@ -13,10 +13,10 @@ oslo.utils===3.33.0
PrettyTable===0.7.2
pymongo===3.0.2
redis===2.10.0
-reno===2.5.0
+reno==3.1.0
requests===2.14.2
six===1.10.0
-sphinx===1.6.2
+Sphinx===2.0.0
stestr==2.0.0
testtools===2.2.0
WebOb===1.7.1
diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py
index f62ca60..3ea08dd 100644
--- a/releasenotes/source/conf.py
+++ b/releasenotes/source/conf.py
@@ -40,9 +40,10 @@ extensions = [
]
# openstackdocstheme options
-repository_name = 'openstack/osprofiler'
-bug_project = 'osprofiler'
-bug_tag = ''
+openstackdocs_repo_name = 'openstack/osprofiler'
+openstackdocs_auto_name = False
+openstackdocs_bug_project = 'osprofiler'
+openstackdocs_bug_tag = ''
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -97,7 +98,7 @@ exclude_patterns = []
# show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = 'sphinx'
+pygments_style = 'native'
# A list of ignored prefixes for module index sorting.
# modindex_common_prefix = []
@@ -148,7 +149,6 @@ 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 = '%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 fe8a322..766c4d4 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -6,8 +6,8 @@ ddt>=1.0.1 # MIT
stestr>=2.0.0 # Apache-2.0
testtools>=2.2.0 # MIT
-openstackdocstheme>=1.18.1 # Apache-2.0
-sphinx>=1.6.2 # BSD
+openstackdocstheme>=2.2.1 # Apache-2.0
+sphinx>=2.0.0,!=2.1.0 # BSD
# Bandit security code scanner
bandit>=1.1.0 # Apache-2.0
@@ -21,7 +21,7 @@ elasticsearch>=2.0.0,<3.0.0 # Apache-2.0
redis>=2.10.0 # MIT
# Build release notes
-reno>=2.5.0 # Apache-2.0
+reno>=3.1.0 # Apache-2.0
# For Jaeger Tracing
jaeger-client>=3.8.0 # Apache-2.0