aboutsummaryrefslogtreecommitdiff
path: root/make_site.py
blob: 35cc333074161105092a9dc3113bb94b8ce0af09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python3
# coding: utf-8
#
# This file is in the public domain.
#
# This script runs the jinja2 templating engine on an input template-file
# using the specified locale for gettext translations, and outputs
# the resulting (HTML) ouptut-file.
#
# Note that the gettext files need to be prepared first. This script
# is thus to be invoked via the Makefile.
import jinja2
import sys
from pathlib import Path, PurePath

# Make sure the current directory is in the search path when trying
# to import i18nfix.
sys.path.insert(0, ".")

from sitegen.site import SiteGenerator


def main():
    x = SiteGenerator()
    x.run()

if __name__ == "__main__":
    main()