From ae49c3b6c42b410271413b958fa968955d3fc12e Mon Sep 17 00:00:00 2001 From: berkas1 <berka@berkasimon.com> Date: Mon, 18 Oct 2021 22:38:03 +0200 Subject: [PATCH] redirect old docs to new --- .gitlab-ci.yml | 48 +++-------------------- public/cloud/advanced-features/index.html | 15 +++++++ public/cloud/best-practices/index.html | 15 +++++++ public/cloud/cli/index.html | 15 +++++++ public/cloud/contribute/index.html | 15 +++++++ public/cloud/faq/index.html | 15 +++++++ public/cloud/flavors/index.html | 15 +++++++ public/cloud/network/index.html | 15 +++++++ public/cloud/news/index.html | 15 +++++++ public/cloud/putty/index.html | 15 +++++++ public/cloud/quick-start/index.html | 15 +++++++ public/cloud/register/index.html | 15 +++++++ public/cloud/terms-of-service/index.html | 15 +++++++ public/cloud/tools/index.html | 15 +++++++ public/cloud/windows/index.html | 15 +++++++ public/index.html | 16 ++++++++ 16 files changed, 232 insertions(+), 42 deletions(-) create mode 100644 public/cloud/advanced-features/index.html create mode 100644 public/cloud/best-practices/index.html create mode 100644 public/cloud/cli/index.html create mode 100644 public/cloud/contribute/index.html create mode 100644 public/cloud/faq/index.html create mode 100644 public/cloud/flavors/index.html create mode 100644 public/cloud/network/index.html create mode 100644 public/cloud/news/index.html create mode 100644 public/cloud/putty/index.html create mode 100644 public/cloud/quick-start/index.html create mode 100644 public/cloud/register/index.html create mode 100644 public/cloud/terms-of-service/index.html create mode 100644 public/cloud/tools/index.html create mode 100644 public/cloud/windows/index.html create mode 100644 public/index.html diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7daf34c..4b8256a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,49 +4,13 @@ variables: GIT_SUBMODULE_STRATEGY: recursive -build-test: - before_script: - - apk update - - apk add git - - apk add python3 - - apk add py3-pip - - apk add py3-yaml - - apk add openssh-client +pages: script: - - hugo --config config.toml -D --destination=./public + - echo "" -deploy_cpanel: - before_script: - - apk update - - apk add git - - apk add python3 - - apk add py3-pip - - apk add py3-yaml - - apk add openssh-client - - apk add curl - script: - - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ics.muni.cz/cloud/hiera.git - - sed -i '11,$d' content/cloud/flavors/index.md - - echo "{{< csv-table header=\"true\">}}" >> content/cloud/flavors/index.md - - python3 ci/flavor_info_miner.py --hiera-file ./hiera/group/ostack/flavors.yaml - - cat flavors.csv >> content/cloud/flavors/index.md - - echo "{{</csv-table>}}" >> content/cloud/flavors/index.md - - cat content/cloud/flavors/index.md - - sed -i -e "s/BUILDIDTAG/$CI_COMMIT_SHORT_SHA/g" ./layouts/partials/site-footer.html - - hugo --config config.toml -D --destination=./public - - eval $(ssh-agent -s) - - echo "$SSH_PRIVATE_KEY_cpanel" | tr -d '\r' | ssh-add - - - mkdir -p ~/.ssh - - chmod 700 ~/.ssh - - echo "$SSH_KNOWN_HOSTS_cpanel" >> ~/.ssh/known_hosts - - chmod 644 ~/.ssh/known_hosts - - ssh docscloudmuni@docs.cloud.muni.cz 'mkdir ~/tmpdeploy' - - scp -r ./public/* docscloudmuni@docs.cloud.muni.cz:~/tmpdeploy - - ssh docscloudmuni@docs.cloud.muni.cz 'mv ~/public_html ~/todelete && mv ~/tmpdeploy ~/public_html && rm -rf ~/todelete' - - sleep 5 - - latest_commit=$(git log -1 --pretty=format:%h ) - - "curl -H 'Cache-Control: no-cache' https://docs.cloud.muni.cz | grep $latest_commit" + artifacts: + paths: + - public only: - - master - + - feature/old-docs-redir \ No newline at end of file diff --git a/public/cloud/advanced-features/index.html b/public/cloud/advanced-features/index.html new file mode 100644 index 0000000..986b339 --- /dev/null +++ b/public/cloud/advanced-features/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/advanced-features/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/advanced-features/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/advanced-features/'>moved</a>. + </body> +</html> diff --git a/public/cloud/best-practices/index.html b/public/cloud/best-practices/index.html new file mode 100644 index 0000000..9ad9329 --- /dev/null +++ b/public/cloud/best-practices/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/best-practices/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/best-practices/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/best-practices/'>moved</a>. + </body> +</html> diff --git a/public/cloud/cli/index.html b/public/cloud/cli/index.html new file mode 100644 index 0000000..90ff320 --- /dev/null +++ b/public/cloud/cli/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/cli/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/cli/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/cli/'>moved</a>. + </body> +</html> diff --git a/public/cloud/contribute/index.html b/public/cloud/contribute/index.html new file mode 100644 index 0000000..bc8b79f --- /dev/null +++ b/public/cloud/contribute/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/contribute/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/contribute/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/contribute/'>moved</a>. + </body> +</html> diff --git a/public/cloud/faq/index.html b/public/cloud/faq/index.html new file mode 100644 index 0000000..f76a058 --- /dev/null +++ b/public/cloud/faq/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/faq/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/faq/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/faq/'>moved</a>. + </body> +</html> diff --git a/public/cloud/flavors/index.html b/public/cloud/flavors/index.html new file mode 100644 index 0000000..1022504 --- /dev/null +++ b/public/cloud/flavors/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/flavors/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/flavors/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/flavors/'>moved</a>. + </body> +</html> diff --git a/public/cloud/network/index.html b/public/cloud/network/index.html new file mode 100644 index 0000000..1199882 --- /dev/null +++ b/public/cloud/network/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/network/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/network/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/network/'>moved</a>. + </body> +</html> diff --git a/public/cloud/news/index.html b/public/cloud/news/index.html new file mode 100644 index 0000000..980636c --- /dev/null +++ b/public/cloud/news/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/news/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/news/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/news/'>moved</a>. + </body> +</html> diff --git a/public/cloud/putty/index.html b/public/cloud/putty/index.html new file mode 100644 index 0000000..5d120a9 --- /dev/null +++ b/public/cloud/putty/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/putty/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/putty/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/putty/'>moved</a>. + </body> +</html> diff --git a/public/cloud/quick-start/index.html b/public/cloud/quick-start/index.html new file mode 100644 index 0000000..74970e2 --- /dev/null +++ b/public/cloud/quick-start/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/quick-start/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/quick-start/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/quick-start/'>moved</a>. + </body> +</html> diff --git a/public/cloud/register/index.html b/public/cloud/register/index.html new file mode 100644 index 0000000..0206cd9 --- /dev/null +++ b/public/cloud/register/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/register/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/register/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/register/'>moved</a>. + </body> +</html> diff --git a/public/cloud/terms-of-service/index.html b/public/cloud/terms-of-service/index.html new file mode 100644 index 0000000..0d66561 --- /dev/null +++ b/public/cloud/terms-of-service/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/terms-of-service/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/terms-of-service/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/terms-of-service/'>moved</a>. + </body> +</html> diff --git a/public/cloud/tools/index.html b/public/cloud/tools/index.html new file mode 100644 index 0000000..4090379 --- /dev/null +++ b/public/cloud/tools/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/tools/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/tools/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/tools/'>moved</a>. + </body> +</html> diff --git a/public/cloud/windows/index.html b/public/cloud/windows/index.html new file mode 100644 index 0000000..bf14f6f --- /dev/null +++ b/public/cloud/windows/index.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/cloud/windows/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/cloud/windows/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/cloud/windows/'>moved</a>. + </body> +</html> diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..349370b --- /dev/null +++ b/public/index.html @@ -0,0 +1,16 @@ +<!DOCTYPE HTML> +<html lang="en-US"> + <head> + <meta charset="UTF-8"> + <meta http-equiv="refresh" content="0; url=https://docs.cloud.muni.cz/"> + <script type="text/javascript"> + window.location.href = "https://docs.cloud.muni.cz/" + </script> + <title>Page Redirection</title> + </head> + <body> + <!-- Note: don't tell people to `click` the link, just tell them that it is a link. --> + Documentation has been <a href='https://docs.cloud.muni.cz/'>moved</a>. + </body> +</html> + -- GitLab