Commit Graph

22 Commits

Author SHA1 Message Date
niuke e9caa7aa17 remove unicode literal from code
Change-Id: Ifd63876f511cef3a1f151c664a8bcd5ae77058b8
2022-07-28 10:22:54 +00:00
Hervé Beraud f8cd4689e9 Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: I5190044fed75d4c68e9d2686d9ab67b2afa0f9e0
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-22 10:42:28 +02:00
melissaml 4b2a6ea596 Fix pygments style
New theme of docs respects pygments_style.

more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I9810d0f07b1cebfa6c15e024f1483733c2ab6c72
2020-06-04 15:41:00 +08:00
Zuul a79a13b9a4 Merge "Add release notes links to doc index" 2020-06-03 10:19:33 +00:00
Andreas Jaeger 8e914079c6 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering

Update Sphinx version as well.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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.

Set openstackdocs_auto_name to use project as name.

Depends-On: https://review.opendev.org/728938
Change-Id: I11c609d70b7a020547b1897cce60a7a2365e7dd8
2020-05-18 20:57:21 +02:00
Hervé Beraud 6f63275405 Add release notes links to doc index
Change-Id: I4117d223a5d148216474d382115f97a855c70071
2020-04-16 17:35:13 +02:00
Hervé Beraud 57cfce71db [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

Change-Id: I700fe8837312c5c9d88dcdd073389f81a1d874bd
Sem-Ver: api-break
2020-02-06 10:25:49 +01:00
Stephen Finucane b33d26efab trivial: Remove cruft from sphinx config file
Change-Id: I707dd369d5a26e463cf3661b82b7563eb575ce5c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-12-17 16:30:15 +00:00
Chris Lamb ca98f3fde8 Exclude tests from apidoc
it is not only useless to an end user but it also
includes random/non-deterministic contents.
This change makes the build reproducible.

See https://reproducible-builds.org/ for why this is good.

Change-Id: Ie40178da80161839379aa9762cd7a5361b44953b
2019-11-07 10:40:04 +01:00
caoyuan 8a37087388 tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: Ied545a35429a87dc32b746ed54595311d903fea2
2019-10-24 14:52:46 +08:00
caoyuan f35e099910 Move doc related modules to doc/requirements.txt
Change-Id: Ice407c712b5438b06c4f439c73946640a0c5a86c
2019-07-06 00:52:54 +08:00
wangqi 5d7035c8de Remove the remaining of the removed option
According to I8ae8507a089df4d0a32be5fbc615e2166f44516e the config option
multi_instance_display_name_template has been removed.
So this patch removes the remaining of the option.

Change-Id: I3f92add2f4505424264356a7ab832855c8971550
2018-05-22 02:57:55 +00:00
Vu Cong Tuan 884cee9f68 Replace deprecated "auth_uri" by "www_authenticate_uri"
According to [1], "auth_uri" has been deprecated.
This patch replace it by using "www_authenticate_uri" instead.

[1] https://review.openstack.org/#/c/508522

Change-Id: Ic490c9a1262c7aaae2c40b5c2b22b3a66ba294f1
2018-05-11 09:49:55 +07:00
Ben Nemec 8d0e5fcc95 Document workaround for AccessDenied error
On SELinux-enabled platforms it is possible for the report process
to fail with an AccessDenied error when it tries to read information
about the process being debugged.  Per [1], the recommended solution
is to temporarily disable SELinux during debugging and then turn it
on again once the report has completed successfully.

1: https://bugzilla.redhat.com/show_bug.cgi?id=1292787

Change-Id: Ic12d5658858bb085448e1b437b548111d3c79583
Closes-Bug: 1756044
2018-04-04 15:49:42 +00:00
ChangBo Guo(gcb) 1481aaf84e switch from oslosphinx to openstackdocstheme
Change-Id: Ic821995f1875ea16702f47d489f013633ffda93d
2017-07-03 12:41:24 +08:00
ChangBo Guo(gcb) 5ce4e61f18 rearrange content to fit the new standard layout
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454

Change-Id: Ic8d93ffc98b347e4158c715b88d15372b0948887
2017-06-29 19:17:17 +08:00
Jenkins 1f49780fcf Merge "How to use oslo.reports documentation" 2015-09-26 00:54:56 +00:00
Davanum Srinivas 0fe1caa1bf How to use oslo.reports documentation
Change-Id: I3cbbef96bc3d9fea97775554aef9a19736d8cdd8
2015-09-25 18:47:33 -04:00
Doug Hellmann 13d6302546 add auto-generated api documentation
Change-Id: I1e2f89a1bacdaa22a82b058f7a44966ec42b935b
2015-09-25 17:44:51 -04:00
Doug Hellmann 8730b5bca8 clean up release notes in toctree
Change-Id: I94fdd2ea73071139196752a02e39ef616200b5d2
2015-09-25 16:26:39 +00:00
Davanum Srinivas cc33b39709 add auto-generated docs for config options
Add automatically generated documentation for the configuration options
using oslo_config.sphinxext.

Change-Id: I9525a637bc284beaf22e48e80b5c2f8ba7872a8e
2015-09-25 06:53:12 -04:00
Solly Ross 01d69037e0 exported from oslo-incubator by graduate.sh 2015-06-03 12:49:50 -04:00