mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-02 18:14:07 -04:00
Add post-build step to update redirects
This allows us to maintain the list of redirects in-tree. Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
parent
4f4c87b01e
commit
7ce8fba3cb
@ -14,6 +14,9 @@ build:
|
|||||||
pre_build:
|
pre_build:
|
||||||
- make apidoc
|
- make apidoc
|
||||||
- breathe-apidoc -o docs/api apidoc/xml
|
- breathe-apidoc -o docs/api apidoc/xml
|
||||||
|
post_build:
|
||||||
|
- '[ "$READTHEDOCS_VERSION" != "development" ] || "$READTHEDOCS_VIRTUALENV_PATH/bin/rtd" projects "Mbed TLS API" redirects sync --wet-run -f docs/redirects.yaml'
|
||||||
|
|
||||||
|
|
||||||
# Build documentation in the docs/ directory with Sphinx
|
# Build documentation in the docs/ directory with Sphinx
|
||||||
sphinx:
|
sphinx:
|
||||||
|
10
docs/redirects.yaml
Normal file
10
docs/redirects.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Readthedocs redirects
|
||||||
|
# See https://docs.readthedocs.io/en/stable/user-defined-redirects.html
|
||||||
|
#
|
||||||
|
# In order to prevent exposing the API token, PR jobs do not update the
|
||||||
|
# redirects - changes to this file are only applied when they are merged
|
||||||
|
# into the main branch.
|
||||||
|
|
||||||
|
- type: exact
|
||||||
|
from_url: /projects/api/en/latest/$rest
|
||||||
|
to_url: /projects/api/en/development/
|
Loading…
x
Reference in New Issue
Block a user