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
bd7f9369
Verified
Commit
bd7f9369
authored
1 year ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Debug
parent
b1a65d1b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.docs/build-website.sh
+2
-6
2 additions, 6 deletions
.docs/build-website.sh
.docs/redirect.html
+2
-2
2 additions, 2 deletions
.docs/redirect.html
.docs/scripts/extra.js
+2
-0
2 additions, 0 deletions
.docs/scripts/extra.js
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
with
7 additions
and
9 deletions
.docs/build-website.sh
+
2
−
6
View file @
bd7f9369
#!/bin/bash
#!/bin/bash
INDEX_HTML
=
""
OVERRIDES_MAIN_HTML
=
""
OVERRIDES_MAIN_HTML
=
""
SCRIPTS_EXTRA_JS
=
""
SCRIPTS_EXTRA_JS
=
""
...
@@ -15,7 +14,6 @@ function generate_docs {
...
@@ -15,7 +14,6 @@ function generate_docs {
find .docs/
-type
f
-exec
sed
-i
-e
"s/__APPVERSION__/
$1
/g"
{}
\;
find .docs/
-type
f
-exec
sed
-i
-e
"s/__APPVERSION__/
$1
/g"
{}
\;
find .docs/
-type
f
-exec
sed
-i
-e
"s/__CHARTVERSION__/
$1
/g"
{}
\;
find .docs/
-type
f
-exec
sed
-i
-e
"s/__CHARTVERSION__/
$1
/g"
{}
\;
if
[
"
$1
"
=
"latest"
]
;
then
if
[
"
$1
"
=
"latest"
]
;
then
INDEX_HTML
=
$(
cat
.docs/redirect.html
)
OVERRIDES_MAIN_HTML
=
$(
cat
.docs/overrides/main.html
)
OVERRIDES_MAIN_HTML
=
$(
cat
.docs/overrides/main.html
)
SCRIPTS_EXTRA_JS
=
$(
cat
.docs/scripts/extra.js
)
SCRIPTS_EXTRA_JS
=
$(
cat
.docs/scripts/extra.js
)
else
else
...
@@ -71,8 +69,6 @@ done
...
@@ -71,8 +69,6 @@ done
# finalization
# finalization
echo
"==================================================="
echo
"==================================================="
echo
"Adding index.html from branch release-latest"
echo
"Moving default version
$APP_VERSION
docs to /"
echo
$INDEX_HTML
>
.docs/redirect.html
cp
-r
./final/
${
APP_VERSION
}
/
*
./final/
sed
-i
-e
"s/__APPVERSION__/
${
APP_VERSION
}
/g"
.docs/redirect.html
cp
./.docs/redirect.html ./final/index.html
echo
"==================================================="
echo
"==================================================="
This diff is collapsed.
Click to expand it.
.docs/redirect.html
+
2
−
2
View file @
bd7f9369
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<title>
Redirect Notice
</title>
<title>
Redirect Notice
</title>
<meta
http-equiv=
"Refresh"
content=
"
1
0; url='/
/localhost:8000/
infrastructures/dbrepo/__APPVERSION__/'"
/>
<meta
http-equiv=
"Refresh"
content=
"0; url='/infrastructures/dbrepo/__APPVERSION__/'"
/>
</head>
</head>
<body>
<body>
<h1>
Redirect Notice
</h1>
<h1>
Redirect Notice
</h1>
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
available at:
available at:
</p>
</p>
<p>
<p>
<a
href=
"/
/localhost:8000/
infrastructures/dbrepo/__APPVERSION__/"
>
/
/localhost:8000/
infrastructures/dbrepo/__APPVERSION__/
</a>
<a
href=
"/infrastructures/dbrepo/__APPVERSION__/"
>
/infrastructures/dbrepo/__APPVERSION__/
</a>
</p>
</p>
</body>
</body>
</html>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.docs/scripts/extra.js
+
2
−
0
View file @
bd7f9369
function
getVersion
()
{
function
getVersion
()
{
const
segments
=
location
.
pathname
.
split
(
'
/
'
);
const
segments
=
location
.
pathname
.
split
(
'
/
'
);
if
(
segments
.
length
>=
4
)
{
if
(
segments
.
length
>=
4
)
{
console
.
log
(
'
version
'
,
segments
[
3
])
return
segments
[
3
];
return
segments
[
3
];
}
else
{
}
else
{
console
.
log
(
'
default version __APPVERSION__
'
)
return
'
__APPVERSION__
'
;
return
'
__APPVERSION__
'
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
1
−
1
View file @
bd7f9369
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