From e71ae064dc3f15c300b30f80f9e700a33282a8ec Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 7 May 2024 18:55:17 +0900 Subject: [PATCH] Remove remaining reference to oslosphinx oslosphinx was retired in favor of openstackdocstheme. Change-Id: Iad5ef97d6081084e3f0ecc512f84e328aed152d5 --- api-ref/source/conf.py | 14 ++++++-------- doc/source/conf.py | 2 -- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index 33930b138..e8d852395 100644 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -15,8 +15,6 @@ import os import sys -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' - # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. @@ -31,11 +29,10 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinxcontrib.autohttp.flask', 'sphinxcontrib.pecanwsme.rest', + 'os_api_ref', + 'openstackdocstheme', ] -if not on_rtd: - extensions.append('oslosphinx') - wsme_protocols = ['restjson'] # Add any paths that contain templates here, relative to this directory. @@ -75,9 +72,10 @@ pygments_style = 'native' # a list of builtin themes. # html_static_path = ['_static'] -if on_rtd: - html_theme_path = ['.'] - html_theme = 'sphinx_rtd_theme' +html_theme = 'openstackdocs' +html_theme_options = { + "sidebar_mode": "toc", +} # Output file base name for HTML help builder. htmlhelp_basename = '%sdoc' % project diff --git a/doc/source/conf.py b/doc/source/conf.py index b76cdea6d..6eb4235f5 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -19,8 +19,6 @@ import os import sys -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' - # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here.