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'