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

Updated docs

parent ff397504
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ SCRIPTS_EXTRA_JS=""
function generate_docs {
BRANCH="release-$1"
echo "==================================================="
echo "Removing cache from directory ./site"
rm -rf ./site
echo "Building DOCS for version $1 on branch $BRANCH"
echo "==================================================="
git reset --hard && git checkout "$BRANCH"
......@@ -29,6 +31,8 @@ function generate_docs {
function generate_api {
BRANCH="release-$1"
echo "==================================================="
echo "Removing cache from directory ./site"
rm -rf ./site
echo "Building API for version $1 on branch $BRANCH"
echo "==================================================="
git reset --hard && git checkout "$BRANCH"
......
function getVersion() {
const segments = location.pathname.split('/');
if (segments.length > 4) {
console.debug('version', segments[3]);
return segments[3];
} else {
console.debug('default version', '__APPVERSION__');
return '__APPVERSION__';
}
}
......
......@@ -646,38 +646,6 @@ docs-registry:
- ./final
expire_in: 1 days
docs-latest:
stage: docs
image: docker.io/python:3.9-slim
needs:
- build-api-latest
- build-api-1.3
- build-api-1.4
only:
refs:
- master
- release-v1.3
- release-v1.4
script:
- apt-get update && apt-get install -y git make sed
- git fetch && git checkout master
- pip install -r ./requirements.txt
- mkdir -p ./final
- sed -i -e "s/__APPVERSION__/${APP_VERSION}/g" .docs/redirect.html
- cp ./.docs/redirect.html ./final/index.html
- find .docs/ -type f -exec sed -i -e "s/__APPVERSION__/latest/g" {} \;
- find .docs/ -type f -exec sed -i -e "s/__CHARTVERSION__/${CHART_VERSION}/g" {} \;
- mkdocs build && cp -r ./site ./final/latest
- cp -r ./swagger/latest ./final/latest/swagger
cache:
paths:
- ./final
artifacts:
when: always
paths:
- ./final
expire_in: 1 days
docs-1.3:
stage: docs
image: docker.io/python:3.9-slim
......
......@@ -12,6 +12,8 @@ volumes:
services:
website:
restart: "no"
container_name: website
hostname: website
image: website
build: .
ports:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment