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

Force same header for across versions

parent 79724737
No related branches found
No related tags found
3 merge requests!231CI: Remove build for log-service,!228Better error message handling in the frontend,!223Release of version 1.4.0
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
if (segments.length >= 4) { if (segments.length >= 4) {
return segments[3] return segments[3]
} else { } else {
return '$TAG' return '$VERSION'
} }
} }
function switchVersion(value) { function switchVersion(value) {
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<!-- This file exists only once
in the final documentation -->
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Redirect Notice</title> <title>Redirect Notice</title>
<meta http-equiv="Refresh" content="0; url='https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/latest/'" /> <meta http-equiv="Refresh" content="0; url='https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/$VERSION/'" />
</head> </head>
<body> <body>
<h1>Redirect Notice</h1> <h1>Redirect Notice</h1>
<p> <p>
This page should automatically open the documentation for version <code>latest</code>. In case this page does not load the site is This page should automatically open the documentation for version <code>$VERSION</code>. In case this page does not load the site is
available at: available at:
</p> </p>
<p> <p>
<a href="https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/latest/">https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/latest/</a> <a href="https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/$VERSION/">https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/$VERSION/</a>
</p> </p>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -595,6 +595,7 @@ docs-latest: ...@@ -595,6 +595,7 @@ docs-latest:
- pip install -r ./requirements.txt - pip install -r ./requirements.txt
- mkdir -p ./final - mkdir -p ./final
- find ./.docs -type f -exec sed -i -e "s/\$TAG/latest/g" {} \; - find ./.docs -type f -exec sed -i -e "s/\$TAG/latest/g" {} \;
- find ./.docs -type f -exec sed -i -e "s/\$VERSION/${VERSION}/g" {} \;
- mkdocs build && cp -r ./site ./final/latest - mkdocs build && cp -r ./site ./final/latest
- cp ./.docs/redirect.html ./final/index.html - cp ./.docs/redirect.html ./final/index.html
- cp -r ./swagger/latest ./final/latest/swagger - cp -r ./swagger/latest ./final/latest/swagger
...@@ -619,9 +620,10 @@ docs-1.3: ...@@ -619,9 +620,10 @@ docs-1.3:
- release-v1.3 - release-v1.3
- release-v1.4 - release-v1.4
script: script:
- apt-get update && apt-get install -y git make - apt-get update && apt-get install -y git make wget
- git fetch && git checkout release-v1.3 - git fetch && git checkout release-v1.3
- pip install -r ./.docs/requirements.txt - 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 - mkdir -p ./final
- mkdocs build && cp -r ./site ./final/1.3.9 - mkdocs build && cp -r ./site ./final/1.3.9
- cp -r ./swagger/1.3.9 ./final/1.3.9/swagger - cp -r ./swagger/1.3.9 ./final/1.3.9/swagger
...@@ -647,9 +649,10 @@ docs-1.4: ...@@ -647,9 +649,10 @@ docs-1.4:
- release-v1.3 - release-v1.3
- release-v1.4 - release-v1.4
script: script:
- apt-get update && apt-get install -y git make sed - apt-get update && apt-get install -y git make sed wget
- git fetch && git checkout release-v1.4 - git fetch && git checkout release-v1.4
- pip install -r ./.docs/requirements.txt - 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 - mkdir -p ./final
- find ./.docs -type f -exec sed -i -e "s/\$TAG/${VERSION}/g" {} \; - find ./.docs -type f -exec sed -i -e "s/\$TAG/${VERSION}/g" {} \;
- mkdocs build && cp -r ./site ./final/${VERSION} - mkdocs build && cp -r ./site ./final/${VERSION}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment