Skip to content

Commit

Permalink
Remove remaining references to wiki.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Sandøy committed Oct 4, 2020
1 parent 26cbd8a commit 92c0627
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
5 changes: 0 additions & 5 deletions pydis_site/__init__.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pydis_site/apps/home/templatetags/extra_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
```
Expand Down
18 changes: 9 additions & 9 deletions pydis_site/templates/base/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 92c0627

Please sign in to comment.