diff options
author | Florian Dold <florian@dold.me> | 2021-05-07 13:23:13 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-05-07 13:23:13 +0200 |
commit | aaf8e383ff6017e8cb57d1070c0042b68bdc026d (patch) | |
tree | 9b5895a5a46f9e199410ab91b857f9c08c1b7da7 /make_site.py | |
parent | efc06787a90652112e1446e349c72d2c30c7dd7a (diff) | |
download | www-aaf8e383ff6017e8cb57d1070c0042b68bdc026d.tar.gz www-aaf8e383ff6017e8cb57d1070c0042b68bdc026d.tar.bz2 www-aaf8e383ff6017e8cb57d1070c0042b68bdc026d.zip |
use generic site generation, use teaser helpers
Diffstat (limited to 'make_site.py')
-rwxr-xr-x | make_site.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/make_site.py b/make_site.py deleted file mode 100755 index 624be179..00000000 --- a/make_site.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/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, ".") -sys.path.insert(0, "inc/") - -from inc.site import SiteGenerator - - -def main(): - x = SiteGenerator() - x.gen_abstract("newsposts", "abstract", "page", 1000) - x.gen_newspost_content("newsposts", "content", "page", "en") - x.run() - -if __name__ == "__main__": - main() |