24 Commits

Author SHA1 Message Date
Bogdan Dobrelya
e8afa6878f Allow deeper levels of nesting for pdf builds
Change the defaults for the max of a 5 of \begin...\end stanzas,
up to a 10.

Change-Id: I52ef17bd87cbcde7f9dc34e8b1bb874581d0917d
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2019-06-24 16:30:15 +02:00
Monty Taylor
9c31aeca60
Fix bugtracker and documentation references
These are all out of date.

Co-Authored-By: Sergey Skripnick <sskripnick@mirantis.com>
Change-Id: I7f59ec145946b316432357f3d0190b65157bcbfb
2018-04-25 13:17:02 +02:00
Monty Taylor
f44ed7ab35
Update python-openstacksdk references to openstacksdk
Now that the repo is renamed, update all of the references.
While we're at it, remote unused translation config.

Change-Id: Ib9f80eb809317483f83f79952470c2b57b2bb7c6
2018-03-23 12:31:24 -05:00
zhang.lei
1149329d9c Remove the deprecated "giturl" option
From openstackdocstheme 1.18.0, valid Git URLs can be retrieved by
openstackdocstheme[1], we do not need giturl option anymore.

[1] https://review.openstack.org/532163

Change-Id: I1848f43d337d40248fce3f50554e4b5ba294396c
2018-01-15 03:50:21 +00:00
Monty Taylor
535f2f48ff
Merge shade and os-client-config into the tree
This sucks in the git history for both projects, then moves their files
in place. It should not introduce any behavior changes to any of the
existing openstacksdk code, nor to openstack.config and openstack.cloud
- other than the name change.

TODO(shade) comments have been left indicating places where further
integration work should be done.

It should not be assumed that these are the final places for either to
live. This is just about getting them in-tree so we can work with them.

The enforcer code for reasons surpassing understanding does not work
with python setup.py build_sphinx but it does work with sphinx-build
(what?) For now turn it off. We can turn it back on once the build
sphinx job is migrated to the new PTI.

Change-Id: I9523e4e281285360c61e9e0456a8e07b7ac1243c
2017-11-15 09:03:23 -06:00
Monty Taylor
a4ee1a3f09
Merge tox, tests and other support files
Change-Id: I5a4759e36089f1f4fab0c75412c94d051d8b16a7
2017-10-04 14:51:08 -05:00
Brian Curtin
b835543f65 Enable warnings_as_errors in doc enforcer
Rather than occasionally playing catch-up until the wait_for methods are
removed from the base Proxy in 1.0, we can temporarily ignore those two
names. This allows us to make the doc build fail if undocumented proxy
methods occur.

After 1.0 we should remove the special cases for wait_for names, but
leave warnings_as_errors on.

Change-Id: I8fe41ed639ec318a18db3022371b52382c53aa99
2017-04-13 14:50:26 +00:00
Thomas Bechtold
7822e33622 Fix doc build if git is absent
When building packages if git is absent, do not try to get the git sha
via the git cli. That can not work.

Change-Id: I3bde4df045287cbda07c9447ef3397de74f42910
Closes-Bug: #1677463
2017-03-30 12:04:50 +02:00
Lars Kellogg-Stedman
5b2df7e724 Enable streaming responses in download_image
Previously, the openstack.image.image_download method would place the
contents of a remote image into a Python variable.  With this change,
the download_image method can optionally return the
requests.Response object returned by session.get(), which permits
the caller to download the image in chunks using the iter_content
method.  This can prevent performance issues when dealing with
large images.

Change-Id: Ie62ebcc895ca893321a10def18ac5d74c7c843b9
2017-03-02 15:45:07 -05:00
Jenkins
5ca2fa80ad Merge "Remove unnecessary coding format in the head of files" 2017-02-16 03:05:09 +00:00
Brian Curtin
8858995c97 Update intersphinx linking to python.org
We're getting a message in the docs build about the intersphinx location
having moved. This moves it accordingly.

Running Sphinx v1.5.2
loading pickled environment... not yet created
loading intersphinx inventory from
http://docs.python.org/3/objects.inv...
intersphinx inventory has moved: http://docs.python.org/3/objects.inv ->
https://docs.python.org/3/objects.inv

Change-Id: I9ae3fd19a157dfcee0357ddfaab9e8933af7624c
2017-02-15 14:42:39 -05:00
Brian Curtin
ad3a0fcf44 Enforce inclusion of pulic proxy methods in docs
Per the approach on https://review.openstack.org/#/c/428276/, and in
general even outside of that change, we should have more strict
enforcement on the inclusion of our public proxy APIs in the
documentation. This tool runs as a part of our doc build, via `tox -e
docs`, and collects all of the public proxy methods and then compares
that list to the list of methods that were produced by Sphinx.

For right now this will only output warnings, but we should eventually
turn on enforcer_warnings_as_errors in doc/source/conf.py so that we can
truly enforce these things. If you don't document something, it'll kill
the doc build and then kill the docs gate job, so undocumented code
won't be accepted. We'll need to leave it off for the time
being as we transition into it.

