28 Commits

Author SHA1 Message Date
Hervé Beraud
ac919bf000 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I837241a34505496a3a152d72f28f23687ded1088
2020-06-09 12:21:06 +02:00
Andreas Jaeger
489f9fbac2 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Set openstackdocs_auto_name to use 'project' as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I88d35727272813aa5371969e3ea3e763e1a12700
2020-05-21 10:36:00 +02:00
gujin
676b38a9ad tox: Keeping going with docs
1. Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
2. Remove the exists folder before run sphinx-build command

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: I1b1b45bf3ae104defbb16282e18995a28f67f649
2020-05-17 22:35:37 +08:00
Hongbin Lu
1b2684e63e PDF documentation build
Change-Id: I2cb103dd97fcb4db8238fb44a0e2985edcbd6146
Implements: blueprint pdfdocs
2019-12-13 03:57:39 +00:00
Hongbin Lu
020e9ad7dd Update installation docs
* Add a note about python3 installation
* Fix the order of install steps

Change-Id: Ia5c1b3eae55196a3bc2cc38d90890985cd41ecea
Related-Bug: #1829871
2019-11-25 11:46:53 +00:00
Hongbin Lu
a2d9d35b3b Disable auto-generate API docs
First, the autodoc build is failing. Second, zun-ui is a horizon
plugin so auto-generated api docs don't seem to have much value.
This commit removes autodoc extension which basically stops
auto-generated API docs.

Change-Id: I3687a2b46fa524bb902bf8031c4d77945fb0c216
Closes-Bug: #1849990
2019-10-26 20:36:06 +00:00
jacky06
b7fe8b6e23 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: Id4eca6372cb3c9df048af11639b1159bb9451fa6
Closes-Bug: #1831517
2019-06-04 09:46:25 +08:00
jacky06
dffc5b3008 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: If3ac68906ee1ee3eda437543d33c59da3628fc51
2019-04-27 02:56:44 +00:00
Ivan Kolodyazhny
e7cd679178 Add collectstatic and compress commands to the install guide
Change-Id: I0e766805113333ea8fe761c13abde2ea9ab84930
2019-04-12 14:04:31 +00:00
Shu Muto
c5d3c8a989 Improve Installation documentation
Change-Id: I0c121f223fc31f8c48d728d9b2eae5e55828f871
2019-02-26 14:25:53 +09:00
jacky06
67ddca5043 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I168ff6f7d491e4439863473a2bf23ba290e0c23b
2019-01-10 11:00:29 +08:00
Shu Muto
c30b51653e Remove mox3 from doc/requirements.txt
Dependency for mox3 is fully removed. So this patch removes mox3
dependency from doc/requirements.txt

This should be cherry-picked into stable/rocky branch.

Change-Id: I708b0ac29dc686cec2d16a40281c04e1e61366d3
2018-08-22 10:06:10 +09:00
Akihiro Motoki
205dcd4be9 Drop nose dependencies
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.

The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.

Change-Id: I616966db07033dded5a6de5e432b5876f015a234
2018-08-17 02:35:21 +09:00
Shu Muto
8bdee46fa4 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:

https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:

http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I8f3f9f1ae087b0abd5db0b0f58e83870ca49a529
2018-05-14 06:57:01 +00:00
Shu Muto
40f82d3484 Add release notes for Queens
Also, fix docs for cloud shell, comments on the source code
and title of help item for runtime.

Change-Id: I90e175bdd7310e9052540948abe05e77e918a54c
2018-01-31 17:37:00 +09:00
Shu Muto
9f45851859 Add Cloud Shell feature
Screen Shot:
https://drive.google.com/file/d/0B1UFZO9xX8eweERNX2FWVGRrMXM/view
Short Video:
https://youtu.be/lYt2U7qZG38

This patch realizes the Cloud Shell feature as following manner:

1. Add 'Cloud Shell' menu on the top menu bar.
2. When 'Cloud Shell' menu clicked, create console area on
   the bottom of window.
3. If cloud shell container does not exists for the user,
   create the container.
4. If cloud shell container exists, attach the console area
   to the container.
5. Each time when attach to the container, clouds.yaml will be
   exported into the container.
6. Password will be not imported into the container,
   so user should set manually 'OS_PASSWORD' into envirinment
   variables or 'password' into clouds.yaml.

