diff options
author | 2020-10-04 18:01:29 +0200 | |
---|---|---|
committer | 2020-10-04 18:01:29 +0200 | |
commit | 92c0627860b586e1a6414b93835cf10e27399d20 (patch) | |
tree | f6f6ff086ed55300ef232d0655869e7f486e28eb | |
parent | Remove render_block tags. These no longer exist. (diff) |
Remove remaining references to wiki.
-rw-r--r-- | .coveragerc | 1 | ||||
-rw-r--r-- | docs/setup.md | 2 | ||||
-rw-r--r-- | pydis_site/__init__.py | 5 | ||||
-rw-r--r-- | pydis_site/apps/home/templatetags/extra_filters.py | 2 | ||||
-rw-r--r-- | pydis_site/templates/base/navbar.html | 18 |
5 files changed, 10 insertions, 18 deletions
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 </a> <div class="navbar-dropdown"> - <a class="navbar-item" href="{% url 'wiki:get' path="resources/" %}"> + <a class="navbar-item" href="#"> Resources </a> - <a class="navbar-item" href="{% url 'wiki:get' path="resources/tools/" %}"> + <a class="navbar-item" href="#"> Tools </a> - <a class="navbar-item" href="{% url 'wiki:get' path="contributing/" %}"> + <a class="navbar-item" href="#"> Contributing </a> - <a class="navbar-item" href="{% url 'wiki:get' path="frequently-asked-questions/" %}"> + <a class="navbar-item" href="#"> FAQ </a> - <a class="navbar-item" href="{% url 'wiki:get' path="rules/" %}"> + <a class="navbar-item" href="#"> Rules </a> - <a class="navbar-item" href="{% url 'wiki:get' path="code-of-conduct/" %}"> + <a class="navbar-item" href="#"> Code of Conduct </a> - <a class="navbar-item" href="{% url 'wiki:get' path="privacy/" %}"> + <a class="navbar-item" href="#"> Privacy </a> <hr class="navbar-divider"> <div class="navbar-item"> <strong>Events</strong> </div> - <a class="navbar-item" href="{% url 'wiki:get' path="code-jams/code-jam-7/" %}"> + <a class="navbar-item" href="#"> Most Recent: Code Jam 7 </a> - <a class="navbar-item" href="{% url 'wiki:get' path="events/" %}"> + <a class="navbar-item" href="#"> All events </a> <hr class="navbar-divider"> |