aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/__init__.py
blob: f0702577247ce7f512626b35661b0919602f324c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import git
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.
VALIDATORS = []

# Git SHA
repo = git.Repo(search_parent_directories=True)
GIT_SHA = repo.head.object.hexsha