Commit Graph

7 Commits

Author SHA1 Message Date
Hervé Beraud 7c1bbb5216 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removed specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project could meet the conditions leading to the bug, and
uniformization can't hurt. These changes will reduce the likelihood to face
pip resolver incompatibilities by splitting requirements.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-

Change-Id: I75450f05993a5e1fbebe647ffaab440a9a63bf95
2021-01-05 14:50:24 +01:00
Andreas Jaeger b6e905018e Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_version to not auto-version the documents.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I5ff3f372c12db0efeb26737b31006e88ddc238a0
2020-06-03 20:59:27 +02:00
Andreas Jaeger 3846e67eec [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Remove html_last_updated_fmt from doc/source.conf.py, it's set by the
theme now.
Cleanup setup.cfg.

Change-Id: I6d1d25c94a2e7f7d5129908c783f0e7101f13eca
2020-02-05 19:52:39 +01:00
ljhuang 1ddee6b2a0 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7

Change-Id: I5abf45901ae579b1c9b359d90dc97868288dcca5
2019-06-11 09:53:37 +00:00
Andreas Jaeger 5bb36011bc Build translated docs
openstackdocstheme 1.28.0 includes a script to build English and
translated documents together, use this for building docs.

Require the new openstackdocstheme version.

Change-Id: If4102ec42ee7f58cff5da46ee326833471520412
2019-01-17 18:54:35 +01:00
Andreas Jaeger 134aa41772 Update tox.ini, enable doc8
Use doc8 for linting of documents to avoid common RST problems.
Fix all problems found (overlong lines).

Update tox.ini:
* Update envlist to show actual used targets
* Use docs command that is run by Zuul scripts
* Remove -U from pip, it can break installations and is not needed here.

Change-Id: Id298af73f7d881352005ddc1c0ea5282b2e5e8e8
2018-03-02 20:40:51 +01:00
Andreas Jaeger 922c74aaba Add test-requirements.txt
Add test-requirements.txt including files needed for docs build.

splitting this up will help with our CI infrastructure.

Change-Id: I0ee2bb1527328eac5d2b4a53b4335b42272cd56a
2017-11-17 20:31:18 +01:00