Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
6e90842a
Verified
Commit
6e90842a
authored
1 year ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Force same header for across versions
parent
79724737
No related branches found
No related tags found
3 merge requests
!231
CI: Remove build for log-service
,
!228
Better error message handling in the frontend
,
!223
Release of version 1.4.0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.docs/overrides/main.html
+1
-1
1 addition, 1 deletion
.docs/overrides/main.html
.docs/redirect.html
+6
-4
6 additions, 4 deletions
.docs/redirect.html
.gitlab-ci.yml
+5
-2
5 additions, 2 deletions
.gitlab-ci.yml
with
12 additions
and
7 deletions
.docs/overrides/main.html
+
1
−
1
View file @
6e90842a
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
.docs/redirect.html
+
6
−
4
View file @
6e90842a
<!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
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
5
−
2
View file @
6e90842a
...
@@ -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}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment