summaryrefslogtreecommitdiff
path: root/api-ref/source/conf.py
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2020-02-23 14:48:14 +0100
committerAndreas Jaeger <aj@suse.com>2020-02-23 17:33:27 +0100
commit21f94dea86abecd0f238f01c4d39d2fafb84d832 (patch)
tree15df6cbe5218276769e870487590b403fa8da928 /api-ref/source/conf.py
parent8b5ec12818c11be667195a954aa1f15c8971e3c3 (diff)
downloaddesignate-21f94dea86abecd0f238f01c4d39d2fafb84d832.tar.gz
Cleanup docs building
* Switch to newer openstackdocstheme version and remove settings that are default now Change-Id: Iec8791077aa7f1cb8edfa64235fb718a98aaba90
Diffstat (limited to 'api-ref/source/conf.py')
-rw-r--r--api-ref/source/conf.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py
index 617d4ece..1cf3b6c5 100644
--- a/api-ref/source/conf.py
+++ b/api-ref/source/conf.py
@@ -23,15 +23,9 @@
# serve to show the default.
import os
-import subprocess
import sys
-from designate.version import version_info
-
-import openstackdocstheme
-
html_theme = 'openstackdocs'
-html_theme_path = [openstackdocstheme.get_html_theme_path()]
html_theme_options = {
"sidebar_mode": "toc",
"sidebar_dropdown": "api_ref",
@@ -39,6 +33,7 @@ html_theme_options = {
extensions = [
'os_api_ref',
+ 'openstackdocstheme'
]
# If extensions (or modules to document with autodoc) are in another directory,
@@ -71,14 +66,6 @@ copyright = u'OpenStack Foundation'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
-# The full version, including alpha/beta/rc tags.
-release = version_info.release_string()
-# The short X.Y version.
-version = version_info.version_string()
-
-# html_context allows us to pass arbitrary values into the html template
-html_context = {'bug_tag': 'api-ref',
- 'bug_project': 'designate'}
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -151,13 +138,6 @@ pygments_style = 'sphinx'
# so a file named "default.css" will overwrite the builtin "default.css".
# 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'
-git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
- "-n1"]
-html_last_updated_fmt = subprocess.check_output(git_cmd).decode('utf-8')
-
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
# html_use_smartypants = True