Add forward to stable, fix docs preview

This commit is contained in:
Georg Krause 2022-03-10 11:05:25 +01:00
parent 3632e0cade
commit 6171b0b267
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
3 changed files with 19 additions and 2 deletions

View File

@ -82,7 +82,7 @@ review_docs:
- git switch stable - git switch stable
- git switch $CI_COMMIT_BRANCH - git switch $CI_COMMIT_BRANCH
script: script:
- ./build_docs.sh - poetry run python -m sphinx . $BUILD_PATH
cache: cache:
key: "$CI_PROJECT_ID__sphinx" key: "$CI_PROJECT_ID__sphinx"
paths: paths:

View File

@ -2,7 +2,7 @@
{% block document %} {% block document %}
{% if current_version.name == "develop" %} {% if current_version and current_version.name == "develop" %}
<div class="admonition warning"> <div class="admonition warning">
<p class="admonition-title">Warning</p> <p class="admonition-title">Warning</p>
<p>This documentation only applies for the development version of <p>This documentation only applies for the development version of

17
public/index.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE HTML>
<!-- This file makes sure user get automatically forwarded to the stable documentation. -->
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=stable/index.html">
<script type="text/javascript">
window.location.href = "stable/index.html"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
If you are not redirected automatically, follow this <a href='stable/index.html'>link</a>.
</body>
</html>