From 6171b0b26756991839cee4ab5bded989b495c97f Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Thu, 10 Mar 2022 11:05:25 +0100 Subject: [PATCH] Add forward to stable, fix docs preview --- .gitlab-ci.yml | 2 +- docs/_templates/layout.html | 2 +- public/index.html | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 public/index.html diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee9d66e12..25ad2705e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -82,7 +82,7 @@ review_docs: - git switch stable - git switch $CI_COMMIT_BRANCH script: - - ./build_docs.sh + - poetry run python -m sphinx . $BUILD_PATH cache: key: "$CI_PROJECT_ID__sphinx" paths: diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 66f450931..6e9bbe451 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -2,7 +2,7 @@ {% block document %} - {% if current_version.name == "develop" %} + {% if current_version and current_version.name == "develop" %}

Warning

This documentation only applies for the development version of diff --git a/public/index.html b/public/index.html new file mode 100644 index 000000000..e4927a5d3 --- /dev/null +++ b/public/index.html @@ -0,0 +1,17 @@ + + + + + + + + Page Redirection + + + + If you are not redirected automatically, follow this link. + + +