Sphinx Extensions to support API reference sites in OpenStack
Project description
Sphinx Extensions to support API reference sites in OpenStack
This project is a collection of sphinx stanzas that assist in building an API Reference site for an OpenStack project in RST. RST is great for unstructured English, but displaying semi structured (and repetitive) data in tables is not it’s strength. This provides tooling to insert semi-structured data describing request and response parameters, and turn those into nice tables.
The project also includes a set of styling (and javascript) that is expected to layer on top of an oslosphinx theme base. This provides a nice set of collapsing sections for REST methods and javascript controls to expand / collapse all sections.
Features
2 new sphinx stanzas rest_method and rest_parameters which support putting semi-structured data into the RST files.
TODO
A list, in no particular order, of things we should do in this project. If you would like to contribute to any of these please show up in #openstack-dev on IRC and ask for sdague to discuss.
Enhance documentation with examples and best practices
Testing for the code
max_microversion parameter support - so that we automatically tag parameters that have been removed
microversion selector, so that you can get a version of the api-ref that hides all microversion elements beyond your selected version (this one is going to be a bit of complex javascript)
make this compatible with openstackdocstheme (which is equal parts work here and with the openstack docs theme).
Potential ideas
These aren’t even quite todos, but just ideas about things that might be useful.
.. literalinclude is good for API samples files to be included, but should we have more markup that includes the full REST /URL as well
Sphinx stanzas
TODO: document the details of the stanzas
Free software: Apache license
Documentation: http://docs.openstack.org/developer/os-api-ref
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file os-api-ref-0.4.0.tar.gz
.
File metadata
- Download URL: os-api-ref-0.4.0.tar.gz
- Upload date:
- Size: 106.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad4eb5589fadc0d440a852b0d04050e1efd6cc180445eaf7b5faa226f79a500a |
|
MD5 | 40e9efbdb2ca6f0c4127b7e30ec71c25 |
|
BLAKE2b-256 | c76337ee299ad09f98acfe4081f4e026ce448a069e58b6541f7a305800120614 |
Provenance
File details
Details for the file os_api_ref-0.4.0-py2-none-any.whl
.
File metadata
- Download URL: os_api_ref-0.4.0-py2-none-any.whl
- Upload date:
- Size: 105.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df313234321613ba4c46a887ceb6d52504c77c6bc84439f4eb5de2c12b98bd01 |
|
MD5 | 7948b57fe337c16384e47ed1ce1c297d |
|
BLAKE2b-256 | ad04f16afc897a0803c0ce4498e5afb3cfef03f2b119eac50a93aa719b741462 |