Commit Graph

23 Commits

Author SHA1 Message Date
shanyunfan33 af78d4a22c remove unicode from code
remove unicode from code

Change-Id: I95f201f5678f093981014a553ffadb2a6b2a0453
2022-04-29 15:48:17 +00:00
Andreas Jaeger 5b98e12acb 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.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Disable openstackdocs_auto_name to use 'project' variable 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.

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.

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

Change-Id: I23798a960616d53d1cc54342640e670fc677738d
2020-05-21 12:53:08 +02:00
Andreas Jaeger 1accaf2d8a Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Remove hacking from doc/requirements, we don't need to autodoc it.
- Remove Babel, this repo does not use it.

Change-Id: I8ad7b5e6ef11ea51c587ff58bfc54aee4fcda9da
2020-04-17 18:46:54 +02:00
Vishakha Agarwal 0c34f0f8ff Generate pdf documentation
This commit adds a new tox target to build pdf documentation.

Change-Id: I8defd8cb18316956f3f8fdc1af743a4a1123b0a9
2019-09-27 12:58:07 +05:30
Colleen Murphy 249d1e9924 Follow the PTI for docs
Use sphinx-build instead of the pbr sphinx extention for building docs
as instructed by the PTI[1].

This requires using the sphinxcontrib-apidoc plugin rather than the
autodoc pbr extention. We also remove the reference to the ChangeLog
file that is usually generated by pbr and instead refer to the published
reno release notes. Also fixes the header formatting for the index page,
as the headers weren't rendering at all.

[1] https://governance.openstack.org/tc/reference/pti/python.html

Change-Id: Iec8b99fa89877e357cf2e754abad77c9032acad1
2019-09-26 11:11:47 -07:00
Gage Hugo 0948e5e6da Enable sphinx todo extension
In a previous change [0] when warning-is-error was added, the
sphinx todo extension was causing errors with duplicate
registration. However with the recent changes between pbr and
sphinx, this extension no longer throws a duplicate error when
using warning-is-error and we can add it back in.

[0] https://review.openstack.org/#/c/439797/

Change-Id: I2c3c44015f5b961c56360f44b52c56629760de43
2017-07-17 11:16:19 -05:00
Jenkins 37a2352a21 Merge "Switch from oslosphinx to openstackdocstheme" 2017-07-07 16:59:03 +00:00
Boris Bobrov 5e3758a8fc Change locations of docs for intersphinx
Due to latest change in docs the old urls don't work and cause
gate failures. Fix it to reflect the new locations.

Depends-On: I7e170275fd422345505b7282b52899d08c7a4172
Change-Id: I2a4fc6a4782a5496b2ab4a8355ed2c3b6dac58fa
2017-07-05 12:02:12 +03:00
Van Hung Pham d8f102779b 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: I4a7b8cf6f7b3400f4861f1f19ad197cca67efff2
2017-06-30 14:18:48 +07:00
Vu Cong Tuan 6cab792d78 Fix html_last_updated_fmt for Python3
html_last_updated_fmt option is interpreted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.

Changing Popen to check_output to make it consistent
with keystone [1]

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

Change-Id: I126579da6cbdacfdbaed80ef968e43e0829e24e1
Closes-Bug:#1693670
2017-06-06 08:54:52 +07:00
Gage Hugo 7bf7619104 Remove pbr warnerrors in favor of sphinx check
This change removes the soon-to-be unused "warnerrors" setting,
which will be replaced by "warning-is-error" in sphinx
releases >= 1.5.[0] This also pre-emptively fixes most warnings
that came up when testing with sphinx >= 1.5:

- Multiple cases of Opts
- Redundant loading of todo extension

Added a comment to not to enable the new sphinx setting until
the issues with Changlog building are fixed.

Added setup.py to the list of files to ignore when building
docs.

[0] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113085.html

Change-Id: Ia0079c6b551dd3896bc3d922a477f927757bd61b
2017-03-07 20:51:19 -06:00
Eric Brown 049e2e6b9b Use https for *.openstack.org references
The openstack.org pages now support https and our references to
the site should by default be one signed by the organization.

Change-Id: I8a0588259d7b3fc8bd10504ffba7129b840e2a0d
2017-02-06 13:45:24 -08:00
Jamie Lennox c21ef89a88 Add a full listing of all auth plugins and there options
A commonly requested document is what auth plugins are available and
what parameters do they accept. Create an extension that can iterate
through the stevedore namespace and render all its available options.

Change-Id: Id0d0983c9803ce4e0ce201310a1603bc0ff30ca0
2017-01-10 14:40:28 +00:00
Thomas Bechtold 038b614d2e Fix doc build if git is absent
When building packages if git is absent, then we should not set
html_last_updated_fmt. It can still be set via the -D switch
when building with sphinx-build.

Change-Id: I3c55983a29150bb4f3742df5efa068f339ee1cd7
Closes-Bug: #1552251
2016-04-08 16:47:15 +02:00
LiuNanke 627fdd0176 Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.
Closes-bug: #1529836

Change-Id: I0cc16f50fef738594c123a27f34a517dd002e4f5
2016-01-13 22:45:09 +08:00
Jenkins 764aab9485 Merge "Add some documentation about migrating from ksc" 2015-12-21 00:44:54 +00:00
Jamie Lennox f4c4442f68 Add some documentation about migrating from ksc
With the upcoming deprecations from keystoneclient we should do a better
job explaining the changes for people trying to transition.

Change-Id: I7e0227c4b50267b165c119f0e83e28a400f18a09
2015-12-18 13:33:24 +11:00
Brant Knudson d493e71070 Docstring corrections
Fixes some of the more obvious issues with docstrings.

Change-Id: I85faf10ecc99f3ab9f0d5670e32df74bedd02793
2015-12-17 17:09:58 -06:00
Steve Martinelli 662394b104 remove references to keystone CLI
not sure what this was doing here in the first place, but the
CLI reference and man page have to go!

Change-Id: I68885014bd9c7ce2741580c8026567b698ed9361
2015-09-25 11:23:25 -04:00
Morgan Fainberg a0000e4e9a Move to the keystoneauth1 namespace
Conver from the keystoneauth namespace to keystoneauth1. This is to
ensure that is is possible to install all versions of keystoneauth
side-by-side.

Change-Id: Ibbaf11525980c8edb5968d8b8ee19c55094e77d8
2015-06-25 16:48:54 -07:00
David Stanek f34c1b0cb1 Removes temporary fix for doc generation
A temporary fix was added to get around a bug in how pbr handles
its autodoc_tree_index_modules setting. Since this bug is fixed we no
longer need the work around.

Change-Id: Id8274ef5c244bf50a34702ed9b4e50d3b82d8028
Closes-Bug: #1260495
(cherry picked from commit 045e47938f445741b6efedeb7243d3b413ea3229)
2015-06-15 12:27:43 +08:00
Jamie Lennox 581f4cd493 Change keystoneclient to keystoneauth in docs
This was simply the result of:

find -type f | xargs sed -i 's/keystoneclient/keystoneauth/g'
find -type f | xargs sed -i 's/python-keystoneauth/keystoneauth/g'

in the docs directory to fix the build failure.

Will look at a doc rewrite soon.

Change-Id: I05d4be12f31ea47e917dc79e50d17b174bf89938
2015-04-30 18:23:47 +10:00
Morgan Fainberg 49a223a370 Add doc data back in. This will be replaced by real doc data.
Change-Id: I59c11298a1d350a81a7298e9333da0c36e61a1a7
2015-04-28 16:12:16 -04:00