27 Commits

Author SHA1 Message Date
Kaitlin Farr
dbd907643f Fix doc build warnings and errors
This change addresses the warnings and errors that are displayed when the
docs are built, including:

 * Add reference to previously unreferenced workflow_extend in index file
 * Remove reference to a _static directory that doesn't exist
 * Fix formatting issues within the workflow_extend document

Comments in the bug report discuss the need for warnings to be treated
as errors, but this does not seem to be possible using the setup.py build_sphinx
command.

Change-Id: Iccccb9d104df9847ecd8a52aa73a7aa450bb5f34
Partial-Bug: #1411719
2016-05-17 18:53:03 -04:00
Thomas Bechtold
33b000a57d Fix doc build if git is absent
When building packages if git is absent, then we should not set
html_last_updated_fmt. It can still be set via the -D switch
when building with sphinx-build.

Change-Id: I905736fc5f998385128b306c75bc8191b2797dc6
Closes-Bug: #1552251
2016-04-13 09:46:35 +02:00
Jenkins
3666072654 Merge "Fixing the deprecated library function." 2016-04-05 05:34:34 +00:00
Jenkins
99edc5c613 Merge "Optimize "open" method with context manager" 2016-04-05 05:32:22 +00:00
Andreas Jaeger
7323abcc2a Remove unused pngmath Sphinx extension
There's no RST file that uses ".. math" and thus
the pngmath Sphinx extension is not used and can
get removed.

Change-Id: I3ea4b529025c8ac3c4092f3720124647861e6668
2016-02-28 20:46:19 +01:00
Harshada Mangesh Kakad
935c483b9e Fixing the deprecated library function.
os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.

Change-Id: I6ac6eb8618dd3d7325b43c67c1cb294bd8bff702
Partial-Bug: #1529836
2015-12-31 08:59:40 -08:00
xiexs
c7c86ed22c Optimize "open" method with context manager
Use opening context manager to open a file.

Change-Id: Ib03c6b4d70f31178031124fe1ff99c6fbd0e3966
2015-11-27 04:14:11 -05:00
David Lyle
49ae7f9eeb Fix docs translation import errors
When building docs, there are a ton of errors in this format:

AppRegistryNotReady: The translation infrastructure cannot be
initialized before the apps registry is ready. Check that you don't make
non-lazy gettext calls at import time.

Starting in Django 1.7, standalone scripts, such as a sphinx build
require that django.setup() be called first. See:
https://docs.djangoproject.com/en/1.8/releases/1.7/#standalone-scripts

This should be added to the horizon/docs/source/conf.py

Doing so eliminates the errors.

Closes-Bug: #1486139
Change-Id: I0871be3d60d4d78cb430fabdb5725832559191d7
2015-08-18 14:14:41 -06:00
lin-hua-cheng
248115d6fd Fixes modules index generated by Sphinx
Sphinx was always using (h)orizon and (o)penstack_dashboard for the
prefix so the index wasn't very useful.

Change-Id: Ifbd86d8d12e6dd808646d3b0708ca98ec6428e26
2015-07-09 23:10:25 -07:00
Akihiro Motoki
a25091e89f Update doc/source/conf.py
* Exclude test files from source code index
* Add an index to jump to sub indexes in source code index
* Ensure the order of source code index by using an array
  rather than a dict.

Change-Id: I5c28a3e29c9c0b0332732d3f598030a77536563a
2014-10-14 04:13:52 +09:00
Andreas Jaeger
d9870c7e85 Stop using intersphinx
Remove intersphinx from the docs build as it triggers network calls that
occasionally fail, and we don't really use intersphinx (links other
sphinx documents out on the internet)

This also removes the requirement for internet access during docs build.

This causes docs jobs to fail because we error out on warnings.

Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb
Related-Bug: #1368910
2014-09-12 22:38:24 +02:00
Akihiro Motoki
cd35fff1b6 Re-enable flake8 check
This is the final fix to re-enable flake8/pep8 check in the gate.
E265 errors in doc/source/conf.py are also fixed.

Imports with "from xxxx import (xxxx)" style cannot pass "tox -e pep8"
though they pass "run_tests.sh -p". Newlines with backslash escape
is used in this commit to pass it.
The reason needs to be investigated later.

Change-Id: Ic0d765d404212d13f678b2a3aef7b9612bf5238d
Closes-Bug: #1347472
2014-07-31 04:16:36 +09:00
Gary W. Smith
1f38f87138 Fix keystone warnings while building docs
When building the documentation via run_tests.sh, doc/source/conf.py
explicitly sets the DJANGO_SETTINGS_MODULE environment variable,
overriding any existing value that it already has. Furthermore, it sets
it to point to a settings file that does not use keystone v3, which
is expected by the tests (and is the source of the warning).  Note that
when running unit tests via run_tests.sh, a different settings file is
supplied which DOES use keystone v3.

Change the doc/source/conf.py to only set DJANGO_SETTINGS_MODULE if it
is not already set.  Change tox.ini and run_tests.sh to set
DJANGO_SETTINGS_MODULE to the same settings file used by the unit tests,
with keystone v3 support.

Change-Id: Ib297e4188f2426cf575300998bc9d50f36e48f4f
Closes-Bug: #1257725
2014-06-16 15:42:18 -07:00
Jenkins
700dc59825 Merge "Use built-in print() instead of print statement" 2014-04-08 10:26:47 +00:00
ChenZheng
20c63e7e30 Use built-in print() instead of print statement
In python 3 print statement is not supported, so we should use
only print() functions.

Fixes bug 1226943

Change-Id: I721e67c917ba7018401ad40ef30081883dcec420
2014-03-24 16:28:55 +08:00
Cyril Roelandt
96df098bec Switch over to oslosphinx
oslosphinx is the new name of oslo.sphinx

Closes-Bug: #1277168
Change-Id: I4cebcffb36724d699147a26eb1132b122cfe669c
2014-03-21 15:23:44 +01:00
Paul Belanger
74117eb8b6 Gate on H102 Apache 2.0 license header not found for pep8
Now all files are properly licensed per OpenStack Hacking.

Change-Id: I223d983018568357197b0d9cf5dde12c135c53c9
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
2013-11-19 13:55:04 -05:00
ZhiQiang Fan
686cc88fd2 Replace OpenStack LLC with OpenStack Foundation
Change-Id: I6c638f04fb7c97ac986ef31c1190011ed90a43d2
Fixes-Bug: #1214176
2013-09-20 04:19:42 +08:00
Doug Hellmann
b6f7d8318b Use oslo.sphinx and remove local copy of doc theme
Use the new oslo.sphinx version of the OpenStack doc
theme instead of copying it into this repo.

blueprint oslo.sphinx

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Change-Id: I0bd91f7bb43f97b99051fed65b75fc05d5149cc8
2013-07-05 16:10:43 -04:00
Monty Taylor
7643f52fb2 Move to flake8.
The project is standardizing on flake8 for static code analysis.

Change-Id: I4fd97b56b6c6cb57e8d245281e0da15f838ec840
2013-05-01 10:32:14 -04:00
Monty Taylor
11867173ed Update to latest oslo-version.
In preparation for tag-based versions, update to latest oslo-version code.

Change-Id: I9f702f0304fdd5043326c95346b26bde06e20a1e
2013-02-04 11:28:25 +11:00
Ray Chen
b177299953 PEP8 issues fixed
Fix some PEP8 issues in file doc/source/conf.py to make the code more
pretty.

Change-Id: I2efdb39c8991bf0cae180f7c4ffd459f6b418fc5
2012-08-23 15:44:16 +08:00
Matt Joyce
ac2b355229 grammar fixes and other minutia
Change-Id: I48d4fa3dddd199ad4c66a6ee8a73bbaeff08fa62
2012-08-22 14:14:37 -07:00
Clark Boylan
f1a8e0c54f Move docs to doc.
To better facilitate the building and publishing of sphinx
documentation by Jenkins we are moving all openstack projects with
sphinx documentation to a common doc tree structure. Documentation
goes in project/doc and build results go in project/doc/build.

Change-Id: Ic523a716e4113198b777d6dc3db8bb8a729e7696
2012-06-12 11:41:04 -07:00
Gabriel Hurley
9742842795 Re-architects the OpenStack Dashboard for modularity and extensibility.
Implements blueprint extensible-architecture.
Implements blueprint improve-dev-documentation.
Implements blueprint gettext-everywhere.
Implements blueprint sphinx-docs.

Complete re-architecture of the dashboard to transform it from a standalone django-openstack app to a Horizon framework for building dashboards. See the docs for more information.

Incidentally fixes the following bugs:

Fixes bug 845868 -- no PEP8 violations.
Fixes bug 766096 -- the dashboard can now be installed at any arbitrary URL.
Fixes bug 879111 -- tenant id is now controlled solely by the tenant switcher, not the url (which was disregarded anyway)
Fixes bug 794754 -- output of venv installation is considerably reduced.

Due to the scale and scope of this patch I recommend reviewing it on github: https://github.com/gabrielhurley/horizon/tree/extensible_architecture

Change-Id: I8e63f7ea235f904247df40c33cb66338d973df9e
2011-11-07 12:59:21 -08:00
Joe Heck
6e7d208436 adding version to project, setting up autobuild of docs with ./run_tests.sh --docs 2011-10-27 13:23:39 -07:00
Joe Heck
7fbd04358d adding developer docs 2011-10-27 13:23:39 -07:00