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 @@
if (segments.length >= 4) {
return segments[3]
} else {
return '$TAG'
return '$VERSION'
}
}
function switchVersion(value) {
......
<!DOCTYPE html>
<html lang="en">
<!-- This file exists only once
in the final documentation -->
<head>
<meta charset="UTF-8">
<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>
<body>
<h1>Redirect Notice</h1>
<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:
</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>
</body>
</html>
\ No newline at end of file
......@@ -595,6 +595,7 @@ docs-latest:
- 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" {} \;
- mkdocs build && cp -r ./site ./final/latest
- cp ./.docs/redirect.html ./final/index.html
- cp -r ./swagger/latest ./final/latest/swagger
......@@ -619,9 +620,10 @@ docs-1.3:
- release-v1.3
- release-v1.4
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
- 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
- mkdocs build && cp -r ./site ./final/1.3.9
- cp -r ./swagger/1.3.9 ./final/1.3.9/swagger
......@@ -647,9 +649,10 @@ docs-1.4:
- release-v1.3
- release-v1.4
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
- 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" {} \;
- mkdocs build && cp -r ./site ./final/${VERSION}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment