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: I89f2de245df7d5393a066d5c225897887978b03e
This commit is contained in:
pengyuesheng 2019-07-25 17:06:30 +08:00
parent fb460f6421
commit aa769d0d69
5 changed files with 2 additions and 61 deletions

View File

@ -16,8 +16,6 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
from monasca_api.version import version_info
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
@ -45,9 +43,6 @@ master_doc = 'index'
# General details about project
repository_name = u'openstack/monasca-api'
project = u'Monitoring API Reference'
version = version_info.canonical_version_string()
release = version_info.version_string_with_vcs()
bug_project = u'863'
bug_tag = u''
copyright = u'2014-present, OpenStack Foundation'
@ -128,10 +123,6 @@ html_short_title = 'API Ref'
# directly to the root of the documentation.
# html_extra_path = []
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
# html_use_smartypants = True
@ -174,17 +165,6 @@ htmlhelp_basename = 'MonitoringApiRefDoc'
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
# 'preamble': '',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).

View File

@ -15,8 +15,6 @@
import os
import sys
from monasca_api.version import version_info
sys.path = [
os.path.abspath('../..'),
os.path.abspath('../../bin')
@ -43,9 +41,6 @@ extensions = [
# geeneral information about project
repository_name = u'openstack/monasca-api'
project = u'monasca'
version = version_info.canonical_version_string()
release = version_info.version_string_with_vcs()
bug_project = u'863'
bug_tag = u''
copyright = u'2014-present, OpenStack Foundation'
@ -135,10 +130,6 @@ html_static_path = ['_static']
# directly to the root of the documentation.
# html_extra_path = []
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
#html_use_smartypants = True
@ -198,20 +189,6 @@ htmlhelp_basename = 'MonitoringApiDoc'
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
# Latex figure (float) alignment
#'figure_align': 'htbp',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).

View File

@ -52,7 +52,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-api-ref==1.4.0
os-client-config==1.28.0
os-testr==1.0.0

View File

@ -38,7 +38,6 @@ master_doc = 'index'
# General information about the project.
repository_name = u'openstack/monasca-api'
project = u'Monitoring API Release Notes'
# Release notes do not need a version number in the title, they
# cover multiple releases.
@ -128,10 +127,6 @@ html_theme = 'openstackdocs'
# directly to the root of the documentation.
# html_extra_path = []
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
# html_use_smartypants = True
@ -174,17 +169,6 @@ htmlhelp_basename = 'MonitoringApiReleaseNotesDoc'
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
# 'preamble': '',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).

View File

@ -30,4 +30,4 @@ 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
os-api-ref>=1.4.0 # Apache-2.0
reno>=2.5.0 # Apache-2.0
openstackdocstheme>=1.18.1 # Apache-2.0
openstackdocstheme>=1.20.0 # Apache-2.0