Add forward to stable, fix docs preview
This commit is contained in:
parent
3632e0cade
commit
6171b0b267
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue