diff --git a/doc/source/_extra/.htaccess b/doc/source/_extra/.htaccess new file mode 100644 index 000000000..c0f54d326 --- /dev/null +++ b/doc/source/_extra/.htaccess @@ -0,0 +1 @@ +redirect 301 /tc/reference/top-5-help-wanted.html /tc/reference/help-most-needed.html \ No newline at end of file diff --git a/doc/test/redirect-tests.txt b/doc/test/redirect-tests.txt new file mode 100644 index 000000000..bf165998b --- /dev/null +++ b/doc/test/redirect-tests.txt @@ -0,0 +1 @@ +/tc/reference/top-5-help-wanted.html 301 /tc/reference/help-most-needed.html diff --git a/test-requirements.txt b/test-requirements.txt index c1408dea5..50ee2b26b 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -6,3 +6,4 @@ yamllint>=0.5.2 requests-cache Pillow>=2.4.0 # PIL License hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 +whereto>=0.3.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 3505bcfd9..ecd5dad2e 100644 --- a/tox.ini +++ b/tox.ini @@ -19,6 +19,7 @@ commands = -print0 | xargs -0 yamllint" {toxinidir}/tools/check_projects_yaml_alphabetized.sh flake8 + whereto {toxinidir}/doc/source/_extra/.htaccess {toxinidir}/doc/test/redirect-tests.txt [testenv:venv] commands = {posargs}