Change-Id: Ia26be196758e5f3617b31750702a6c54436efb93
Depends-On: Ie4bc4d7302ce80ed9925db4156ff52f928460aca
2017-10-30 17:08:59 +09:00
Shu Muto
a8e3b1988d Add configuration guide into docs
This UI plugin has no specific configuration yet,
so this patch adds only link to Horizon's guide.

Also, fix title of linked documentation for contributor.

Change-Id: I459e44c58f9ff15f81b9327505a22cfbf4653c0d
2017-07-13 15:28:31 +09:00
Akihiro Motoki
496439b2ad Use pbr autodoc feature rather than custom logic
zun-ui doc/source/conf.py has a custom logic which prepare index files
for autodoc, but now pbr and sphinx autodoc have a feature to do it and
it is no a good idea to keep the custom logic.

UI cookiecutter populates the custom logic and it is an example of
the clean up.

Change-Id: I6c6eb2f6292bda30a4fa8d4375defd8234463008
2017-07-12 11:24:22 +00:00
Akihiro Motoki
946490ea78 rearrange existing documentation to fit the new standard layout
For more detail, see the doc migration spec:
http://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

The current installation document is mainly for contributors not operators.
It is better to be reviit later, but it is beyond the scope of this patch.

Change-Id: Ibdbb20131b5c7bea6a1e6ab8ff47b971889ad319
2017-07-11 09:07:07 +00:00
Shu Muto
b68516b9de Fix openstackdocstheme settings
To use openstackdocstheme 1.11.0 properly, this patch fixes
some settings according to follow.
https://docs.openstack.org/openstackdocstheme/latest/

Change-Id: If3f5c25611dffd462c8b8abe3ecc3f9aa00735ba
2017-06-29 18:33:08 +09:00
Shu Muto
a7a9f20865 Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: I5de43845fdd29a8fc6eddb6564c20da2a47c6581
2017-06-28 12:21:51 +09:00
Shu Muto
164d29526e Improve docs build
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
It does not always necessary, but it is needed to avoid warnings
when creating autoindex.
Note that horizon no longer generates the autoindex to avoid warnings.

Drops setenv DJANGO_SETTINGS_MODULE in docs env in tox.ini.
DJANGO_SETTINGS_MODULE is configured in doc/source/conf.py,
so there is no need to pass envvar.

Add warning-is-error sphinx setting to avoid doc build warnings.

Change-Id: I4c036e264c7dd28463c3d52d73fcbbd3abeacb2b
2017-06-27 17:17:17 +09:00
Shu Muto
45c763336f Clean up doc/ and releasenotes/
Already we setup reno environment. So there were two Release notes
information: doc/source/releases and releasenotes (by reno).
Release Notes in doc directory are unnecessary.

It is not a good idea to have too much contents in the top page
document. Installation stuff is split into a separate page.

Title level of index.rst was inconsistent.

_static and _templates directories in releasenotes/source
are unnecessary. Also version info is set in release notes.

Change-Id: I0c2c31c9efc71d97ccea064da36302d886d8a743
2017-06-27 16:51:01 +09:00
Shu Muto
0ad3744f64 Add reno for releasenotes management
An initial patch to add reno and create a base directory for
release notes

Change-Id: Ia8dbcf1aed76946a3f64c8d437f85ae88069db57
2017-06-22 15:42:19 +09:00
Shu Muto
6d7a8dc3bf Add images panel into admin dashboard
This patch adds images panel with pull action.

To enable images panel, copy enabled files:
* zun_ui/enabled/_2330_project_container_panelgroup.py
* zun_ui/enabled/_2331_project_container_images_panel.py

into horizon:
* openstack_dashboard/local/enabled/

Change-Id: I452449e6cf8dd5c150f5ff0843ce5babfface6ea
Implements: blueprint add-images-panel
2017-05-25 16:48:44 +09:00
coldmoment
48c34148be Optimize the link address
Use https instead of http in installation guide

Change-Id: I9099fd9067dc0f55bd071f7b397f88cc0b795c43
2017-04-19 15:08:16 +08:00
Shu Muto
cbb5888cff Refresh test environment
To enable py35 tests, refresh test environments.
Also, update docs, remove run_tests.sh that is no longer used.

This patch needs to wait for adding python-zunclient into
global-requirements.

Change-Id: Ibed3eea72839226dca878d0ecd1778c9d9a7e7d3
2017-04-17 05:04:06 +00:00
Shu Muto
73c2bcf7af first commit 2016-07-22 13:06:25 +09:00