Commit Graph

31 Commits

Author SHA1 Message Date
Zuul eb4c124b38 Merge "Avoid TypeError when building for Sphinx 6.1.1 and above" 2023-10-20 07:27:55 +00:00
Dirk Müller 6b7248e0dc
Avoid TypeError when building for Sphinx 6.1.1 and above
see https://github.com/sphinx-doc/sphinx/issues/11094 for the
investigation and the fix.

Change-Id: If76e79531e0b81ba3e3c9fe38904b77b553e1698
2023-03-06 21:36:51 +01:00
songwenping d901c42655 Remove unnecessary unicode prefixes
Change-Id: If5bc9397a87cc8d4260e50b793ed352dbd012c0c
2022-04-19 19:36:41 +08:00
Hervé Beraud e8b3a90978 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: I60e74ffcc7a4cc5bb80b19c3aae1b317442d93bd
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-22 12:29:04 +02:00
Zuul b1eeb2c125 Merge "Switch to newer openstackdocstheme and reno versions" 2020-05-26 13:00:57 +00:00
Andreas Jaeger dd091c8010 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 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 problems

Update Sphinx version as well.

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.

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.

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

Change-Id: I5ebcae5db6b0f9f4dbf0754ace544b6c1e341ec7
2020-05-25 12:02:01 +00:00
Hervé Beraud d512ecc91e Add release notes links to doc index
Change-Id: I86cc31b7c3738e325b859343623c7fd1deb02661
2020-04-16 17:51:22 +02:00
Hervé Beraud 1327088489 [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: Ic8653cdf5a3d9c36ea608a0cd91d72e0a5921a26
Sem-Ver: api-break
2020-02-07 07:56:16 -08:00
caoyuan e63e75e938 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: Ifa4706d1191d56899e06ff77ea7b12936aac0328
2019-10-24 14:24:56 +08:00
jacky06 a022fbe382 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Id0d2722822207f499a4980e4bc149e8b25e243c8
2019-05-27 03:10:28 +00:00
Ben Nemec e46976c02f Cap Bandit below 1.6.0, update sphinx requirement, uncap jsonschema
Bandit 1.6.0 accidentally changed how the exclusion list option is
handled and breaks our use of it. Since we generally cap linters
and only move them forward when we're ready to deal with the fallout,
cap Bandit to the previous version until we have a reason to move to
a newer version.

Sphinx 2.0 no longer works on python 2.7, so we need to start capping
it there as well.

The jsonschema cap was removed in g-r so we need to remove it here too.

Change-Id: Ie8f45e4130297b50a8e98031f3f01244e646bec7
2019-05-24 17:18:26 +00:00
wangqi 62260a2478 delete unused '='
Change-Id: Iaf694002fc06771c00b24067134dd0f174baf2df
2018-08-01 07:13:10 +00:00
OpenStack Proposal Bot 7c2c8d0fd4 Updated from global requirements
Change-Id: I94ebff0d2b213c8531a93b9144a2e2b1b95e11be
2018-03-15 07:51:54 +00:00
OpenStack Proposal Bot 0ee604e0a1 Updated from global requirements
Change-Id: Ibe35b6789648dcbceee237bc30442e036a1ea4ee
2018-01-24 01:26:41 +00:00
OpenStack Proposal Bot 4518542b06 Updated from global requirements
Change-Id: Id2238e1616fff20238b19ad0e22afee473a54420
2018-01-18 03:25:08 +00:00
OpenStack Proposal Bot 38a98c3a01 Updated from global requirements
Change-Id: I5e4194ce03dbc627a054fe7ee6b0dd2185017b0d
2017-12-21 17:18:24 +00:00
ChangBo Guo(gcb) bd7090a108 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:

https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:

http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ib02738563f5ae3712e1074a3b08c693ea7cdea79
2017-12-21 17:18:16 +08:00
ChangBo Guo(gcb) 02531ea9e4 Update URLs in documents according to document migration
Change-Id: I4aba61ee6e6b27e9b1e49adcc3a55c857211ad1b
2017-07-13 10:00:49 +08:00
Akihiro Motoki bdcce8b8ad rearrange existing documentation to fit the new standard layout
Minor formatting improvements found during the document check
are also done.

Change-Id: I55d582100c40961a5b0f5ec4b2ea9a55f2d8d8a1
2017-07-01 21:02:49 +09:00
Akihiro Motoki 464c9b62b8 switch from oslosphinx to openstackdocstheme
Change-Id: Ieadb6ebd1b2714a07cc5c479a1c13da43c95fabc
2017-07-01 21:02:48 +09:00
Joshua Harlow d0376d8e3b Start adding some basic ovo examples (with an initial basic one)
Co-Authored-By: ChangBo Guo(gcb) <eric.guo@easystack.cn>

Change-Id: Ibc847e83332ee1a4b722b3b7d06bd7f4e8c1c565
2017-03-15 23:27:13 +08:00
Gevorg Davoian f79b43427e Fix documentation typo
Change-Id: Ieb5080faabe71d0f1555686857803273bca0937e
2016-09-12 20:20:57 +03:00
Andrew Laski 15d96379aa Remove the executable bit from files
These files do not need to be executable so let's remove that
permission.

Change-Id: Id1e84e3c4f8e35e483c0eacc73c79b8dc3628c8b
2016-02-29 14:13:37 -05:00
Doug Hellmann 50a8b1b937 make configuration options discoverable
Add an entry point to make the configuration options defined in the
library discoverable for the sample configuration generator.

Add the configuration options to the library documentation.

Change-Id: I5b49fef1d0363d8887a84cdc3cec242efe1b9084
2015-09-24 20:07:03 +00:00
Doug Hellmann 3b2071a96b add pbr-generated release history
Change-Id: I68c24b0dc2e4897596b32303978c561ecef2eb43
2015-09-24 19:59:58 +00:00
Ryan Rossiter 8c1179b386 ObjectVersionChecker fingerprint documentation
This adds documentation for how the process of fingerprint generation
works when using the ObjectVersionChecker.

Change-Id: Ie21746f6c2bab447a187b0b7507acdcea3d88c14
2015-09-03 20:24:35 +00:00
Grzegorz Grasza 26f6a55159 Add usage information
Add information about how to implement Oslo Versioned Objects
in your project.

Change-Id: I097d38fcd95b9ca6a7430046b23dda9877fd65fc
2015-08-04 09:11:05 +02:00
Doug Hellmann 3f9f2e1199 Move fixture dependencies to extras
Rather than always installing dependencies for the test tools included
in the library, define an extras called "test" and include the
dependencies there.

Add API documentation for the fixture module, and include notes about
installing the extra dependencies in the module documentation and
installation instructions.

Closes-Bug: #1440350
Depends-On: I78838dcd4da43b3c1d2610ac87a3ec55b9535646
Depends-On: Ibd2410e0153053b5121155474e99752256c7e4b8
Change-Id: I4e45c1bb4f08c9da510939514c5358e1575d3e0a
2015-07-12 18:08:01 +00:00
Victor Stinner e2b9b2a9bc Enhance documentation
Rewrite README.rst and copy it to doc/source/index.rst to add a little
bit more content.

Generate documentation for APIs. fixture, safe_utils and test submodules
are not documented.

Fix indentation in obj_reset_changes() docstring.

Fix formatting of obj_make_list() docstring.

Co-Authored-By: Dan Smith <dansmith@redhat.com>
Change-Id: I8110919de072c5a5139e3797f256925c92656117
2015-05-15 11:32:15 +02:00
Grzegorz Grasza f739f2bdaf Fix initial test failures
Fix py26 compatibility by removing dict comprehension
Remove history.rst from docs generation since it causes an error

Change-Id: Iedc6e6caa6fe2650c83683347c5d9ddcb4d105e8
Closes-Bug: 1420302
Closes-Bug: #1420372
Co-Authored-By: Dan Smith <dansmith@redhat.com>
2015-02-10 12:32:13 -08:00
Doug Hellmann 2e6d52b475 apply oslo-cookiecutter template 2015-02-02 15:08:43 -05:00