9 Commits

Author SHA1 Message Date
John L. Villalovos
6b91ba21df Resolve pep8 E402 errors and no longer ignore E402
Fix the pep8 E402 (Module level import not at top of file) errors.

For the Alembic files move the definitions of 'revision' and
'down_revision' below the imports. This is now done in Alembic [1]

For other files fix as needed by moving the imports or lines before
the imports.

In a few cases add a "# noqa E402" to whitelist the issue.

[1] dc2aae0374

Change-Id: I48c96d5da0cb747b3ca3fceea9b4ffa85a9ebe22
2018-04-10 17:34:04 -07:00
zhang.lei
c934ae5da2 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: I1725e25dd13bfe14c83f3f679092fc36fa6cb208
2018-01-15 03:45:33 +00:00
gengchc2
06c4c00688 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: Ie1dbfa3c89dd10d65f69a948ae1158cf6b864c45
2017-02-07 11:53:15 +08:00
Nguyen Phuong An
d5503f97ee [api-ref] Remove temporary block in conf.py
The os-api-ref 1.0.0 is out. We can remove the support to older version now.
Reference:
6d41feb58d

Change-Id: I14266932bf6f936991f1ea675f3e61431b4a0b1c
2016-09-07 08:24:39 +00:00
Ha Van Tu
d3be671c9d Config logABug feature for Ironic api-ref
Currently, Ironic api-ref is configured with logABug feature.
When users click "Report bug" button, it leads to
"bugs.launchpad.net/openstack-manuals" which is default.
We should change it to "bugs.launchpad.net/ironic/"

Change-Id: Ifb0e34a41807f87ae4d5402064b63b76e89ec0b4
2016-08-31 12:15:47 +07:00
Graham Hayes
c6441aeba3 Get ready for os-api-ref sphinx theme change
Change-Id: Ib4c12c5f2efbdf0870fbaaf4951bcfe2fcf7c392
2016-08-19 16:44:02 +01:00
Devananda van der Veen
a496a6bae0 Read the Sphinx html_last_updated_fmt option correctly in py3
The html_last_updated_fmt option is the output of a shell command, which
is interpeted as a byte string in python 3 and subsequently breaks
Sphinx.

This change converts it to a utf-8 string.

Incidentally, this also removes the quotation marks to make the
formatted output cleaner.

Change-Id: I9aa6446a24d2f340246458dea0c34d456b3eade3
Closes-bug: #1583721
2016-05-20 08:14:14 -07:00
Jim Rollenhagen
2f0e1e180e Migrate to os-api-ref library
os-api-ref is released on pypi now, so we can move to using it instead
of our in tree version.

Change-Id: If353f4a2e553fa3da3b2a4c920e233f51365b77c
Depends-On: I0e615d36a2e5a8fa0d83f20bdcc2c33ad868ebd5
2016-05-16 08:12:48 -04:00
Jim Rollenhagen
fa098f69e4 Migrate api-ref into our tree
Per this email[0], it's time to migrate our API docs into our tree.

This copies the sphinx extension from nova into our tree as well, which
will be later split into its own python module. At that time we can cut
over to the module and drop it from our tree.

The conf.py and the tox environment are also cribbed from nova.

[0] http://lists.openstack.org/pipermail/openstack-dev/2016-May/093765.html

Change-Id: I683cc4d6459d77c42951a06247b6f9ff8f8456bd
2016-05-03 21:39:42 +00:00