Home Download Direct linkSettings
Aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Copy
from pathlib import Path

DIR_DESCR_FILENAME = ".about.html"

CONTENT_SUFFIXES = [".html", ".j2"]
TEXT_SOURCE_SUFFIXES = [".html", ".j2", ".css", ".js", ".py", ".txt", ""]
SOURCE_SUFFIXES = TEXT_SOURCE_SUFFIXES + [".webm", ".png", ".svg"]

PYGMENTS_BUILTIN_STYLES = [
    "gruvbox-dark", "gruvbox-light", "github-dark", "vim", "algol",
    "friendly_grayscale", "monokai", "zenburn", "material", "one-dark",
    "default"
]

ROOT_DIR = Path(__file__).parent.parent
CODE_STYLES_DIR = ROOT_DIR / "static" / "css" / "code_styles"