141 Commits

Author SHA1 Message Date
Zuul
3b3734499b Merge "Update hacking version" 1.6.1 2019-01-15 01:05:29 +00:00
Luigi Toscano
8626ce5d88 Generate stable targets rather than random
A random value can still easily hit collision, and at least
one was found easily on the gates (gone with a recheck).
Moreover, the usage of a random target does not allow for ensuring
reproducible builds: the usage of an hash build from the node
content makes sure that the target is stable across different
runs of api-ref generation.

Change-Id: I3fcd8a4e5b0a66c9dbf34f4a4c472f3c93c46bb8
2019-01-11 11:59:16 +01:00
Luigi Toscano
4e56d09daf Fix microversion test: handle different HTML renderings
The rendered HTML changes a bit between beautifulsoup4 4.6.3 and 4.7.1.
A regular expression can handle both cases.

Change-Id: I64d4c56b480d54b50e58141999636b91b5fb4f94
2019-01-11 11:58:11 +01:00
ZhijunWei
0228eb9ae3 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I16071db752ab50d42127dca07d68130fea7474ce
2019-01-06 18:12:47 +08:00
Zuul
f58a59d09f Merge "Remove support for py34" 2018-12-30 02:53:44 +00:00
jacky06
6ad64a02d2 Remove support for py34
refer to https://github.com/openstack/os-api-ref/blob/master/tox.ini#L3

Change-Id: I268b9b8faff42771b5241253def8044d6e7e9acc
2018-12-20 02:07:15 +00:00
Zuul
6fee36c342 Merge "Fixing duplicate label issue." 1.6.0 2018-12-12 07:01:24 +00:00
Telles Nobrega
b23ce2f788 Fixing duplicate label issue.
For projects that have multiple APIs documented simultaneously, if
the labels are the equal on more than one version of the API build
will fail due to duplicate label.
Adding a random number to minimize the chance of duplicate label.

Change-Id: Ic8434ce79630637a878fa64307796be0f3efe6d1
2018-12-11 10:51:51 -03:00
Gergely Csatari
d636dddb47 readthedocs.io support
rtd uses 'readthedocs' and 'readthedocssinglehtmllocalmedia' as
builder names. os-api-ref expected 'html' as builder name to
handle the css files correctly.
This change adds the support for the rtd builders.

Change-Id: I21a5144ada79c8c95846ce961169e2505db27a56
Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com>
2018-12-10 18:15:26 -08:00
jacky06
4fdeb69a5b Update the remained discuss email
1. it remiand by I26c0bd6b210f24d4ed33b16b49f059ee0dd2ba7d

Change-Id: I4999a7138e7b8b864c8eda0a487a3ed1279528c2
2018-11-25 22:08:48 -05:00
melissaml
58fe67bf40 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I26c0bd6b210f24d4ed33b16b49f059ee0dd2ba7d
2018-12-04 23:46:24 +08:00
Sean McGinnis
ba9b0192a3 Update sphinx extension logging
Sphinx 1.6 deprecated using the application object to perform logging
and it will be removed in the upcoming 2.0 release. This updates our
extensions to use the recommended sphinx.util.logging instead.

Change-Id: I1cb9b6cf7fd38ce1ae09e35af0953885a6318082
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-16 15:14:45 -05:00
Stephen Finucane
fd9f284292 tests: Support Sphinx 1.8+
Change-Id: I6ba49b94c6a029746fb284a7e8e7f70c1f070de8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2018-10-08 10:27:40 +01:00
Andreas Jaeger
26fc4a3f29 docs: Remove broken link
The modinfo index file does not exist, remove it from index.

Also, remove commented boilerplate.

Change-Id: I6c7ecff94f18a8301651b8b03bc90dd199226bf1
2018-09-09 16:01:26 +02:00
Doug Hellmann
55f4a816d2 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ibfd7b4f7ed01e27cad9bfb9339a6db2487a40286
Story: #2002586
Task: #24293
2018-08-14 13:46:24 -04:00
Andreas Jaeger
ec28fa9d8b Fix sphinx-build invocation
We need to publish to doc/build/html, fix this.

Change-Id: If2a18bb1d3d0a22e84904d5caab2fd4a6f7a52cf
2018-08-14 13:46:24 -04:00
Doug Hellmann
4f27e52e61 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I0d61c316f13b646ccbaa05d3715d66035184e1a7
Story: #2002586
Task: #24293
2018-08-13 16:46:39 -04:00
Stephen Finucane
9cebd346dc Use 'sphinx.util.logging'
This resolves a deprecation warning. It also allows us to stop storing
the 'app' variable just to enable logging.

Change-Id: I53c0f0d5cc61e32a8f1ac1d48816d2c56d82cc41
2018-06-18 14:37:05 +01:00
Graham Hayes
d6805491ed General overhaul of testing setup
- Moved to py3 by default
- Moved to testr
- Updated docs venv to match PTI
- Fixed a slight py3 compat issue
- Added py35 and py36 jobs

Change-Id: Id3a8c1c30ecfe9b6538bff6357aecca7ecd0ed81
Signed-off-by: Graham Hayes <gr@ham.ie>
2018-06-18 14:36:12 +01:00
Stephen Finucane
982382a549 Raise warning if top-level value is not a dict
Given the following 'parameters.yaml' file:

  resources_query_granular:
    type: string
    in: query
    required: false
    description: |
      Some description here...
  min_version: 1.22

Clearly 'min_version' is indented at the wrong level. However, the error
message is pretty much useless:

  Exception occurred:
    File "./os_api_ref/__init__.py", line 261, in _check_yaml_sorting
      if value['in'] not in sections:
    TypeError: string indices must be integers, not str

It's obvious we should be saying _what_ is causing this issue. Start
doing this by way of an exception.

Change-Id: If68f82de1e3bf37b1ab89f12adf78e0d8d123674
2018-05-29 15:43:22 +02:00
OpenStack Proposal Bot
6483fe226a Updated from global requirements
Change-Id: Iba54d76dc737f0d0935ec20f07bbdc11f99e5920
2018-03-15 07:43:12 +00:00
OpenStack Proposal Bot
40ec412800 Updated from global requirements
Change-Id: I9fe39d8e2896a57e5b55dda02d396d0b32ae55ad
2018-03-04 10:20:53 +00:00
Zuul
ef6c7b2d27 Merge "Use openstackdocstheme" 2018-01-24 10:23:04 +00:00
OpenStack Proposal Bot
4698943363 Updated from global requirements
Change-Id: Ic35681282b4611428b927394d02d24ced0ee0c28
2018-01-24 01:22:46 +00:00
Zuul
a2231ed974 Merge "Remove name from project stanza" 2018-01-22 19:27:24 +00:00
Zuul
85a4ee2a12 Merge "Fix UnicodeDecodeError" 2018-01-22 14:20:18 +00:00
Andreas Jaeger
801515b979 Use openstackdocstheme
Get rid of oslosphinx, use openstackdocstheme instead like we do
in all other docs projects.

Change-Id: I4d9be1d6d02a075f36fc81e302b4ec8a92adf769
2018-01-21 16:01:40 +01:00
Andreas Jaeger
594ce138f8 Remove name from project stanza
This is now optional, and should be discouraged in in-repo configs.

Change-Id: Ic00867cb9531daa92e89228f1cbb70f80f866d3d
2018-01-21 15:22:28 +01:00
OpenStack Proposal Bot
cb41558e53 Updated from global requirements
Change-Id: I2f379094f66d85a7394ae7e1f30f82d444e5ec98
1.5.0
2018-01-18 03:20:44 +00:00
Zuul
324dfc8403 Merge "Add 'uuid' type" 2018-01-17 10:45:04 +00:00
Zuul
ad3156b014 Merge "Fix wrong links" 2018-01-17 10:35:40 +00:00
Zuul
732e67ccf3 Merge "Update and replace http with https for doc links" 2018-01-17 10:35:39 +00:00
yanghuichan
fd63559606 Fix wrong links
Fix wrong links Some docs links have changed.
We should update the wrong links in our codes.

Change-Id: I40af5c47080b24bda1dd3d616ee9ef95fdd5548a
2018-01-16 07:07:05 +00:00
Zuul
424f88edc1 Merge "Updated from global requirements" 2018-01-04 20:23:12 +00:00
shangxiaobj
1ba522eb32 Update and replace http with https for doc links
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: Ifc989878800e7327580655e13f0e31d77cc37715
2017-12-22 07:37:46 +00:00
Tristan Cacqueray
5f3217d184 Add 'uuid' type
This change documents using 'uuid' type instead of just 'string'.

