From ccb42116ea4dd33819e2a89a084b79efe5595306 Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Mon, 30 Sep 2019 14:15:42 +0200 Subject: 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 --- pydis_site/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pydis_site/__init__.py') 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 = '' -- cgit v1.2.3