63 Commits

Author SHA1 Message Date
Tony Breeds
54ead9f913 Add Constraints support
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
2016-12-21 12:01:43 +11:00
OpenStack Proposal Bot
f694119d39 Updated from global requirements
Change-Id: I40c90da5ecc00fc01cf7c18848d03ffef49244ab
2016-11-01 13:33:36 +00:00
Graham Hayes
57c111888e microversion selector - dropdown
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
2016-10-28 12:07:57 +02:00
Dirk Mueller
533589ccd0 Sync with global-requirements
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
1.1.0
2016-09-29 17:06:28 +02:00
Tony Xu
b494f29f3e Update homepage with developer documentation page
Change-Id: Ic7c78e893f554d8ff9b336d61d5eb0dd36dccb43
2016-09-24 13:26:17 +08:00
Jenkins
db3e83584c Merge "Expand width of API Site" 2016-09-22 20:21:54 +00:00
Anne Gentle
22bf5f2ec6 Adds an example http-status.yaml file and updates doc
Change-Id: I16413dfebdeb01a85a759969354c9c83f0f0c260
2016-09-09 01:20:37 +00:00
Thomas Bechtold
34a7f1b668 Use beautifulsoup4 instead of bs4 in test-requirements.txt
beautifulsoup4 is already in global-requirements and bs4 is just a dummy
package.

Change-Id: Ief02165797f6aae47805656d50c249aaa3fe71ad
2016-09-05 10:51:02 +02:00
Sean Dague
a22ecf2e40 remove padding-top for endpoint-container
This causes a really odd vertical alignment issue. If we remove it
then the entire API line is vertically aligned.

Change-Id: I3fc2d4b234843ec226d75d5d4dd79055d33645b6
2016-08-29 09:25:29 -04:00
Jenkins
2c6dd1bc6c Merge "Add color for COPY label" 2016-08-29 13:16:28 +00:00
Anne Gentle
bab707c239 Adds more info to the README to instruct authors
Change-Id: I32fc524c87fa7ea90c86e749b7791c10bd1665ac
2016-08-24 19:26:17 -07:00
Graham Hayes
8d31f26db9 Expand width of API Site
Change-Id: I3576012ebee21222e3f30f3310aeef01ca7e605b
2016-08-23 15:46:12 +01:00
Graham Hayes
80480aa29a Update docs for openstackdocstheme
Change-Id: I9c14e4ac5fe24e162edeb37b16002ae7cfbc0fac
1.0.0
2016-08-23 13:59:41 +01:00
Graham Hayes
916db5d19b openstackdocstheme integration
changes the output to be compatible with the new
openstackdocs theme

Change-Id: I10d90ac2f702153508bc6e607ed451c089276a4d
2016-08-19 16:22:15 +01:00
Karen Bradshaw
f9241b160e Add color for COPY label
Add colors in css for COPY label.

Change-Id: Ic5c61d286c071c2fc45a5d215bef4f7344d490f8
2016-08-04 13:25:12 -04:00
Graham Hayes
b100d1542f Change Layout of Path + Sub Title
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
2016-08-02 14:52:27 +01:00
Jenkins
03f4e77f7d Merge "Added docutils to requirements" 0.4.0 2016-07-25 20:01:05 +00:00
Jenkins
eac68135e0 Merge "Moved sphinx from test requirements to requirements" 2016-07-25 20:00:58 +00:00
Jenkins
51a1f98c15 Merge "HTTP Response Code Table" 2016-07-25 20:00:52 +00:00
Ondřej Nový
8520a4ddac Added docutils to requirements
It's used in os_api_ref/__init__.py

Change-Id: If341c703293931d07749669374e4de7de510f2eb
2016-07-16 13:46:30 +02:00
Ondřej Nový
f9c23367fe Moved sphinx from test requirements to requirements
It's used in os_api_ref/__init__.py, so it's runtime dependency

Change-Id: I07212af95d04353966db5ddd73be652ec4b75d1e
2016-07-16 13:44:48 +02:00
Karen Bradshaw
57faf6f9fa Tests for invalid parameter files
-Tests warnings for missing and empty parameter files.
-Tests warnings when rest_parameter stanza lists
parameter file but no parameters.

Change-Id: Ic2c740a34964b1e23560102cc4e5c7fe0be63d50
2016-06-28 19:44:38 -04:00
Jenkins
9a7fcb9258 Merge "Add warning for invalid parameters" 2016-06-22 13:07:25 +00:00
Graham Hayes
fa30156fd6 HTTP Response Code Table
Change-Id: Ie65366c1f5cb76af50ce116c1bb8747ed610f103
2016-06-03 14:09:53 +01:00
Sean Dague
f93c467e9a add experimental microversion selector
This adds experimental support for a microversion selector. The
interface for this may well change over time. To currently use this we
need 2 values in the sphinx conf.py to specify min and max
microversions. If you don't have those added, nothing is changed in
the UI.

Use at your own risk. However it's much easier to get feedback if we
have this in the package.

Change-Id: Iaf7e117ea5792bb3b60c1fd0ae416b241ab89d65
0.3.0
2016-06-03 06:46:23 -04:00
Sean Dague
f2f0511d3e track the expanded elements in the url
This tracks the expanded list via a dedicated parameter, which expand
all fills up. It uses the history api to ensure that urls that users
create are sharable, including all the sections expanded correctly.

Change-Id: I10d03226b15c9d4b880c42fb3c2ae0c05d8fb8ac
2016-06-02 16:53:54 -04:00
Sean Dague
c8b77cc4b9 remove unused javascript code
The javascript code which is related to in page search is currently
unused. Remove it for now because it mostly adds to confusion about
what is important in this code.

Change-Id: I8d4ab47033b005596bc8430fb502673862eff1e1
2016-06-02 15:34:13 -04:00
Daniel Gonzalez
e6d8e3ba3c Add warning for invalid parameters
Currently, when a parameter is formatted wrong sphinx dies with a
cryptic error message:

    AttributeError: 'str' object has no attribute 'items'

This happens because the parameter is not recognized as dict.

This patch adds a check that ensures parameters are formatted correctly
by verifying that they're dicts.

Change-Id: I0140336cdcd9fd1d356d1fa50fd8dd15790ef8bd
2016-06-02 13:00:32 +02:00
Jenkins
1785afb8b3 Merge "Highlight parameters in path" 2016-06-01 23:02:18 +00:00
Jenkins
af7730c2ac Merge "Added more details to usage.rst" 2016-06-01 23:02:03 +00:00
Karen Bradshaw
b170c0016a Added more details to usage.rst
-Added info on max_version field.
-Added info about including sample files.
-Added warning test for missing lookup key.
-Added warning test for missing type field.

Change-Id: I1ffa2d3e1d425239641adbdf029647e1af72bca0
2016-06-01 14:51:23 -04:00
Graham Hayes
458d8c6e9f Highlight parameters in path
Change-Id: Ibaa81619b23aa3fef40a59bf28cae309d13805fa
2016-05-31 19:12:00 +02:00
Sean Dague
87a4b66d86 fix microversion parsing in parameters.yaml
This fixes the parsing of min_version and max_version in
parameters.yaml by treating things that look like floats as
strings. Otherwise 2.20 ends up folding to 2.2, which is definitely
not intentional.

This also adds a set of tests for microversion class setting in both
parameters in tables as well as in the method itself.

Change-Id: If2713fc4038e69d113cdaa7db0231a1d03f6223b
2016-05-27 16:04:42 -04:00
Sean Dague
f72b1963bd add min/max version to rest method
Change-Id: Iedc8076ce985394334e4c627c9869db47af9f9b6
2016-05-27 16:04:12 -04:00
Sean Dague
9f1ce50f41 simplify conf.py in tests
delete all the irrelevant parts of conf.py in the tests so it's clear
what is important and what is not.

