Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fda-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
FAIR Data Austria DB Repository
fda-docs
Commits
1550d522
Verified
Commit
1550d522
authored
1 year ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Added version picker
parent
26b91088
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/overrides/main.html
+24
-0
24 additions, 0 deletions
docs/overrides/main.html
docs/stylesheets/extra.css
+9
-0
9 additions, 0 deletions
docs/stylesheets/extra.css
mkdocs.yml
+1
-0
1 addition, 0 deletions
mkdocs.yml
with
34 additions
and
0 deletions
docs/overrides/main.html
0 → 100644
+
24
−
0
View file @
1550d522
{% extends "base.html" %}
{% block announce %}
<label
for=
"version"
>
Version
</label>
<select
style=
"margin-left:8px;"
id=
"version"
name=
"version"
onchange=
"switchVersion(this.options[this.selectedIndex].value)"
>
<option
value=
"latest"
>
latest
</option>
<option
value=
"1.3"
>
1.3
</option>
</select>
<script>
function
getVersion
()
{
const
segments
=
location
.
pathname
.
split
(
'
/
'
)
if
(
segments
.
length
===
5
)
{
return
segments
[
3
]
}
else
{
return
'
latest
'
}
}
function
switchVersion
(
value
)
{
if
(
!
value
)
{
return
}
this
.
location
.
href
=
location
.
protocol
+
'
//
'
+
location
.
host
+
'
/infrastructures/dbrepo/
'
+
value
+
'
/
'
}
document
.
getElementById
(
"
version
"
).
value
=
getVersion
()
</script>
{% endblock %}
This diff is collapsed.
Click to expand it.
docs/stylesheets/extra.css
+
9
−
0
View file @
1550d522
...
...
@@ -16,3 +16,12 @@
color
:
var
(
--md-typeset-color
);
border-bottom
:
2px
solid
var
(
--md-primary-fg-color--dark
);
}
.md-banner
{
background-color
:
var
(
--md-primary-fg-color--dark
);
}
[
data-md-component
=
announce
]
.md-banner__inner
{
margin-top
:
0.2rem
;
margin-bottom
:
0.2rem
;
}
This diff is collapsed.
Click to expand it.
mkdocs.yml
+
1
−
0
View file @
1550d522
...
...
@@ -36,6 +36,7 @@ extra_css:
-
stylesheets/extra.css
theme
:
favicon
:
images/signet_white.png
custom_dir
:
docs/overrides
logo
:
images/signet_white.png
font
:
text
:
IBM Plex Serif
...
...
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