Skip to content
Snippets Groups Projects
Verified Commit 4c1280a1 authored by Martin Weise's avatar Martin Weise
Browse files

Enable old redirect link

parent 55bc5e61
No related branches found
No related tags found
1 merge request!231CI: Remove build for log-service
......@@ -593,11 +593,11 @@ docs-latest:
- apt-get update && apt-get install -y git make sed
- git fetch && git checkout master
- pip install -r ./requirements.txt
- mkdir -p ./final
- find ./.docs -type f -exec sed -i -e "s/\$TAG/latest/g" {} \;
- find ./.docs -type f -exec sed -i -e "s/\$VERSION/${VERSION}/g" {} \;
- mkdir -p ./final/{latest,1.3}
- sed -i -e "s/\$TAG/${VERSION}/g"
- sed -i -e "s/\$VERSION/${VERSION}/g"
- mkdocs build && cp -r ./site ./final/latest
- cp ./.docs/redirect.html ./final/index.html
- cp ./.docs/redirect.html ./final/index.html ./final/1.3/index.html
- cp -r ./swagger/latest ./final/latest/swagger
cache:
paths:
......@@ -654,7 +654,8 @@ docs-1.4:
- pip install -r ./.docs/requirements.txt
- wget https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/dev/.docs/overrides/main.html -O .docs/overrides/main.html -q
- mkdir -p ./final
- find ./.docs -type f -exec sed -i -e "s/\$TAG/${VERSION}/g" {} \;
- sed -i -e "s/\$TAG/${VERSION}/g"
- sed -i -e "s/\$VERSION/${VERSION}/g"
- mkdocs build && cp -r ./site ./final/${VERSION}
- cp -r ./swagger/${VERSION} ./final/${VERSION}/swagger
cache:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment