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: Ie5930c73c748bb308940606fced8f84eecdecdc8
This commit is contained in:
		| @@ -43,7 +43,7 @@ sys.path.insert(0, ROOT) | |||||||
| # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. | ||||||
| extensions = [ | extensions = [ | ||||||
|     'sphinx.ext.autodoc', |     'sphinx.ext.autodoc', | ||||||
|     'oslosphinx', |     'openstackdocstheme', | ||||||
|     'reno.sphinxext', |     'reno.sphinxext', | ||||||
| ] | ] | ||||||
|  |  | ||||||
| @@ -120,6 +120,7 @@ man_pages = [ | |||||||
| # The theme to use for HTML and HTML Help pages.  Major themes that come with | # The theme to use for HTML and HTML Help pages.  Major themes that come with | ||||||
| # Sphinx are currently 'default' and 'sphinxdoc'. | # Sphinx are currently 'default' and 'sphinxdoc'. | ||||||
| #    html_theme = 'nature' | #    html_theme = 'nature' | ||||||
|  | html_theme = 'openstackdocs' | ||||||
|  |  | ||||||
| # Theme options are theme-specific and customize the look and feel of a theme | # 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 | # further.  For a list of options available for each theme, see the | ||||||
| @@ -188,6 +189,10 @@ html_static_path = ['_static'] | |||||||
| # Output file base name for HTML help builder. | # Output file base name for HTML help builder. | ||||||
| htmlhelp_basename = 'python-cinderclientdoc' | htmlhelp_basename = 'python-cinderclientdoc' | ||||||
|  |  | ||||||
|  | # 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' | ||||||
|  |  | ||||||
| # -- Options for LaTeX output ------------------------------------------------- | # -- Options for LaTeX output ------------------------------------------------- | ||||||
|  |  | ||||||
| @@ -221,3 +226,8 @@ latex_documents = [ | |||||||
|  |  | ||||||
| # If false, no module index is generated. | # If false, no module index is generated. | ||||||
| #    latex_use_modindex = True | #    latex_use_modindex = True | ||||||
|  |  | ||||||
|  | # -- Options for openstackdocstheme ------------------------------------------- | ||||||
|  | repository_name = 'openstack/python-cinderclient' | ||||||
|  | bug_project = 'cinderclient' | ||||||
|  | bug_tag = '' | ||||||
|   | |||||||
| @@ -38,7 +38,7 @@ | |||||||
| # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||||||
| # ones. | # ones. | ||||||
| extensions = [ | extensions = [ | ||||||
|     'oslosphinx', |     'openstackdocstheme', | ||||||
|     'reno.sphinxext', |     'reno.sphinxext', | ||||||
| ] | ] | ||||||
|  |  | ||||||
| @@ -112,7 +112,7 @@ pygments_style = 'sphinx' | |||||||
|  |  | ||||||
| # The theme to use for HTML and HTML Help pages.  See the documentation for | # The theme to use for HTML and HTML Help pages.  See the documentation for | ||||||
| # a list of builtin themes. | # a list of builtin themes. | ||||||
| html_theme = 'default' | html_theme = 'openstackdocs' | ||||||
|  |  | ||||||
| # Theme options are theme-specific and customize the look and feel of a theme | # 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 | # further.  For a list of options available for each theme, see the | ||||||
| @@ -151,6 +151,7 @@ html_static_path = ['_static'] | |||||||
| # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, | ||||||
| # using the given strftime format. | # using the given strftime format. | ||||||
| # html_last_updated_fmt = '%b %d, %Y' | # html_last_updated_fmt = '%b %d, %Y' | ||||||
|  | html_last_updated_fmt = '%Y-%m-%d %H:%M' | ||||||
|  |  | ||||||
| # If true, SmartyPants will be used to convert quotes and dashes to | # If true, SmartyPants will be used to convert quotes and dashes to | ||||||
| # typographically correct entities. | # typographically correct entities. | ||||||
| @@ -277,3 +278,8 @@ texinfo_documents = [ | |||||||
|  |  | ||||||
| # -- Options for Internationalization output ------------------------------ | # -- Options for Internationalization output ------------------------------ | ||||||
| locale_dirs = ['locale/'] | locale_dirs = ['locale/'] | ||||||
|  |  | ||||||
|  | # -- Options for openstackdocstheme ------------------------------------------- | ||||||
|  | repository_name = 'openstack/python-cinderclient' | ||||||
|  | bug_project = 'cinderclient' | ||||||
|  | bug_tag = '' | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ coverage!=4.4,>=4.0 # Apache-2.0 | |||||||
| ddt>=1.0.1 # MIT | ddt>=1.0.1 # MIT | ||||||
| fixtures>=3.0.0 # Apache-2.0/BSD | fixtures>=3.0.0 # Apache-2.0/BSD | ||||||
| mock>=2.0 # BSD | mock>=2.0 # BSD | ||||||
| oslosphinx>=4.7.0 # Apache-2.0 | openstackdocstheme>=1.11.0 # Apache-2.0 | ||||||
| python-subunit>=0.0.18 # Apache-2.0/BSD | python-subunit>=0.0.18 # Apache-2.0/BSD | ||||||
| reno!=2.3.1,>=1.8.0 # Apache-2.0 | reno!=2.3.1,>=1.8.0 # Apache-2.0 | ||||||
| requests-mock>=1.1 # Apache-2.0 | requests-mock>=1.1 # Apache-2.0 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Van Hung Pham
					Van Hung Pham