aboutsummaryrefslogtreecommitdiffstats
path: root/docs/pages
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-05-30 19:10:35 +0100
committerGravatar GitHub <[email protected]>2022-05-30 19:10:35 +0100
commit6659680429eec1dd0d45a6332a329a8b5e5a0d0b (patch)
treeb5b1c6133f8f56e4788d119c3c9378c670137054 /docs/pages
parentMerge pull request #78 from python-discord/bump-d.py (diff)
parentFix Bullet Points In Changelog (diff)
Merge pull request #79 from python-discord/upgrade-docsv7.1.1
Diffstat (limited to 'docs/pages')
-rw-r--r--docs/pages/index_redirect.html19
-rw-r--r--docs/pages/versions.html23
2 files changed, 42 insertions, 0 deletions
diff --git a/docs/pages/index_redirect.html b/docs/pages/index_redirect.html
new file mode 100644
index 00000000..3745c62c
--- /dev/null
+++ b/docs/pages/index_redirect.html
@@ -0,0 +1,19 @@
+{% extends "base.html" %}
+{% set pagename = master_doc %}
+
+{# Redirect users to the actual docs page #}
+{% block site_meta %}
+ {# Make sure this is loaded as early as possible #}
+ <script>window.location.replace("./main/index.html")</script>
+ {{ super() }}
+{% endblock %}
+
+{# Show some text in-case the redirection fails #}
+{% block body %}
+ {{ super() }}
+ <div style="display: flex; text-align: center; justify-content: center; align-items: center; height: 100%;">
+ <h2><a href="./main/index.html">
+ Please click here if you were not redirected to the latest build.
+ </a></h2>
+ </div>
+{% endblock %}
diff --git a/docs/pages/versions.html b/docs/pages/versions.html
new file mode 100644
index 00000000..f4564dbf
--- /dev/null
+++ b/docs/pages/versions.html
@@ -0,0 +1,23 @@
+{% extends "page.html" %}
+{% set title = "Versions" %}
+
+{% block content -%}
+ {% if versions %}
+ <h1>Versions</h1>
+ <dl>
+ <dt>Documentation is available for the following versions:</dt>
+ <dd><ul>
+ {# List all avaialble versions #}
+ {% for version in versions | reverse %}
+ <li>
+ <a class="reference internal" href="{{ version.url }}">{{ version.name }}</a>
+ {{ "(current)" if version == current_version }}
+ {{ "- latest" if version == latest_version }}
+ </li>
+ {% endfor %}
+ </ul></dd>
+ </dl>
+ {% else %}
+ <h1>No version information available!</h1>
+ {% endif %}
+{%- endblock %}