From 4eed5c84cd1fc59ade488f7103361e44f57b9c0f Mon Sep 17 00:00:00 2001 From: Van Hung Pham Date: Fri, 30 Jun 2017 10:25:24 +0700 Subject: [PATCH] Switch from oslosphinx to openstackdocstheme As part of the docs migration work[0] for Pike we need to switch to use the openstackdocstheme. [0]https://review.openstack.org/#/c/472275/ Change-Id: I81e959fbd1544d543dd39898dbc2d63ef991a925 --- doc/source/conf.py | 13 ++++++++++++- test-requirements.txt | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index b70e1e15..c67ccb71 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -22,7 +22,7 @@ sys.path.insert(0, os.path.abspath('../..')) extensions = [ 'sphinx.ext.autodoc', #'sphinx.ext.intersphinx', - 'oslosphinx' + 'openstackdocstheme', ] # autodoc generation is a bit aggressive and a nuisance when doing heavy @@ -58,10 +58,16 @@ pygments_style = 'sphinx' # html_theme = '_theme' # html_static_path = ['static'] html_theme_options = {} +html_theme = 'openstackdocs' # Output file base name for HTML help builder. htmlhelp_basename = '%sdoc' % project +# 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' +html_last_updated_fmt = '%Y-%m-%d %H:%M' + # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass # [howto/manual]). @@ -74,3 +80,8 @@ latex_documents = [ # Example configuration for intersphinx: refer to the Python standard library. #intersphinx_mapping = {'http://docs.python.org/': None} + +# -- Options for openstackdocstheme ------------------------------------------- +repository_name = 'openstack/python-barbicanclient' +bug_project = 'python-barbicanclient' +bug_tag = '' \ No newline at end of file diff --git a/test-requirements.txt b/test-requirements.txt index 5c4d755a..4eedab7c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -15,4 +15,4 @@ python-openstackclient!=3.10.0,>=3.3.0 # Apache-2.0 # Documentation build requirements sphinx>=1.6.2 # BSD -oslosphinx>=4.7.0 # Apache-2.0 +openstackdocstheme>=1.11.0 # Apache-2.0