summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-08-11 15:43:56 +0000
committerGerrit Code Review <review@openstack.org>2017-08-11 15:43:56 +0000
commitd0b0b90711316f2d896119afd46f8f0fee2fa121 (patch)
tree8f2d3e856195f3a93730d859fcbe1fd018b05fd6 /doc/source
parent88b31fc12e817e2486ad0afc7565a6e6eb5ffe3b (diff)
parentfd7b4f49121d3ac65e3f3a31607ead506d268300 (diff)
downloadpython-openstackclient-d0b0b90711316f2d896119afd46f8f0fee2fa121.tar.gz
Merge "Add .htaccess for docs migration"
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/_extra/.htaccess22
-rw-r--r--doc/source/conf.py3
2 files changed, 25 insertions, 0 deletions
diff --git a/doc/source/_extra/.htaccess b/doc/source/_extra/.htaccess
new file mode 100644
index 00000000..d4c092b5
--- /dev/null
+++ b/doc/source/_extra/.htaccess
@@ -0,0 +1,22 @@
+# Redirect docs from the old to new location following the Great Docs Migration of 2017
+
+redirectmatch 301 ^/python-openstackclient/([^/]+)/command-objects/([^/.]+).html$ /python-openstackclient/$1/cli/command-objects/$2.html
+
+redirectmatch 301 ^/python-openstackclient/([^/]+)/authentication.html$ /python-openstackclient/$1/cli/authentication.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/backward-incompatible.html$ /python-openstackclient/$1/cli/backward-incompatible.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/command-list.html$ /python-openstackclient/$1/cli/command-list.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/commands.html$ /python-openstackclient/$1/cli/commands.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/decoder.html$ /python-openstackclient/$1/cli/decoder.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/interactive.html$ /python-openstackclient/$1/cli/interactive.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/plugin-commands.html$ /python-openstackclient/$1/cli/plugin-commands.html
+
+redirectmatch 301 ^/python-openstackclient/([^/]+)/specs/([^/.]+).html$ /python-openstackclient/$1/contributor/specs/$2.html
+
+redirectmatch 301 ^/python-openstackclient/([^/]+)/command-beta.html$ /python-openstackclient/$1/contributor/command-beta.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/command-errors.html$ /python-openstackclient/$1/contributor/command-errors.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/command-logs.html$ /python-openstackclient/$1/contributor/command-logs.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/command-options.html$ /python-openstackclient/$1/contributor/command-options.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/command-wrappers.html$ /python-openstackclient/$1/contributor/command-wrappers.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/developing.html$ /python-openstackclient/$1/contributor/developing.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/humaninterfaceguide.html$ /python-openstackclient/$1/contributor/humaninterfaceguide.html
+redirectmatch 301 ^/python-openstackclient/([^/]+)/plugins.html$ /python-openstackclient/$1/contributor/plugins.html
diff --git a/doc/source/conf.py b/doc/source/conf.py
index bd4fa730..ac9d0b38 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -187,6 +187,9 @@ html_last_updated_fmt = '%Y-%m-%d %H:%M'
# Output file base name for HTML help builder.
htmlhelp_basename = 'OpenStackCommandLineClientdoc'
+# Add any paths that contain "extra" files, such as .htaccess or robots.txt
+html_extra_path = ['_extra']
+
# -- Options for LaTeX output -------------------------------------------------