Fix RTD not rendering bullets of toctree

RTD is not rendering the bullets of toctree items when the
oslosphinx extension containing the 'openstack' theme is used.
This patch is a circumvention until the issue has been fixed
in oslosphinx [1].

[1] https://bugs.launchpad.net/oslosphinx/+bug/1664976

Change-Id: Id78caa0022c2d1257a651712bdb14f126bf854fc
Closes-Bug: #1664863
This commit is contained in:
Andreas Scheuring 2017-02-22 09:30:14 +01:00
parent a30e1bc424
commit 399dfe06f2
1 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,7 @@
# under the License.
import os
import oslosphinx
import sys
sys.path.insert(0, os.path.abspath('../..'))
@ -74,6 +75,14 @@ pygments_style = 'sphinx'
# Sphinx are currently 'default' and 'sphinxdoc'.
# html_theme_path = ["."]
# html_theme = '_theme'
# Bullets of a toctree are not getting rendered when docs are build
# on RTD. The following 2 lines circumvent that.
# For more details see: https://bugs.launchpad.net/oslosphinx/+bug/1664976
# Once the bug is fixed, those 2 lines can be remove again
html_theme_path = [os.path.join(os.path.dirname(oslosphinx.__file__), 'theme')]
html_theme = 'openstack'
html_static_path = ['_static']
# Output file base name for HTML help builder.