Change-Id: Iaba764a055d368120723786d276c0e2d14adbeb5
2017-12-18 01:52:57 +00:00
Monty Taylor
7a389a1ff4 Fix Zuul jobs
The jobs are not working with Zuul v3 as is, we need
to update all job configuration and add a new job

1) Add os-api-ref-nova-src job

Replace the legacy version with a new shiny one.

2)
Avoid tox_install.sh for constraints support

Follow https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh, we can build without it.

Depends-On: I97448d681e3e48753496818fa248ee96dd36d65b
Change-Id: Ia9c8672c820a415746e43d3b1fccb2df2f574b24
2017-12-01 04:43:01 +01:00
OpenStack Proposal Bot
165608b546 Updated from global requirements
Change-Id: Ic30151bd6b817adc01ca9ed1492f7060ec4daae8
2017-11-16 11:19:44 +00:00
Ondřej Nový
99b9b75b83 Fix UnicodeDecodeError
When generated Sphinx file is not in ascii, current code fails.

Change-Id: Ie0c2fe56ee64710e81643ec58aec20dd6d7ec042
2017-10-31 22:14:21 +01:00
Jenkins
0cd27677a4 Merge "Clear description for max_version field" 2017-09-19 18:45:44 +00:00
Jenkins
3f877685c1 Merge "Remove unconstraint package installation" 2017-09-19 18:45:26 +00:00
Jenkins
73a86c4ea7 Merge "doc: Remove deprecated call to sphinx.util.compat" 2017-09-19 18:44:50 +00:00
OpenStack Proposal Bot
604294427e Updated from global requirements
Change-Id: I07ada0916c6b4b1d4eb705e41e19f2369febcd84
2017-09-13 12:59:56 +00:00
Stephen Finucane
3d8f7ef4a1 doc: Remove deprecated call to sphinx.util.compat
This call generates the following deprecation warning:

  RemovedInSphinx17Warning: sphinx.util.compat.Directive is deprecated
  and will be removed in Sphinx 1.7, please use docutils' instead.

Resolve this.

Change-Id: I1083d3d6f3e646249f187a1bdade61eecc93c7e0
2017-08-29 15:20:58 +01:00
Dirk Mueller
973fdbf884 Remove unconstraint package installation
tox_install.sh already takes care of package installation, respecting
upper constraints. we don't need to rerun installation without
constraints afterwards.

Change-Id: I6599d1532daba8dbabbbf2a15dfb4d2b08b8c981
2017-07-05 21:48:38 +02:00
ghanshyam
1f71845ede Clear description for max_version field
Currently max_version field shows text as
"Deprecated in version %s" which seems confusing to show
deprecated fields vs removed fields.

For example: if any element is removed in x version, then we
tag that element in parameter.yaml with max_version: x-1. api-ref shows
that element as "Deprecated in version x-1" which seems confusing on
below interpretation:
- is that element deprecated in x-1 version?
- is that element only deprecated in x-1 version not removed?

But actually that element is removed in x and only available till x-1 version.

- https://developer.openstack.org/api-ref/compute/?expanded=evacuate-server-evacuate-action-detail

This commit try to describe max_version filed in more clear way.

Change-Id: I388c6e27c3d15e3bee645b7b56f8142e2f16d3d6
2017-06-29 02:48:13 +00:00
Jenkins
a67ed2f235 Merge "Removes unnecessary utf-8 encoding" 1.4.0 2017-06-13 19:46:05 +00:00
Sean Dague
ce1252fcfc Fix for sphinx 1.6.2
This changes things to work on sphinx 1.6.2, should still work on
sphinx 1.5.1.

Change-Id: I6547877ad46d008616458a5f3b52105ab4f55c28
2017-06-13 15:22:12 -04:00
OpenStack Proposal Bot
199b7b38ee Updated from global requirements
Change-Id: Ia72b20f09855fceb00842de50d907bf8e0f2a421
2017-05-17 03:55:58 +00:00
Jenkins
3ea3617ce0 Merge "Updated from global requirements" 2017-05-16 16:43:50 +00:00