Change-Id: I291c16bd754eff517d7db3ce228ced70936f454b
2016-05-27 16:04:12 -04:00
Sean Dague
2bc8564a3f add a list of tests we should have
Change-Id: I67efe63ee41348a42b7422481fad6487726d7464
2016-05-27 16:04:12 -04:00
Sean Dague
f2e6951fe3 make testing be non parallel
sphinx and sphinx_testing doesn't appear to be fully concurrent
safe. For now, lets just run in a single process.

Change-Id: I0b1bd24878a7641bc8c456141bf091b48c19619d
2016-05-27 16:04:12 -04:00
Sean Dague
f5c3d79fe3 tests for parameter out of order behavior
Parameters must be in alphabetical order

Change-Id: I86d238f395f71064a17330b5f6df23a5e1df7fa2
2016-05-26 11:11:31 -04:00
Sean Dague
fccfbb9baf More unit tests
This gives us one positive test for every stanza

Change-Id: I09bd2bf0f2756be4d232be402190dee8cea68ae2
2016-05-26 06:31:51 -04:00
Sean Dague
8fab9214df add first basic unit test
This creates an simple stab at a pattern for building testing for
os-api-ref. The basic theory is that we'll create a set of example
directories that are full doc trees with markup. We can then build
them and test the HTML output.

HTML output testing is done using BeautifulSoup so we can get
normalized HTML snippets regardless of whitespace and wrapping.

Change-Id: Idf582d62a4353db74b31183869f80bbf01b5d0f0
2016-05-26 06:31:51 -04:00
Jenkins
58f3596407 Merge "Colour Code HTTP Methods" 2016-05-25 17:48:09 +00:00
Jenkins
e3e799cdc3 Merge "Trivial: fix typos in README.rst" 2016-05-25 15:27:37 +00:00
tengqm
5ebcaa461f Trivial: fix typos in README.rst
Change-Id: I46288a3d0667eaf7939b0147ef547dc279817898
2016-05-19 19:57:37 -04:00
Graham Hayes
64d584fb46 Colour Code HTTP Methods
Most API Docs seem to colour code the HTTP methods to make
for easier reading.

This sets:

	GET / HEAD 	- Blue
	POST 		- Green
	PATCH/PUT 	- Yellow
	DELETE		- Red

By reuseing some of the bootstrap label-* css.

Change-Id: Ic58edeb672ced1e66849c561133f272982abcb4e
2016-05-19 15:18:31 +01:00
Sean Dague
ba17a1630b Validate in value before sorting validation
I incorrectly assumed folks wouldn't diverge on the use of the in
value from where it was specified in the OpenAPI spec, but in looking
at the senlin code, I was wrong.

This produces a much more specific warning to explain what is wrong
with the parameters file.

Change-Id: Idffbd55dcd69d8f9ad988f74eb1b4be4b8a56667
2016-05-18 08:59:33 -04:00
Sean Dague
3d24453a9b fix docs to link the new bug tracker
Depends-On: 82b58bc28921631f7f8d6507a8547e78f6520593

Change-Id: I934f9b37b9fe98f6e4abb77d892796a519bd5f7f
2016-05-17 19:37:41 +00:00
Sean Dague
1160f9ce04 Make the version returned by the extension be the pbr version.
Let's not manage 2 versions in the files.

Change-Id: I22113ed0837ee49ef0ec90411cc0626dbbbbc304
0.1.1
2016-05-17 08:44:19 -04:00
Sean Dague
b97011a220 Update css for version-added
Version added should be bold like the styling we add to microversion
added elements in the parameters tables.

Change-Id: I41cc96e6df4dd456cb2f56714922c108e8406aae
2016-05-17 08:43:39 -04:00
Jenkins
1727020670 Merge "Remove errant ";" from the "expand_all" detection" 2016-05-16 16:25:07 +00:00
Karen Bradshaw
87044bb225 Add parsing and output of max_version
Handle parsing and output of max_version field.

Change-Id: If82433ee31656fd6cc37a7a60cff65f46f2afea0
2016-05-16 10:58:40 -04:00