aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-09-30 14:15:42 +0200
committerGravatar Leon Sandøy <[email protected]>2019-09-30 14:15:42 +0200
commitccb42116ea4dd33819e2a89a084b79efe5595306 (patch)
tree568beea0189cd4ae7cec31b93e04cca494d55d6b
parentCreate superuser after doing migrations. (diff)
Monkeypatch in new HEADER_ID_PREFIX.
Currently, all toc-links will have a wiki-toc prefix. This commit removes this prefix, so that we can header link with just something like #environment instead of #wiki-toc-environment. This addresses #276. https://github.com/python-discord/site/issues/267
-rw-r--r--pydis_site/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pydis_site/__init__.py b/pydis_site/__init__.py
index e69de29b..c6146450 100644
--- a/pydis_site/__init__.py
+++ b/pydis_site/__init__.py
@@ -0,0 +1,4 @@
+from wiki.plugins.macros.mdx import toc
+
+# Remove the toc header prefix. There's no option for this, so we gotta monkey patch it.
+toc.HEADER_ID_PREFIX = ''