From 3435de562979aa061e6e3879149a71758f4c139f Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 21 Jul 2017 14:38:02 -0400 Subject: [PATCH] switch to openstackdocstheme Change-Id: I3e64748706f0bfede27de1b74071b0f3ba29d5f2 Signed-off-by: Doug Hellmann --- doc/source/conf.py | 15 +++++++++++---- requirements.txt | 6 +++--- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 1ade652..1b75eba 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -31,9 +31,16 @@ from jinja2.utils import Markup # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.todo', 'sphinx.ext.viewcode', - 'oslosphinx' + 'openstackdocstheme' ] +# openstackdocstheme options +repository_name = 'openstack/project-team-guide' +bug_project = 'openstack-manuals' +bug_tag = 'PTG' +html_last_updated_fmt = '%Y-%m-%d %H:%M' +html_theme = 'openstackdocs' + todo_include_todos = True # Add any paths that contain templates here, relative to this directory. @@ -96,7 +103,7 @@ man_pages = [] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'nature' +#html_theme = 'nature' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -124,8 +131,8 @@ html_theme = 'nature' # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. -git_cmd = "git log --pretty=format:'%ad, commit %h' --date=local -n1" -html_last_updated_fmt = os.popen(git_cmd).read() +#git_cmd = "git log --pretty=format:'%ad, commit %h' --date=local -n1" +#html_last_updated_fmt = os.popen(git_cmd).read() # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. diff --git a/requirements.txt b/requirements.txt index 6e29eb6..44a88b6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -pbr>=0.6,<1.0 -oslosphinx -sphinx>=1.1.2,<1.2 +pbr +openstackdocstheme>=1.11.0 # Apache-2.0 +sphinx>=1.6.2 # BSD