From 33dc529c378c64864cb22f75f31f620cfd151be0 Mon Sep 17 00:00:00 2001
From: pengyuesheng <pengyuesheng@gohighsec.com>
Date: Fri, 5 Jul 2019 10:20:23 +0800
Subject: [PATCH] Bump the openstackdocstheme extension to 1.20

Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Ib5e22f6a5374f05e576bbc00a209209fdb09acad
---
 doc/requirements.txt        | 2 +-
 doc/source/conf.py          | 8 --------
 lower-constraints.txt       | 2 +-
 releasenotes/source/conf.py | 4 ----
 4 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/doc/requirements.txt b/doc/requirements.txt
index f9c91a3db..5070b34d7 100644
--- a/doc/requirements.txt
+++ b/doc/requirements.txt
@@ -2,7 +2,7 @@
 # of appearance. Changing the order has an impact on the overall integration
 # process, which may cause wedges in the gate later.
 
-openstackdocstheme>=1.18.1 # Apache-2.0
+openstackdocstheme>=1.20.0 # Apache-2.0
 sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
 sphinx!=1.6.6,!=1.6.7,>=1.6.2;python_version>='3.4' # BSD
 reno>=2.5.0 # Apache-2.0
diff --git a/doc/source/conf.py b/doc/source/conf.py
index c4f870070..178126835 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -6,15 +6,10 @@
 # full list see the documentation:
 # http://www.sphinx-doc.org/en/master/config
 
-import os
-import sys
-
-sys.path.insert(0, os.path.abspath('../..'))
 
 # -- Project information ------------------------------------------------------
 
 # General information about the project.
-project = 'oslo.messaging'
 copyright = '2018, Oslo Contributors'
 
 # -- General configuration ----------------------------------------------------
@@ -33,9 +28,6 @@ repository_name = 'openstack/oslo.messaging'
 bug_project = 'oslo.messaging'
 bug_tag = ''
 
-# Must set this variable to include year, month, day, hours, and minutes.
-html_last_updated_fmt = '%Y-%m-%d %H:%M'
-
 # The master toctree document.
 master_doc = 'index'
 
diff --git a/lower-constraints.txt b/lower-constraints.txt
index 3df8f1a83..3f6f43af8 100644
--- a/lower-constraints.txt
+++ b/lower-constraints.txt
@@ -38,7 +38,7 @@ mox3==0.20.0
 msgpack-python==0.4.0
 netaddr==0.7.18
 netifaces==0.10.4
-openstackdocstheme==1.18.1
+openstackdocstheme==1.20.0
 os-client-config==1.28.0
 oslo.concurrency==3.25.0
 oslo.config==5.2.0
diff --git a/releasenotes/source/conf.py b/releasenotes/source/conf.py
index f248a8a93..e8b21ac99 100644
--- a/releasenotes/source/conf.py
+++ b/releasenotes/source/conf.py
@@ -27,7 +27,6 @@
 
 # -- Project information --------------------------------------------------
 # General information about the project.
-project = u'oslo.messaging Release Notes'
 copyright = u'2016, oslo.messaging Developers'
 
 # Release notes do not need a version in the title, they span
@@ -51,9 +50,6 @@ repository_name = 'openstack/oslo.messaging'
 bug_project = 'oslo.messaging'
 bug_tag = ''
 
-# Must set this variable to include year, month, day, hours, and minutes.
-html_last_updated_fmt = '%Y-%m-%d %H:%M'
-
 # The master toctree document.
 master_doc = 'index'