This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).
Change-Id: I1531aed08fc23dbcb04550285f9d41993cd10af4
Python objects returned with Yaml.load() may be dangerous if you receive
a YAML document from an untrusted source such as the Internet.
The function yaml.safe_load() limits this ability to simple Python
objects like integers or lists.
In ordered_load we're adding a custom class so we have to use yaml.load.
In order to make it safe, set the base class to SafeLoader instead of
Loader.
Reference:
https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html
Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Change-Id: I3d5df9898c72c59ddab0ac7562b953e91f470220
The html output now uses a more compact form for empty col elements.
Update the tests to account for this.
Change-Id: I055254463e48cc8fdd44c4de7c39595a574afa47
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848
Change-Id: I6c7fc3cf730a5a1fcb4b40ccc406808e224dc30b
Add an explicit onclick action for anchor links so that they set the
urlbar correctly. This long standing issue really sucks in sending
around links to people from API sites.
Change-Id: I449399836d2f327188b659a266b2e860e3ebb462
When ShowAll button is selected, close
button text was grayed out.
Update CSS to display readable button text, and match
the current behaviour of the detail/close button
when a single section is displayed.
Change-Id: Icd40ecae8f5007bbf3546b678a6f5f6081e89bc6
The following file(s) added utf-8 encoding but never used. So we can
remove them at all.
os_api_ref/tests/test_warnings.py
os_api_ref/tests/test_os_api_ref.py
os_api_ref/tests/test_microversions.py
os_api_ref/tests/test_basic_example.py
os_api_ref/tests/base.py
os_api_ref/__init__.py
Change-Id: If08e1b00f777a146e2c582f5a194e022a215066e
In docutils 0.13.1, the get_column_widths method of Table directive
returns a tuple, where the widths array is the second item.
Also, get_column_widths now has a “if type(self.widths) == list” check,
so use the list syntax when setting the widths property.
Change-Id: I9888a649313c60257ce6dfc46cfbd2dcbf7ac189
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove os-api-ref.
Change-Id: I7ad1c2afda29b095ff3d53db5eec7101f8816c2e
In Python 3, httplib moved to http.client.
Use six in order to import the correct library on both Python 2 and
Python 3.
Change-Id: I6f43faf453809eed3f2e88fd587e941c80204793
Closes-Bug: #1623447
This does a few things:
* Change from button list to a select combo box.
** This allows users to type the number they want
* Add the ablity to tag versions to releases
** E.G. Say mitaka was released with 2.27, it will
show in the list as "2.27 - Mitaka".
** This currently set as a config option in
conf.py as a dict like:
os_api_ref_release_microversions = {
'2.27' : 'mitaka',
'2.10': 'liberty'
}
* Uses https://github.com/danielfarrell/bootstrap-combobox
** Apache Licenced
Change-Id: Ica7dd55cdbf413f03ea635aefb627a705132a73e
We currently have a pending conflict over the Sphinx version in g-r,
so sync with g-r manually. Overall I would suggest that this project
should follow g-r
Change-Id: I0bf1af38945ba3e52098a925ea31f6f1dc3f3fbd
This causes a really odd vertical alignment issue. If we remove it
then the entire API line is vertically aligned.
Change-Id: I3fc2d4b234843ec226d75d5d4dd79055d33645b6
With very long URI paths the wrapping either
looks weird or there is no charecter for it to
wrap on.
This moves the URI to its own line, and moves some
of the other elements aroud slightly.
Also changes the font of the subtitle to make it more apparent.
Change-Id: I36e7420224f69eaa5f4dceb18d910b40377b76c4