Commit Graph

32 Commits

Author SHA1 Message Date
songwenping a7278fce3e remove unicode from code
Co-authored-by: Jake Yip <jake.yip@ardc.edu.au>

Change-Id: I8f49f06df3894bda78c52a690bf0d712e33d862c
2023-09-14 21:04:21 +10:00
Andreas Jaeger 147272b172 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.

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: I9a27209ebe8067b6681105dfedd51e45991fb2b0
2020-05-21 16:16:20 +02:00
Sean McGinnis 8cf50a15b5
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Ie3c9acbcfd21a7ef02c48dace486e80c502f0833
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:54:06 -05:00
Simon Merrick 108c693991 Improve cluster launch workflow
+ Improve the launch work flow form.
  + Add REST endpoint for available ingress controllers
  + Add REST endpint for available addons

Change-Id: Ic76d4d853bce0b1bfd107ca1bd6a7231939845df
Depends-On: https://review.opendev.org/#/c/697000/
2019-12-18 15:43:03 +13:00
Simon Merrick cd0817a13b Add rolling upgrade ui
+ Create new row action on clusters panel
 + Create new modal form for upgrading cluster
 + Create REST endpoint for upgrading cluster
 + Bump python-magnumclient lower constraint

Change-Id: Id3fd3ee80fb27b08673933800aea6e7ee7ac7cd0
2019-12-12 13:06:39 +13:00
Ghanshyam Mann a87c42234d [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

magnum-ui is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I9630d3da80bd79f3886bc82e891e827238925704
2019-11-16 17:05:46 +00:00
manchandavishal 47e0329f52 Generate PDF documentation
Change-Id: I66add3b35283fdb6337b6dad9d79e852984d471f
Story: 2006093
Task: 35073
2019-09-18 13:54:31 +00:00
pengyuesheng baccaeb793 Update sphinx dependency
Sphinx 2.0 no longer works on python 2.7,
so we need to start capping it there as well
depend on https://review.opendev.org/#/c/657890/

Change-Id: Ia622efbbf222a3a0d58e1582976b4a45b4b1da23
2019-06-21 13:34:49 +08:00
manchandavishal ec51d61452 Changes for url transition to OpenDev
This commit changes openstack.org URL to opendev.org URL
as discussed here [1]

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html

Change-Id: I1f9c8b580b6047599d0d5041ca636c6284d907d1
2019-04-25 02:42:05 +00:00
jacky06 4618a32fec Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I4fbccf98e81ba2ce19210101593011ac3de086ac
2019-01-10 11:29:56 +08:00
chenjiao 064638eac9 Update http link to https link
Change-Id: I74cff591e16416766478e9378ab35d0f0931c1bb
2018-12-08 18:48:37 +08:00
zhangdebo 4eabffe3cf Add blueprints link in documents
Change-Id: I3a952e7e506e7dd421b42a2aa86701cf3f8f8858
2018-10-02 01:00:58 +00:00
Shu Muto f2f3e9ec71 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: Iaa6c091a8934a6814ef1e6975916e7caebf47f2a
2018-08-22 10:36:37 +09:00
Akihiro Motoki 1676384c03 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.

Also drops unnecessary Django dependencies. There is no need to
install Django explicitly as it is a horizon dependency.
Babel is dropped from the same reason.

Change-Id: I8bc25f8530f25cdb0519bd611812379ef183fca1
2018-08-17 01:30:59 +09:00
Akihiro Motoki 530ba016ad Follow the new PTI for document build
Comment 7887b3f41a invented a wrong
way which violates the recent PTI. This commit clean them up and
follow the new PTL for documentation build.

The detail is described in the following links:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

pbr autodoc is now converted into sphinxcontrib-autodoc.
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129147.html

Change-Id: I158440ef40426593981774307af982028573042b
2018-05-01 23:18:01 +09:00
Shu Muto 27a566db7f Use pbr autodoc feature rather than custom logic
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 not a good idea to keep the custom logic.

Change-Id: I89a277bde7c7b632c2208110bb9d34cd21f4e815
2017-07-13 14:27:01 +09:00
Shu Muto cef5ae3f27 Add configuration guide into docs
This UI plugin has no specific configuration yet,
so this patch adds only link to Horizon's guide.

Change-Id: Icb777b24b42c9dcabdb597fea9e6a4d20f203c4b
2017-07-13 14:20:29 +09:00
Akihiro Motoki 4a3ba73cc0 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: Ic4ae4cc7cf399446ba5e25a97698ddb2c075b510
2017-07-11 14:17:51 +00:00
Shu Muto 2e618589dd 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: Id84b9db2ac3bd64fd5b37d13b57da018592eb13d
2017-06-29 18:32:47 +09:00
Shu Muto e965dc233e 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: I2de87c0df05abf589c90fb3ad691322e1125c310
2017-06-27 17:22:07 +09:00
Shu Muto 83caa004e2 Clean up doc/ and releasenotes/
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.

Change-Id: I005d6d110de986773ae8149d2170840f0fe02e4f
2017-06-27 16:50:44 +09:00
Vu Cong Tuan 65f76051d5 Fix html_last_updated_fmt for Python3
html_last_updated_fmt option is interpreted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.

Change-Id: Ic85b544a5d91f0f820737480fd123cbebdc94894
2017-06-16 21:30:43 +07:00
yangle 9ebba6d43f Modify some spelling mistakes
Change-Id: I8f5e49f6378b437211520a7d28726b8b4d1c2aea
Co-Authored-By: Shu Muto <shu-mutou@rf.jp.nec.com>
2017-06-13 16:53:04 +09:00
Shu Muto 40394040e3 Refresh test environment
To enable py35 tests, refresh test environments.
Also, update docs, remove run_tests.sh that is no longer used.

Change-Id: I9bcf4acdfd4a9811ab2f0fc3bd02898a46fbd112
2017-04-13 15:17:13 +09:00
Shu Muto 714a46067d Fix URL for release notes in docs
Release notes in docs is not published by reno.
This patch change Release notes to URL published by reno.

Change-Id: I020abc16828592957496e83f74519ae919a7bb34
2016-09-28 10:09:43 +09:00
Shu Muto 04c6e4433a Rename bay and baymodel for 'Soft StringFreeze' milestone
"bay" and "baymodel" is not common term.
This patch renames "bay" to "cluster", and "baymodel" to
"cluster template" for 'Soft StringFreeze'[1] in Newton
Release Schedule[2].

[1] Soft StringFreeze: Aug 29 - Sep 02
[2] https://releases.openstack.org/newton/schedule.html

For translation work, this patch should focus to changing
strings to be translated and should be merged soon.

So, until "cluster" and "cluster template" is implemented
into Magnum API, Magnum-UI uses bay and baymodel of magnumclient.

Change-Id: I0db5472c4f19638cc57116101b552ad21fe34651
Implements: blueprint rename-bay-to-cluster
2016-08-26 18:23:01 +09:00
Shu Muto a97a487ec6 Move enabled files
Files in "enabled" directory is not in target of "babel-django.cfg".
So panel group label in these files are not translated.

This patch moves these files and adds panel group label into
translation target.

Change-Id: Iaee01f7e1970d7beb7d166d12ceb80b807785c4a
Closes-Bug: #1586917
2016-05-30 16:13:12 +09:00
shu-mutou bf4897e6f6 Remove Container panel and action
According to decisions that Magnum becomes COE Management Service,
Magnum-UI should remove Container panel and actions that is for
Docker Swarm container manipulations.

This patch removes following items.
- Container views (table and detail)
- Container actions (create and delete)
- Create Container action from bay table view and bay detail view

Change-Id: Ia18e9fa57e0460b9b1a8b473a005d31cb4acc5ca
Implements: blueprint remove-container-panel
2016-05-12 18:10:37 +09:00
Andreas Jaeger 28bf51f6c3 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:45:35 +01:00
ting.wang 7bb76529ec Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since python 2.6.
Resolved with use of subprocess module.

Change-Id: I5e8df9e4bcd7a3c56887f6982e14dee2230ea641
Closes-Bug: #1529836
2016-01-16 15:22:02 +08:00
shu-mutou 7e5e888481 Use Horizon's plugin registration system
Magnum UI and their panels are currently registered via their `dashboard.py`
and `panel.py` files, but should use the enabled files.
This is standard in Horizon.

This patch changes registration method to enabled files.

For moving our dashboard to under the "project" dashbaord,
we need to change URLs. So, many files will be changed.

Since "/project/containers" is already used by Swift Container panel,
this patch uses "bays", "baymodels" and "bays/containers" for URLs.

Change-Id: Icedb984331bd46540f2e7d12bbefcc308aff214f
Closes-Bug: #1507679
2015-12-24 17:29:52 +09:00
Bradley Jones c17cc5beb4 Initial skeleton repo
Add the basic structure for the magnum-ui repository to serve as a 
starting point for contributions. The structure is likely to change
as development progresses.

Change-Id: I5458741e2dd4c3409992315efaa60b33824b4ec8
Implements: blueprint repo-skeleton
2015-09-08 23:02:28 +00:00