From 9155e6f0d717c4c9f7cb5b472057d9617e9aab71 Mon Sep 17 00:00:00 2001 From: John Dickinson Date: Thu, 27 Jul 2017 13:58:36 -0700 Subject: [PATCH] added .htaccess redirect file for docs also added a test redirect so we know if things are working Change-Id: I8fd848c23053e52e45fa55637f280124eba74927 --- doc/source/_extra/.htaccess | 2 ++ doc/source/conf.py | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 doc/source/_extra/.htaccess diff --git a/doc/source/_extra/.htaccess b/doc/source/_extra/.htaccess new file mode 100644 index 0000000000..b45cdfeb54 --- /dev/null +++ b/doc/source/_extra/.htaccess @@ -0,0 +1,2 @@ +# docs redirects are defined here +redirectmatch 301 ^/swift/([^/]+)/team.html$ https://github.com/openstack/swift/blob/master/AUTHORS diff --git a/doc/source/conf.py b/doc/source/conf.py index 72ab3b9a35..bc260c1bbe 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -156,6 +156,10 @@ html_theme = 'openstackdocs' # so a file named "default.css" will overwrite the builtin "default.css". # html_static_path = ['_static'] +# Add any paths that contain "extra" files, such as .htaccess or +# robots.txt. +html_extra_path = ['_extra'] + # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. # html_last_updated_fmt = '%b %d, %Y'