summaryrefslogtreecommitdiff
path: root/doc/test
diff options
context:
space:
mode:
authorEric Fried <openstack@fried.cc>2019-11-05 08:58:58 -0600
committerMonty Taylor <mordred@inaugust.com>2020-06-08 16:34:28 -0500
commitda3c3bde24a0263a9ff3769a5fa67e2aff8f3784 (patch)
tree1ca911e6da6135a8082d0a53f081ba590453b2ec /doc/test
parent26878e7d53a531adb67c9ddde8fd6d3c3092ce34 (diff)
downloadpython-openstackclient-da3c3bde24a0263a9ff3769a5fa67e2aff8f3784.tar.gz
image: autogenerate docs
$namespace = openstack.image.v{1|2} The subcommand documents for $namespace were hardcoded and thus prone to drift over time. This commit removes the hardcoded content and uses the autoprogram-cliff directive to generate them automatically from the subcommand configuration classes. Some reorganization happened here. The `image` subcommand name is shared by image v1 and v2. Previously the hardcoded document had them combined and interleaved. Attempting to preserve this with autoprogram-cliff would have required significant additional infrastructure. However, since most readers care completely about one and not at all about the other, we instead split the v1 and v2 versions of these commands into separate pages. In case links to the old pages exist in the wild, they are preserved, but moved (with redirects) to a hidden directory, and populated simply with links to the new version-specific generated documents. Change-Id: I24dc6dc10671c7f1267c27002542f61f8a3c18ae
Diffstat (limited to 'doc/test')
-rw-r--r--doc/test/redirect-tests.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/test/redirect-tests.txt b/doc/test/redirect-tests.txt
index d18660a0..5ed7c19c 100644
--- a/doc/test/redirect-tests.txt
+++ b/doc/test/redirect-tests.txt
@@ -18,6 +18,7 @@
/python-openstackclient/latest/cli/plugin-commands.html 301 /python-openstackclient/latest/cli/plugin-commands/index.html
/python-openstackclient/latest/cli/command-objects/ec2-credentials.html 301 /python-openstackclient/latest/cli/_hidden/ec2-credentials.html
/python-openstackclient/latest/cli/command-objects/endpoint.html 301 /python-openstackclient/latest/cli/_hidden/endpoint.html
+/python-openstackclient/latest/cli/command-objects/image.html 301 /python-openstackclient/latest/cli/_hidden/image.html
/python-openstackclient/latest/cli/command-objects/project.html 301 /python-openstackclient/latest/cli/_hidden/project.html
/python-openstackclient/latest/cli/command-objects/role.html 301 /python-openstackclient/latest/cli/_hidden/role.html
/python-openstackclient/latest/cli/command-objects/service.html 301 /python-openstackclient/latest/cli/_hidden/service.html