Update docs building
Use sphinx-build and cleanup unused config. Switch to openstackdocstheme 1.20.0 and remove obsolete settings from conf.py files. Update some RST files, they had wrong indentation. Change-Id: Iaad2841db809f8a343fb8b1031cf8d0587d70442
This commit is contained in:
parent
a178d4b73c
commit
06d7ac27b7
|
@ -66,7 +66,7 @@ html_theme = 'openstackdocs'
|
||||||
# So that we can enable "log-a-bug" links from each output HTML page, this
|
# So that we can enable "log-a-bug" links from each output HTML page, this
|
||||||
# variable must be set to a format that includes year, month, day, hours and
|
# variable must be set to a format that includes year, month, day, hours and
|
||||||
# minutes.
|
# minutes.
|
||||||
html_last_updated_fmt = '%Y-%m-%d %H:%M'
|
# html_last_updated_fmt = '%Y-%m-%d %H:%M'
|
||||||
|
|
||||||
# Output file base name for HTML help builder.
|
# Output file base name for HTML help builder.
|
||||||
htmlhelp_basename = '%sdoc' % project
|
htmlhelp_basename = '%sdoc' % project
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
openstack-doc-test
|
openstack-doc-test
|
||||||
==================
|
==================
|
||||||
|
|
||||||
------------------------------------------------------
|
-------------------------
|
||||||
OpenStack Validation tool
|
OpenStack Validation tool
|
||||||
------------------------------------------------------
|
-------------------------
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
========
|
========
|
||||||
|
|
|
@ -21,7 +21,7 @@ lxml==3.4.1
|
||||||
MarkupSafe==1.0
|
MarkupSafe==1.0
|
||||||
mccabe==0.2.1
|
mccabe==0.2.1
|
||||||
mock==2.0.0
|
mock==2.0.0
|
||||||
openstackdocstheme==1.18.1
|
openstackdocstheme==1.20.0
|
||||||
pbr==2.0.0
|
pbr==2.0.0
|
||||||
pep8==1.5.7
|
pep8==1.5.7
|
||||||
pyflakes==0.8.1
|
pyflakes==0.8.1
|
||||||
|
|
|
@ -145,7 +145,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'
|
# 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.
|
||||||
|
@ -190,17 +190,6 @@ htmlhelp_basename = 'OpenStack-Doc-Tools-ReleaseNotesdoc'
|
||||||
|
|
||||||
# -- Options for LaTeX output ---------------------------------------------
|
# -- 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
|
# Grouping the document tree into LaTeX files. List of tuples
|
||||||
# (source start file, target name, title,
|
# (source start file, target name, title,
|
||||||
# author, documentclass [howto, manual, or own class]).
|
# author, documentclass [howto, manual, or own class]).
|
||||||
|
|
|
@ -6,6 +6,7 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
||||||
iso8601>=0.1.11 # MIT
|
iso8601>=0.1.11 # MIT
|
||||||
lxml!=3.7.0,>=3.4.1 # BSD
|
lxml!=3.7.0,>=3.4.1 # BSD
|
||||||
docutils>=0.11 # OSI-Approved Open Source, Public Domain
|
docutils>=0.11 # OSI-Approved Open Source, Public Domain
|
||||||
sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD
|
sphinx>=1.6.5,!=1.6.6,!=1.6.7,<2.0.0;python_version=='2.7' # BSD
|
||||||
|
sphinx>=1.6.5,!=1.6.6,!=1.6.7,!=2.1.0;python_version>='3.4' # BSD
|
||||||
demjson>=2.2.2 # GLGPLv3+
|
demjson>=2.2.2 # GLGPLv3+
|
||||||
PyYAML>=3.12 # MIT
|
PyYAML>=3.12 # MIT
|
||||||
|
|
|
@ -37,13 +37,5 @@ console_scripts =
|
||||||
openstack-jsoncheck = os_doc_tools.jsoncheck:main
|
openstack-jsoncheck = os_doc_tools.jsoncheck:main
|
||||||
openstack-indexpage = os_doc_tools.index:main
|
openstack-indexpage = os_doc_tools.index:main
|
||||||
|
|
||||||
[build_sphinx]
|
|
||||||
source-dir = doc/source
|
|
||||||
build-dir = doc/build
|
|
||||||
all_files = 1
|
|
||||||
|
|
||||||
[upload_sphinx]
|
|
||||||
upload-dir = doc/build/html
|
|
||||||
|
|
||||||
[wheel]
|
[wheel]
|
||||||
universal = 1
|
universal = 1
|
||||||
|
|
|
@ -47,7 +47,6 @@ Options
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
|
||||||
domain=URL
|
domain=URL
|
||||||
|
|
||||||
Sets the ``domain`` to crawl. Default is ``docs.openstack.org``.
|
Sets the ``domain`` to crawl. Default is ``docs.openstack.org``.
|
||||||
|
|
||||||
For example, to crawl https://developer.openstack.org use the following
|
For example, to crawl https://developer.openstack.org use the following
|
||||||
|
@ -60,7 +59,6 @@ domain=URL
|
||||||
The result is available in the ``sitemap_developer.openstack.org.xml`` file.
|
The result is available in the ``sitemap_developer.openstack.org.xml`` file.
|
||||||
|
|
||||||
urls=URL
|
urls=URL
|
||||||
|
|
||||||
You can define a set of additional start URLs using the ``urls`` attribute.
|
You can define a set of additional start URLs using the ``urls`` attribute.
|
||||||
Separate multiple URLs with ``,``.
|
Separate multiple URLs with ``,``.
|
||||||
|
|
||||||
|
@ -71,7 +69,6 @@ urls=URL
|
||||||
$ scrapy crawl sitemap -a domain=developer.openstack.org -a urls="https://developer.openstack.org/de/api-guide/quick-start/"
|
$ scrapy crawl sitemap -a domain=developer.openstack.org -a urls="https://developer.openstack.org/de/api-guide/quick-start/"
|
||||||
|
|
||||||
LOG_FILE=FILE
|
LOG_FILE=FILE
|
||||||
|
|
||||||
Write log messages to the specified file.
|
Write log messages to the specified file.
|
||||||
|
|
||||||
For example, to write to ``scrapy.log``:
|
For example, to write to ``scrapy.log``:
|
||||||
|
|
|
@ -11,7 +11,7 @@ doc8>=0.6.0 # Apache-2.0
|
||||||
pylint==1.7.1 # GPLv2
|
pylint==1.7.1 # GPLv2
|
||||||
|
|
||||||
reno>=2.5.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
|
||||||
stestr>=2.0.0 # Apache-2.0
|
stestr>=2.0.0 # Apache-2.0
|
||||||
|
|
||||||
# mock object framework
|
# mock object framework
|
||||||
|
|
5
tox.ini
5
tox.ini
|
@ -24,7 +24,7 @@ commands =
|
||||||
doc8 -e txt -e rst doc/source/ HACKING.rst
|
doc8 -e txt -e rst doc/source/ HACKING.rst
|
||||||
# Run bashate during pep8 runs to ensure violations are caught by
|
# Run bashate during pep8 runs to ensure violations are caught by
|
||||||
# the check and gate queues.
|
# the check and gate queues.
|
||||||
bashate bin/doc-tools-check-languages
|
bashate bin/doc-tools-check-languages bin/doc-tools-build-rst
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
@ -39,7 +39,8 @@ commands = {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands = python setup.py build_sphinx
|
commands =
|
||||||
|
sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
|
||||||
|
|
||||||
[testenv:bindep]
|
[testenv:bindep]
|
||||||
# Do not install any requirements. We want this to be fast and work even if
|
# Do not install any requirements. We want this to be fast and work even if
|
||||||
|
|
Loading…
Reference in New Issue