summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------inc0
-rwxr-xr-xmake_site.py25
-rw-r--r--template/news/2014-11.html.j2 (renamed from news/2014-11.html.j2)0
-rw-r--r--template/news/2014-12.html.j2 (renamed from news/2014-12.html.j2)0
-rw-r--r--template/news/2015-02.html.j2 (renamed from news/2015-02.html.j2)0
-rw-r--r--template/news/2015-11.html.j2 (renamed from news/2015-11.html.j2)0
-rw-r--r--template/news/2015-12.html.j2 (renamed from news/2015-12.html.j2)0
-rw-r--r--template/news/2016-06.html.j2 (renamed from news/2016-06.html.j2)0
-rw-r--r--template/news/2016-08.html.j2 (renamed from news/2016-08.html.j2)0
-rw-r--r--template/news/2016-09.html.j2 (renamed from news/2016-09.html.j2)0
-rw-r--r--template/news/2016-10.html.j2 (renamed from news/2016-10.html.j2)0
-rw-r--r--template/news/2016-12.html.j2 (renamed from news/2016-12.html.j2)0
-rw-r--r--template/news/2017-01.html.j2 (renamed from news/2017-01.html.j2)0
-rw-r--r--template/news/2017-02.html.j2 (renamed from news/2017-02.html.j2)0
-rw-r--r--template/news/2017-03.html.j2 (renamed from news/2017-03.html.j2)0
-rw-r--r--template/news/2017-04.html.j2 (renamed from news/2017-04.html.j2)0
-rw-r--r--template/news/2017-08.html.j2 (renamed from news/2017-08.html.j2)0
-rw-r--r--template/news/2017-10.html.j2 (renamed from news/2017-10.html.j2)0
-rw-r--r--template/news/2018-04.html.j2 (renamed from news/2018-04.html.j2)0
-rw-r--r--template/news/2019-12.html.j2 (renamed from news/2019-12.html.j2)0
-rw-r--r--template/news/2020-03.html.j2 (renamed from news/2020-03.html.j2)0
-rw-r--r--template/news/2020-04.html.j2 (renamed from news/2020-04.html.j2)0
-rw-r--r--template/news/2020-07.html.j2 (renamed from news/2020-07.html.j2)0
-rw-r--r--template/news/2020-09.html.j2 (renamed from news/2020-09.html.j2)0
-rw-r--r--template/news/2020-10.html.j2 (renamed from news/2020-10.html.j2)0
-rw-r--r--template/news/2020-11.html.j2 (renamed from news/2020-11.html.j2)0
-rw-r--r--template/news/2020-12.html.j2 (renamed from news/2020-12.html.j2)0
-rw-r--r--template/news/2021-01.html.j2 (renamed from news/2021-01.html.j2)0
-rw-r--r--template/news/2021-02.html.j2 (renamed from news/2021-02.html.j2)0
-rw-r--r--template/news/2021-03.html.j2 (renamed from news/2021-03.html.j2)0
-rw-r--r--template/news/index.html.j2 (renamed from news/index.html.j2)0
31 files changed, 1 insertions, 24 deletions
diff --git a/inc b/inc
-Subproject 1e9e7661a47f73d0cd2d8889d4d6e5f8f7eca09
+Subproject d92f6d37ed9fc605b517aafe614618369209a66
diff --git a/make_site.py b/make_site.py
index 3397844..95a114d 100755
--- a/make_site.py
+++ b/make_site.py
@@ -29,36 +29,13 @@ env = jinja2.Environment(loader=jinja2.FileSystemLoader(str(PurePath(__file__).p
autoescape=False)
env.newstyle_gettext = True
-if len(sys.argv) >= 2 and sys.argv[1] == "-vv":
- DEBUG=1
-elif len(sys.argv) >= 2 and sys.argv[1] == "-vvv":
- DEBUG=2
-elif len(sys.argv) >= 2 and sys.argv[1] == "-vvvv":
- DEBUG=3
-else:
- DEBUG=0
-
def main():
- x = gen_site(DEBUG)
+ x = gen_site(0)
conf = x.load_config("www.yml")
x.gen_abstract(conf, "newsposts", "abstract", "page", 1000)
x.gen_newspost_content(conf, "newsposts", "content", "page", "en")
x.gen_rss("inc", conf, env)
- if DEBUG:
- print("generating html from jinja2 templates...")
x.run("template", conf, env)
- if DEBUG >= 2:
- print(Path.cwd())
- _ = Path("rendered")
- for child in _.iterdir():
- print(child)
- if DEBUG >= 2:
- print(Path.cwd())
- if DEBUG:
- print("generating html from jinja2 news templates...")
- x.run("news", conf, env)
- if DEBUG:
- print("copying directories...")
x.copy_trees("static")
x.copy_trees("dist")
diff --git a/news/2014-11.html.j2 b/template/news/2014-11.html.j2
index 0280963..0280963 100644
--- a/news/2014-11.html.j2
+++ b/template/news/2014-11.html.j2
diff --git a/news/2014-12.html.j2 b/template/news/2014-12.html.j2
index f3638c7..f3638c7 100644
--- a/news/2014-12.html.j2
+++ b/template/news/2014-12.html.j2
diff --git a/news/2015-02.html.j2 b/template/news/2015-02.html.j2
index efdcf37..efdcf37 100644
--- a/news/2015-02.html.j2
+++ b/template/news/2015-02.html.j2
diff --git a/news/2015-11.html.j2 b/template/news/2015-11.html.j2
index 92cb94a..92cb94a 100644
--- a/news/2015-11.html.j2
+++ b/template/news/2015-11.html.j2
diff --git a/news/2015-12.html.j2 b/template/news/2015-12.html.j2
index f443e61..f443e61 100644
--- a/news/2015-12.html.j2
+++ b/template/news/2015-12.html.j2
diff --git a/news/2016-06.html.j2 b/template/news/2016-06.html.j2
index 0a19549..0a19549 100644
--- a/news/2016-06.html.j2
+++ b/template/news/2016-06.html.j2
diff --git a/news/2016-08.html.j2 b/template/news/2016-08.html.j2
index e0e303d..e0e303d 100644
--- a/news/2016-08.html.j2
+++ b/template/news/2016-08.html.j2
diff --git a/news/2016-09.html.j2 b/template/news/2016-09.html.j2
index c1a9151..c1a9151 100644
--- a/news/2016-09.html.j2
+++ b/template/news/2016-09.html.j2
diff --git a/news/2016-10.html.j2 b/template/news/2016-10.html.j2
index 5c7ce4f..5c7ce4f 100644
--- a/news/2016-10.html.j2
+++ b/template/news/2016-10.html.j2
diff --git a/news/2016-12.html.j2 b/template/news/2016-12.html.j2
index 43533ae..43533ae 100644
--- a/news/2016-12.html.j2
+++ b/template/news/2016-12.html.j2
diff --git a/news/2017-01.html.j2 b/template/news/2017-01.html.j2
index 6708b3c..6708b3c 100644
--- a/news/2017-01.html.j2
+++ b/template/news/2017-01.html.j2
diff --git a/news/2017-02.html.j2 b/template/news/2017-02.html.j2
index 41d5355..41d5355 100644
--- a/news/2017-02.html.j2
+++ b/template/news/2017-02.html.j2
diff --git a/news/2017-03.html.j2 b/template/news/2017-03.html.j2
index 198eba3..198eba3 100644
--- a/news/2017-03.html.j2
+++ b/template/news/2017-03.html.j2
diff --git a/news/2017-04.html.j2 b/template/news/2017-04.html.j2
index 9162807..9162807 100644
--- a/news/2017-04.html.j2
+++ b/template/news/2017-04.html.j2
diff --git a/news/2017-08.html.j2 b/template/news/2017-08.html.j2
index d505daa..d505daa 100644
--- a/news/2017-08.html.j2
+++ b/template/news/2017-08.html.j2
diff --git a/news/2017-10.html.j2 b/template/news/2017-10.html.j2
index e9d847e..e9d847e 100644
--- a/news/2017-10.html.j2
+++ b/template/news/2017-10.html.j2
diff --git a/news/2018-04.html.j2 b/template/news/2018-04.html.j2
index 4fdba8d..4fdba8d 100644
--- a/news/2018-04.html.j2
+++ b/template/news/2018-04.html.j2
diff --git a/news/2019-12.html.j2 b/template/news/2019-12.html.j2
index 1bab9a4..1bab9a4 100644
--- a/news/2019-12.html.j2
+++ b/template/news/2019-12.html.j2
diff --git a/news/2020-03.html.j2 b/template/news/2020-03.html.j2
index 2410b67..2410b67 100644
--- a/news/2020-03.html.j2
+++ b/template/news/2020-03.html.j2
diff --git a/news/2020-04.html.j2 b/template/news/2020-04.html.j2
index 3468f0b..3468f0b 100644
--- a/news/2020-04.html.j2
+++ b/template/news/2020-04.html.j2
diff --git a/news/2020-07.html.j2 b/template/news/2020-07.html.j2
index a16afaa..a16afaa 100644
--- a/news/2020-07.html.j2
+++ b/template/news/2020-07.html.j2
diff --git a/news/2020-09.html.j2 b/template/news/2020-09.html.j2
index 438ee5d..438ee5d 100644
--- a/news/2020-09.html.j2
+++ b/template/news/2020-09.html.j2
diff --git a/news/2020-10.html.j2 b/template/news/2020-10.html.j2
index 35ab839..35ab839 100644
--- a/news/2020-10.html.j2
+++ b/template/news/2020-10.html.j2
diff --git a/news/2020-11.html.j2 b/template/news/2020-11.html.j2
index d29c308..d29c308 100644
--- a/news/2020-11.html.j2
+++ b/template/news/2020-11.html.j2
diff --git a/news/2020-12.html.j2 b/template/news/2020-12.html.j2
index b976283..b976283 100644
--- a/news/2020-12.html.j2
+++ b/template/news/2020-12.html.j2
diff --git a/news/2021-01.html.j2 b/template/news/2021-01.html.j2
index 517af76..517af76 100644
--- a/news/2021-01.html.j2
+++ b/template/news/2021-01.html.j2
diff --git a/news/2021-02.html.j2 b/template/news/2021-02.html.j2
index 189adf3..189adf3 100644
--- a/news/2021-02.html.j2
+++ b/template/news/2021-02.html.j2
diff --git a/news/2021-03.html.j2 b/template/news/2021-03.html.j2
index 6f4ddfa..6f4ddfa 100644
--- a/news/2021-03.html.j2
+++ b/template/news/2021-03.html.j2
diff --git a/news/index.html.j2 b/template/news/index.html.j2
index 207fa80..207fa80 100644
--- a/news/index.html.j2
+++ b/template/news/index.html.j2