19 Commits

Author SHA1 Message Date
Sean McGinnis
1021aee31f
Add directive to document CLI
Our CLI docs are very out of date. These used to be generated by the
docs team with some tooling they had. Since the docs moved in-repo, that
tooling has gone away, and for the most part no one has done any updates
to the CLI docs.

This adds a sphinx directive that will generate these docs every time
the docs are built. This way, whenever someone makes a CLI change, they
do not need to have to know to also edit a documentation file to match
their change. Any code changes will automatically be picked up and
reflected in the docs.

Change-Id: I4406872ab6e9335e338b710e492171580df74fa5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-03 22:19:10 -05:00
Andreas Jaeger
1a81faf86a 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. A
couple of variables are also not needed anymore, remove them.

Set openstackdocs_auto_name to use project as name.

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.

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: I2cc022495b162bec1424ec69611acb879900c005
2020-05-22 17:25:19 +00:00
Eric Harney
5fe5c63b51 Fix doc bug filing link
This needs to go to "python-cinderclient"
to work instead of "cinderclient".

Add a "doc" tag to these bugs as well.

Change-Id: I45ae03e9c071dd9b159b1c0183b53db4dd837453
2020-03-06 11:47:24 -05:00
Andreas Jaeger
6f761f6bf0 Change PDF file name
The previously choosen PDF file name conflicts in some repos with the
project logos (badge). Thus change https://review.opendev.org/679777
renames the desired PDF name to be doc-PROJECT.pdf to allow using the
badge in PDF files.

Follow this rename.

Change-Id: Ife8461f00ba2206d18ae45837bbc31d211e29841
2019-09-04 06:53:40 +02:00
Walter A. Boring IV
4c031b9294 Add support for building pdf documentation
This patch updates tox.ini to build the pdf version of
cinderclient documentation.

run tox -epdf-docs

Change-Id: If1f43e593db6ff6740b8a88b517c4505e39a3edd
2019-08-27 01:49:02 +00:00
翟小君
95a469f986 Bump openstackdocstheme to 1.20.0
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Icbfa21da1e83f745a98822a2f33c4ebc8d11fd0c
2019-07-04 13:53:20 +08:00
Eric Harney
2505e2a903 Fix doc build error
Doc build keeps failing w/

Recursion error:
    maximum recursion depth exceeded while pickling an object

Sphinx recommends bumping up the recursion limit to
get around this, and it appears to work.

Change-Id: If0a78f9af2e4ddd5fd88c44757642355b3a5bf2e
2018-12-14 11:43:56 -05:00
Stephen Finucane
bda535e15d doc: Remove cruft from conf.py
Change-Id: I0c0c77c25d3c96dd3c6a2a01be4f196c02e71dd6
2017-08-22 11:44:35 +01:00
Stephen Finucane
5d0b4bdc6e Use Sphinx 1.5 warning-is-error
With pbr 2.0 and Sphinx 1.5, the setting for treat sphinx warnings as
errors is setting warning-is-error in build_sphinx section. Migrate the
setting from the old warnerrors one.

Change-Id: Ifd411ead74497a43ab22c57090ece2e1c7cfddb5
2017-08-22 11:41:50 +01:00
Thomas Bechtold
3dc824599c Fix man page build
Ia3b5ee2b6aaf17781d3de7546a9477f1c928092f moved cinder.rst from the
doc/source/man directory into doc/source/cli, so we need to adjust
the path in conf.py to avoid issues when running:

python setup.py build_sphinx -b man

Change-Id: I32ca20e0e184b11c68c9b81a9ff3d1247330ade4
2017-07-29 08:36:35 +02:00
Van Hung Pham
16a75e8e35 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: Ie5930c73c748bb308940606fced8f84eecdecdc8
2017-07-14 13:24:45 +07:00
pawnesh.kumar
ae017ab4a2 Fix some PEP8 issues and Openstack Licensing
[H102 H103] Contributed Source code should be licensed under
the Apache 2.0 license.

Change-Id: I7d69bd9c8138d9ea5306c2fda56de875e33c544e
2016-10-14 09:47:42 +00:00
Sean McGinnis
423db4b32c Add reno for release notes management
Adopt reno for release notes like we have done for cinder.
One difference for the client is we will not be backporting
to Liberty per recommendation here [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/080694.html

Change-Id: Icb2520cfa249d104674eb42b5ac93a50a6ce34b4
2015-12-13 19:56:41 -06:00
Andreas Jaeger
b03d1e1f4c Stop using intersphinx
Remove intersphinx from the docs build as it triggers network calls that
occasionally fail, and we don't really use intersphinx (links other
sphinx documents out on the internet)

This also removes the requirement for internet access during docs build.

This can cause docs jobs to fail if the project errors out on
warnings.

Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb
Related-Bug: #1368910
2014-09-13 09:40:00 +02:00
Steve Martinelli
34adf358ca Update theme for docs
The current developer docs theme used is out of sync with the other
openstack projects. This patch will update the docs to provide a more
consistent look and feel when using developer docs

Change-Id: I9fd11b61d4404ba2627569074dc86ee0ddf0f96a
2014-07-24 20:45:01 -04:00
Jakub Ruzicka
e04232b552 Provide cinder CLI man page.
Provide basic but hopefully useful man page.

shell.rst was merged into and replaced by the man page in HTML docs.

pbr is used to determine version.

Docs copyright was changed to more accurate "OpenStack Contributors".

Fixes: bug 1206968
Implements: blueprint clients-man-pages
Change-Id: Iedd7b4b161ced564833fd9433762b87a4c1a374d
2013-08-05 16:00:01 -04:00
Chuck Short
dc1105ebca python3: Fix unicode strings
Python3 enforces the distinction between byte
strings and text strings more rigorously than
python2. So use six.text_type where approiate.

Change-Id: I46b3f5fe1f990fc1b7a3ee32904d608b070fc4c3
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-13 01:43:35 +00:00
lrqrun
0d0a46b1c2 Fix PEP8 issues.
Fix some pep8 issues in doc/source/conf.py make the code looks pretty.

Change-Id: I4062904dfebf62dddb7ca2cb7b6c547c5026eb54
2012-08-29 13:45:49 +08:00
Clark Boylan
7547dadf87 Move docs to doc.
To better facilitate the building and publishing of sphinx
documentation by Jenkins we are moving all openstack projects with
sphinx documentation to a common doc tree structure. Documentation
goes in project/doc and build results go in project/doc/build.

Change-Id: I3ae14ac735d9b4c0b534eac9a9c142f8ccaac1b9
2012-06-15 16:28:14 -04:00