check redirects in test-docs

check all for:

- this PR
- latest tag
- longer term (3.0)
This commit is contained in:
Min RK
2023-04-19 13:27:51 +02:00
parent b1ac3b82dc
commit a5d563217c
2 changed files with 20 additions and 1 deletions

View File

@@ -72,3 +72,22 @@ jobs:
run: | run: |
cd docs cd docs
make linkcheck make linkcheck
- name: check redirects for this PR
run: |
cd docs
make rediraffecheckdiff
# this should check currently published 'stable' links for redirects
- name: check redirects since last release
run: |
cd docs
export REDIRAFFE_BRANCH=$(git describe --tags --abbrev 0)
make rediraffecheckdiff
# longer-term redirect check (fixed version) for older links
- name: check redirects since 3.0.0
run: |
cd docs
export REDIRAFFE_BRANCH=3.0.0
make rediraffecheckdiff

View File

@@ -235,7 +235,7 @@ ogp_use_first_image = True
# If you are basing changes off another branch/ commit, always change back # If you are basing changes off another branch/ commit, always change back
# rediraffe_branch to main before pushing your changes upstream. # rediraffe_branch to main before pushing your changes upstream.
# #
rediraffe_branch = "main" rediraffe_branch = os.environ.get("REDIRAFFE_BRANCH", "main")
rediraffe_redirects = "redirects.txt" rediraffe_redirects = "redirects.txt"
# rediraffe_redirects = { # rediraffe_redirects = {
# "old-file": "new-folder/new-file-name", # "old-file": "new-folder/new-file-name",