From 9f9aa781b44243b57a43a7aa8ddfcb216984cfc8 Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Sun, 4 Oct 2020 15:36:57 +0200 Subject: Remove references to wiki from other apps. --- pydis_site/templates/base/base.html | 1 - 1 file changed, 1 deletion(-) (limited to 'pydis_site/templates/base') diff --git a/pydis_site/templates/base/base.html b/pydis_site/templates/base/base.html index 70426dc1..ab8c7760 100644 --- a/pydis_site/templates/base/base.html +++ b/pydis_site/templates/base/base.html @@ -1,6 +1,5 @@ {# Base template, with a few basic style definitions. #} {% load django_simple_bulma %} -{% load sekizai_tags %} {% load static %} -- cgit v1.2.3 From 26cbd8a8c71fdab6f80475ebfb84be73f7c8a716 Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Sun, 4 Oct 2020 15:38:02 +0200 Subject: Remove render_block tags. These no longer exist. --- pydis_site/templates/base/base.html | 2 -- 1 file changed, 2 deletions(-) (limited to 'pydis_site/templates/base') diff --git a/pydis_site/templates/base/base.html b/pydis_site/templates/base/base.html index ab8c7760..905d408c 100644 --- a/pydis_site/templates/base/base.html +++ b/pydis_site/templates/base/base.html @@ -33,7 +33,6 @@ {% block head %}{% endblock %} - {% render_block "css" %} @@ -60,6 +59,5 @@ {% include "base/footer.html" %} {% endblock %} -{% render_block "js" %} -- cgit v1.2.3 From 92c0627860b586e1a6414b93835cf10e27399d20 Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Sun, 4 Oct 2020 18:01:29 +0200 Subject: Remove remaining references to wiki. --- .coveragerc | 1 - docs/setup.md | 2 -- pydis_site/__init__.py | 5 ----- pydis_site/apps/home/templatetags/extra_filters.py | 2 +- pydis_site/templates/base/navbar.html | 18 +++++++++--------- 5 files changed, 10 insertions(+), 18 deletions(-) (limited to 'pydis_site/templates/base') diff --git a/.coveragerc b/.coveragerc index f5ddf08d..e2511cb9 100644 --- a/.coveragerc +++ b/.coveragerc @@ -6,7 +6,6 @@ source = pydis_site/apps/api pydis_site/apps/home pydis_site/apps/staff - pydis_site/apps/wiki omit = */migrations/* */admin.py diff --git a/docs/setup.md b/docs/setup.md index 18f5ee97..d992067e 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -79,8 +79,6 @@ Make sure you add the following to your hosts file: 127.0.0.1 api.pythondiscord.local 127.0.0.1 staff.pythondiscord.local 127.0.0.1 admin.pythondiscord.local -127.0.0.1 wiki.pythondiscord.local -127.0.0.1 ws.pythondiscord.local ``` When trying to access the site, you'll be using the domains above instead of the usual `localhost:8000`. diff --git a/pydis_site/__init__.py b/pydis_site/__init__.py index df67cf71..c15c59c8 100644 --- a/pydis_site/__init__.py +++ b/pydis_site/__init__.py @@ -1,8 +1,3 @@ -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 = '' - # Empty list of validators for Allauth to ponder over. This is referred to in settings.py # by a string because Allauth won't let us just give it a list _there_, we have to point # at a list _somewhere else_ instead. diff --git a/pydis_site/apps/home/templatetags/extra_filters.py b/pydis_site/apps/home/templatetags/extra_filters.py index d63b3245..89b45831 100644 --- a/pydis_site/apps/home/templatetags/extra_filters.py +++ b/pydis_site/apps/home/templatetags/extra_filters.py @@ -11,7 +11,7 @@ def starts_with(value: str, arg: str) -> bool: Usage: ```django - {% if request.url | starts_with:"/wiki" %} + {% if request.url | starts_with:"/events" %} ... {% endif %} ``` diff --git a/pydis_site/templates/base/navbar.html b/pydis_site/templates/base/navbar.html index c2915025..dd68949b 100644 --- a/pydis_site/templates/base/navbar.html +++ b/pydis_site/templates/base/navbar.html @@ -62,35 +62,35 @@ More