diff --git a/doc/source/_extra/.htaccess b/doc/source/_extra/.htaccess new file mode 100644 index 0000000000..7745594937 --- /dev/null +++ b/doc/source/_extra/.htaccess @@ -0,0 +1 @@ +redirectmatch 301 ^/developer/tempest/(.*) /tempest/latest/$1 diff --git a/doc/source/conf.py b/doc/source/conf.py index 067eb81b78..0a061b8a54 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -154,6 +154,9 @@ html_theme = 'openstackdocs' # relative to this directory. They are copied after the builtin static files, # 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.