Skip to content

Commit 7f08bf7

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "image: autogenerate docs"
2 parents 09970d4 + da3c3bd commit 7f08bf7

6 files changed

Lines changed: 30 additions & 652 deletions

File tree

doc/source/_extra/.htaccess

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ redirectmatch 301 ^/python-openstackclient/([^/]+)/specs/([^/.]+).html$ /python-
99

1010
redirectmatch 301 ^/python-openstackclient/([^/]+)/(command-(beta|errors|logs|options|wrappers)|developing|humaninterfaceguide|plugins).html$ /python-openstackclient/$1/contributor/$2.html
1111
redirectmatch 301 ^/python-openstackclient/([^/]+)/cli/plugin-commands.html$ /python-openstackclient/$1/cli/plugin-commands/index.html
12-
# Identity pages were split into -v2 and -v3 for common subcommand names.
12+
# For common subcommand names:
13+
# - identity pages were split into -v2 and -v3
14+
# - image pages were split into -v1 and -v2
1315
# The unversioned page is hidden but contains links to the versioned pages so links in the wild redirect somewhere sane.
14-
redirectmatch 301 ^/python-openstackclient/([^/]+)/cli/command-objects/(ec2-credentials|endpoint|project|role|service|token|user).html$ /python-openstackclient/$1/cli/_hidden/$2.html
16+
redirectmatch 301 ^/python-openstackclient/([^/]+)/cli/command-objects/(ec2-credentials|endpoint|image|project|role|service|token|user).html$ /python-openstackclient/$1/cli/_hidden/$2.html

doc/source/cli/_hidden/image.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=====
2+
image
3+
=====
4+
5+
.. NOTE(efried): This page is hidden from the main TOC; it's here so links in
6+
the wild redirect somewhere sane, because previously identity v2 and v3 were
7+
combined in a single page.
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
12+
../command-objects/image-v1
13+
../command-objects/image-v2
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
========
2+
image v1
3+
========
4+
5+
.. autoprogram-cliff:: openstack.image.v1
6+
:command: image *
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
========
2+
image v2
3+
========
4+
5+
.. autoprogram-cliff:: openstack.image.v2
6+
:command: image *

0 commit comments

Comments
 (0)