From f992b1ce42d6d553146f538f7874fa40f1934cd8 Mon Sep 17 00:00:00 2001 From: Samriddhi Date: Thu, 18 May 2017 22:22:04 +0530 Subject: [PATCH] Updated the keystone docs to follow the docs theme Changed the existing keystone documenatation html theme to the new openstackdocstheme. For reference, the same theme is being used here, https://docs.openstack.org/admin-guide/. Closes-Bug: #1692031 Change-Id: Ibf1b018e8ed38afa04d02ab033762d6b0ceab89b --- doc/source/conf.py | 6 ++++-- test-requirements.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index c2b9148f84..63c36524db 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -29,6 +29,8 @@ import subprocess import sys import warnings +import openstackdocstheme + # NOTE(dstanek): adds _ to the builtins so keystone modules can be imported __builtins__['_'] = str @@ -135,8 +137,8 @@ man_pages = [ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -# html_theme_path = ["."] -# html_theme = '_theme' +html_theme_path = [openstackdocstheme.get_html_theme_path()] +html_theme = 'openstackdocs' # 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 diff --git a/test-requirements.txt b/test-requirements.txt index 014106f828..7d4b7f05da 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -32,6 +32,7 @@ testrepository>=0.0.18 # Apache-2.0/BSD testtools>=1.4.0 # MIT # For documentation +openstackdocstheme>=1.5.0 # Apache-2.0 oslosphinx>=4.7.0 # Apache-2.0 reno!=2.3.1,>=1.8.0 # Apache-2.0