aboutsummaryrefslogtreecommitdiffstats
path: root/docs/_templates/base.html
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-05-30 20:49:08 +0400
committerGravatar GitHub <[email protected]>2022-05-30 20:49:08 +0400
commite86b72520acb7afb96718417ecb5c4454187ed45 (patch)
tree0b2cd47d9d8b7b864074f12a598371bbfead20cd /docs/_templates/base.html
parentMerge pull request #78 from python-discord/bump-d.py (diff)
parentFix Entry In Changelog (diff)
Merge pull request #1 from HassanAbouelela/upgrade-docs
Upgrade docs
Diffstat (limited to 'docs/_templates/base.html')
-rw-r--r--docs/_templates/base.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/_templates/base.html b/docs/_templates/base.html
new file mode 100644
index 00000000..541dbd0b
--- /dev/null
+++ b/docs/_templates/base.html
@@ -0,0 +1,12 @@
+{% extends "furo/base.html" %}
+
+{# Make sure the project name uses the correct version #}
+{% if versions %}
+ {% if current_version == latest_version %}
+ {% set docstitle = "Latest (" + current_version.version + ")" %}
+ {% else %}
+ {% set docstitle = current_version.name %}
+ {% endif %}
+
+ {% set docstitle = project + " " + docstitle %}
+{% endif %}