Change-Id: I96743de7e0790da98d758415e084a26a92aa3c70
2017-02-10 09:24:39 -05:00
miaohb
d38571499c Remove unnecessary coding format in the head of files
The line of "coding utf8" is added by some editors automatically.
It's useless, can be removed.

Change-Id: I066a91972750bc6ef79858dc434b7e7be9dcf52f
2017-01-04 18:00:47 +08:00
ZhiQiang Fan
3e4c0940f2 [Trivial] Remove executable privilege of doc/source/conf.py
It is a configuration file, rather than a script.

Change-Id: I6a557a229483a9396754bdcd5658088d0be6b2c7
2016-04-29 20:25:20 +08:00
Andreas Jaeger
eeedb20a60 Fix "report a bug" launchpad project
For docs set the launchpad project users report bugs
against to "python-openstacksdk". Users can report bugs
using the "bug icon" that will
directly link to the launchpad project, it currently goes to
"openstack-manuals" which is wrong for this content.

This variable is used by openstackdocstheme 1.2.6.

Also, update comments for the variables passed to openstackdocstheme.

Change-Id: Id036c6373092673ce0c54be1b64ea87d1de89b88
Related-Bug: #1524476
2015-12-11 17:39:53 +01:00
Brian Curtin
7a9f880771 Remove oslosphinx
Now that we use openstackdocstheme, we don't need to depend on or
include oslosphinx in our doc configuration.

Change-Id: I4ac7c1600a970da39ec3e45907a2353e772620e1
2015-12-10 10:40:03 -06:00
Anne Gentle
52e525fcd5 Updates doc enviro to use OpenStack Docs theme
For building to developer.openstack.org, want to match the
app dev docs.
Partial-bug: 1479977

Change-Id: I684e9d4fd3128f022e511ab2b8c75245cfaf19bf
2015-11-24 13:21:04 -06:00
Everett Toews
439fb0c7fe Docs for logging
Change-Id: I694e02b1607ecc2602b64a89a483aa70e864a8a0
Closes-Bug: 1420060
2015-06-23 12:33:06 -05:00
TerryHowe
2e060b3e58 Fix glossary and other 404s
The glossary was not being generated and there were a few other 404s
and warnings that are fixed.  Removed old TODO.  The glossary could
use some more work, but that TODO had become meaningless.

Change-Id: I7b6c0dc18c46d29a8edc85d22723acb3a25a2c26
2015-03-02 11:03:17 -07:00
Brian Curtin
9b2729cdd5 Build up user documentation section
This change creates a section of the documentation focused on users,
holding the guides, API docs, etc. Another change will focus on
documentation for contributors.

* Installation details were moved straight into the user index.
  Installation details for contributors will go into that section.
* The old usage.rst section was moved into the userguides/ section and
  will grow into a Connection guide in another change.
* The sections were organized according top to bottom in order of
  likelihood of utility to users. The guides will help people get
  started, the API docs will help them go from there, and anyone needing
  to customize lower-level things will have already scrolled through the
  preceeding sections to get to the end.
* In order to see how the Resource docs turn out to be organized, I
  added pages for Compute and Database resources. We'll need to add them
  for every service, but I didn't want to overload this change with all
  of those additions.
* Since glossary isn't linked in a TOC anywhere, just mentioned
  explicitly at the beginning of the user section, I added an exclude
  for it in the conf.py. It still gets built, but that allows it to not
  become a warning for being left out of TOCs.

Change-Id: If9d1e4726ed14d5b7592c9da00c27591d2a4291c
Partial-Bug: 1416553
2015-02-05 14:22:44 -06:00
Brian Curtin
b0a65514c0 Prepare for documentation of Resources
Add a section for where Resource classes will show up in the docs and
enter two skeleton pages for how this will look. Later changes will
cover the actual member-level documentation of the Resource classes for
each service, along with their addition to the TOC.

This additionally sets autodoc_member_order globally to "bysource",
meaning it'll order the rendered member documentation in the order it
was written. The default of alphabetical order by what shows up in
__dir__ is not as helpful or as readable as how we've organized the code.

Change-Id: Ifcd7cd81ba55ecb429c50680a926d4f8a44ca9a3
2014-11-24 16:40:55 -06:00
Terry Howe
cc6380b7c0 Change configuration for sphinx autodoc
Change-Id: I604f6a8acaa8ba8a6521b16570a91bd178db3c37
2014-10-21 05:20:01 -06:00
Doug Hellmann
b823ad53ed Switch to oslosphinx
Use the version of the doc theme without the namespace
package.

Partial-bug: #1277168
Change-Id: I7788a9d6b5984fdfcc4678f2182104d2eb8a2be0
2014-03-12 10:16:05 -07:00
Jesse Noller
e0418241a3 setting up the initial layout; move the api proposals to api_strawman
Change-Id: I7c933d5e023c2a98a64aa90ed209f1e25d07f0d9
2014-01-24 22:58:25 -06:00