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

Updated docs

parent a15e2766
No related branches found
No related tags found
1 merge request!368Dev
<!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='/infrastructures/dbrepo/1.5/'" /> <meta http-equiv="Refresh" content="0; url='/infrastructures/dbrepo/${DOC_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>1.5</code>. In case this page does not load the site is This page should automatically open the documentation for version <code>${DOC_VERSION}</code>. In case this page does not load the site is
available at: available at:
</p> </p>
<p> <p>
<a href="/infrastructures/dbrepo/1.5/">/infrastructures/dbrepo/1.5/</a> <a href="/infrastructures/dbrepo/${DOC_VERSION}/">/infrastructures/dbrepo/${DOC_VERSION}/</a>
</p> </p>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -443,6 +443,7 @@ release-docs: ...@@ -443,6 +443,7 @@ release-docs:
- "cp -r ./site/* ./final/${DOC_VERSION}" # mkdocs - "cp -r ./site/* ./final/${DOC_VERSION}" # mkdocs
- "cp .docker/dist.tar.gz ./final/${APP_VERSION}/dist.tar.gz" # dist - "cp .docker/dist.tar.gz ./final/${APP_VERSION}/dist.tar.gz" # dist
- "cp .docs/redirect.html ./final/${APP_VERSION}/index.html" # redirect patch docs - "cp .docs/redirect.html ./final/${APP_VERSION}/index.html" # redirect patch docs
- sed -i "s/\${DOC_VERSION}/${DOC_VERSION}/g" index.html
- "bash ./.gitlab/gen-badge.sh" - "bash ./.gitlab/gen-badge.sh"
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- "mkdir -p /root/.ssh" - "mkdir -p /root/.ssh"
...@@ -452,7 +453,7 @@ release-docs: ...@@ -452,7 +453,7 @@ release-docs:
- tar czf ./final.tar.gz ./final - tar czf ./final.tar.gz ./final
- "scp -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa final.tar.gz $CI_DOC_USER@$CI_DOC_IP:final.tar.gz" - "scp -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa final.tar.gz $CI_DOC_USER@$CI_DOC_IP:final.tar.gz"
- "scp -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa versions.json $CI_DOC_USER@$CI_DOC_IP:/system/user/ifs/infrastructures/public_html/dbrepo/versions.json" - "scp -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa versions.json $CI_DOC_USER@$CI_DOC_IP:/system/user/ifs/infrastructures/public_html/dbrepo/versions.json"
- "scp -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa .docs/redirect.html $CI_DOC_USER@$CI_DOC_IP:/system/user/ifs/infrastructures/public_html/dbrepo/index.html" - "scp -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa .docs/index.html.tpl $CI_DOC_USER@$CI_DOC_IP:/system/user/ifs/infrastructures/public_html/dbrepo/index.html"
- 'ssh -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa $CI_DOC_USER@$CI_DOC_IP "rm -rf /system/user/ifs/infrastructures/public_html/dbrepo/${DOC_VERSION}; tar xzf ./final.tar.gz; rm -f ./final.tar.gz; cp -r ./final/* /system/user/ifs/infrastructures/public_html/dbrepo; rm -rf ./final"' - 'ssh -oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa $CI_DOC_USER@$CI_DOC_IP "rm -rf /system/user/ifs/infrastructures/public_html/dbrepo/${DOC_VERSION}; tar xzf ./final.tar.gz; rm -f ./final.tar.gz; cp -r ./final/* /system/user/ifs/infrastructures/public_html/dbrepo; rm -rf ./final"'
release-libs: release-libs:
......
...@@ -89,6 +89,6 @@ done ...@@ -89,6 +89,6 @@ done
# finalization # finalization
echo "===================================================" echo "==================================================="
echo "Moving HTML redirect and JSON versions to /" echo "Moving HTML redirect and JSON versions to /"
cp ./final/${APP_VERSION}/redirect.html ./final/index.html cp ./final/${APP_VERSION}/index.html.tpl ./final/index.html
cp ./final/${APP_VERSION}/versions.json ./final/versions.json cp ./final/${APP_VERSION}/versions.json ./final/versions.json
echo "===================================================" echo "==================================================="
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment