-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
# Sync RTD redirects | ||
name: redirects | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- docs/redirects.yml | ||
- .github/workflows/redirects.yml | ||
|
||
# Manually triggered using GitHub's UI | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docs: | ||
environment: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
|
||
- name: Upgrade Python toolchain | ||
run: python3 -m pip install --upgrade pip setuptools wheel | ||
|
||
- name: Install readthedocs-cli | ||
run: python3 -m pip install readthedocs-cli | ||
|
||
- name: Sync redirects | ||
run: rtd projects ansible-lint redirects sync -f docs/redirects.yml --wet-run | ||
env: | ||
RTD_TOKEN: ${{ secrets.RTD_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
google-site-verification: google04e29a42ae6e6cbc.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Authoritative list of redirects we have configured in RTD, | ||
# https://pypi.org/project/readthedocs-cli/ | ||
--- | ||
- type: page | ||
from_url: /en/latest/ | ||
to_url: / | ||
- type: page | ||
from_url: /en/latest/getting-started/ | ||
to_url: /getting-started/ | ||
# Keep this last or it will match all the other rules | ||
- type: sphinx_htmldir | ||
from_url: "" | ||
to_url: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters