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

Bumped version

parent 9a337fd6
Branches master
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
OVERRIDES_MAIN_HTML="" VERSIONS_JSON=""
SCRIPTS_EXTRA_JS=""
function clean_cache { function clean_cache {
echo "Removing cache from directory ./site ./lib/python/docs/build" echo "Removing cache from directory ./site ./lib/python/docs/build"
...@@ -32,18 +31,13 @@ function generate_docs { ...@@ -32,18 +31,13 @@ function generate_docs {
pip install -r ./requirements.txt > /dev/null pip install -r ./requirements.txt > /dev/null
mkdir -p ./final mkdir -p ./final
if [ "$1" = "latest" ]; then if [ "$1" = "latest" ]; then
OVERRIDES_MAIN_HTML=$(cat .docs/overrides/main.html) VERSIONS_JSON=$(cat ./versions.json)
sed -i -e "s/__APPVERSION__/${APP_VERSION}/g" .docs/scripts/extra.js
SCRIPTS_EXTRA_JS=$(cat .docs/scripts/extra.js)
else
echo $OVERRIDES_MAIN_HTML > .docs/overrides/main.html
mkdir -p .docs/scripts
echo $SCRIPTS_EXTRA_JS > .docs/scripts/extra.js
fi fi
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" {} \;
mkdocs build > /dev/null && cp -r ./site "./final/$1" mike deploy $1 && cp -r ./site "./final/$1"
cp -r "./swagger/$1" "./final/$1/swagger" cp -r "./swagger/$1" "./final/$1/swagger"
echo $VERSIONS_JSON > "./final/$1/versions.json"
clean_cache clean_cache
} }
......
...@@ -43,9 +43,7 @@ nav: ...@@ -43,9 +43,7 @@ nav:
- publications.md - publications.md
- contact.md - contact.md
extra_css: extra_css:
- stylesheets/extra.css - stylesheets/custom.css
extra_javascript:
- scripts/extra.js
theme: theme:
favicon: images/signet_white.png favicon: images/signet_white.png
custom_dir: .docs/overrides custom_dir: .docs/overrides
...@@ -104,6 +102,15 @@ markdown_extensions: ...@@ -104,6 +102,15 @@ markdown_extensions:
- .docs/overrides/.icons - .docs/overrides/.icons
extra: extra:
homepage: https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/ homepage: https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/
version:
default: 1.4.2
provider: mike
social: social:
- icon: simple/artifacthub
link: https://artifacthub.io/packages/helm/dbrepo/dbrepo
- icon: fontawesome/brands/docker
link: https://hub.docker.com/search?q=dbrepo
- icon: fontawesome/brands/python
link: https://pypi.org/project/dbrepo/
- icon: fontawesome/brands/gitlab - icon: fontawesome/brands/gitlab
link: https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services link: https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services
mkdocs==1.5.3 mkdocs==1.5.3
mkdocs-material==9.5.5 mkdocs-material==9.5.17
mkdocs-with-pdf==0.9.3 mkdocs-with-pdf==0.9.3
mkdocs-material-extensions>=1.0.3 mkdocs-material-extensions>=1.0.3
requests>=2.27.0 requests>=2.27.0
...@@ -13,4 +13,5 @@ furo==2024.1.29 ...@@ -13,4 +13,5 @@ furo==2024.1.29
requests==2.31.0 requests==2.31.0
pika==1.3.2 pika==1.3.2
pydantic==2.6.4 pydantic==2.6.4
tuspy==1.0.3 tuspy==1.0.3
\ No newline at end of file mike==2.0.0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment