Skip to content

Commit 709dfd9

Browse files
committed
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. 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. Set openstackdocs_auto_name to use 'project' 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. Depends-On: https://review.opendev.org/729744 Change-Id: Id3989cabdbf2204821531b00149aa0f1cb8a4955
1 parent f6ee42c commit 709dfd9

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

doc/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# The order of packages is significant, because pip processes them in the order
22
# of appearance. Changing the order has an impact on the overall integration
33
# process, which may cause wedges in the gate later.
4-
openstackdocstheme>=1.23.2 # Apache-2.0
5-
reno>=2.5.0 # Apache-2.0
6-
sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD
4+
openstackdocstheme>=2.2.1 # Apache-2.0
5+
reno>=3.1.0 # Apache-2.0
6+
sphinx>=2.0.0,!=2.1.0 # BSD
77
sphinxcontrib-apidoc>=0.2.0 # BSD
88

99
# redirect tests in docs

doc/source/conf.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
]
3030

3131
# openstackdocstheme options
32-
repository_name = 'openstack/python-openstackclient'
33-
use_storyboard = True
32+
openstackdocs_repo_name = 'openstack/python-openstackclient'
33+
openstackdocs_use_storyboard = True
34+
openstackdocs_auto_name = False
3435

3536
# Add project 'foo' to this list to enable the :foo-doc: role
36-
openstack_projects = [
37+
openstackdocs_projects = [
3738
'neutron',
3839
]
3940

@@ -83,7 +84,7 @@
8384
#show_authors = False
8485

8586
# The name of the Pygments (syntax highlighting) style to use.
86-
pygments_style = 'sphinx'
87+
pygments_style = 'native'
8788

8889
# A list of ignored prefixes for module index sorting.
8990
modindex_common_prefix = ['openstackclient.']
@@ -126,11 +127,6 @@
126127
# so a file named "default.css" will overwrite the builtin "default.css".
127128
#html_static_path = ['_static']
128129

129-
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
130-
# using the given strftime format.
131-
#html_last_updated_fmt = '%b %d, %Y'
132-
html_last_updated_fmt = '%Y-%m-%d %H:%M'
133-
134130
# If true, SmartyPants will be used to convert quotes and dashes to
135131
# typographically correct entities.
136132
#html_use_smartypants = True

releasenotes/source/conf.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@
4444
]
4545

4646
# openstackdocstheme options
47-
repository_name = 'openstack/python-openstackclient'
48-
use_storyboard = True
47+
openstackdocs_repo_name = 'openstack/python-openstackclient'
48+
openstackdocs_use_storyboard = True
49+
openstackdocs_auto_name = False
4950

5051
# Set aliases for extlinks
5152
# * lpbug - generic Launchpad bug :lpbug:`123456`
@@ -118,7 +119,7 @@
118119
# show_authors = False
119120

120121
# The name of the Pygments (syntax highlighting) style to use.
121-
pygments_style = 'sphinx'
122+
pygments_style = 'native'
122123

123124
# A list of ignored prefixes for module index sorting.
124125
# modindex_common_prefix = []
@@ -169,11 +170,6 @@
169170
# directly to the root of the documentation.
170171
# html_extra_path = []
171172

172-
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
173-
# using the given strftime format.
174-
# html_last_updated_fmt = '%b %d, %Y'
175-
html_last_updated_fmt = '%Y-%m-%d %H:%M'
176-
177173
# If true, SmartyPants will be used to convert quotes and dashes to
178174
# typographically correct entities.
179175
# html_use_smartypants = True

0 commit comments

Comments
 (0)