From 21f94dea86abecd0f238f01c4d39d2fafb84d832 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 23 Feb 2020 14:48:14 +0100 Subject: Cleanup docs building * Switch to newer openstackdocstheme version and remove settings that are default now Change-Id: Iec8791077aa7f1cb8edfa64235fb718a98aaba90 --- api-ref/source/conf.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'api-ref/source') 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 -- cgit v1.2.1