From 7b958950012a538ee2eeff50c7c8846e2cf74e06 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 25 Jul 2021 14:29:43 +0200 Subject: [PATCH] Wiki: Remove useless heading, sort modules Signed-off-by: Knut Ahlers --- ci/gendoc.py | 2 ++ wiki/Home.md | 6 ++---- wiki/Home.md.tpl | 6 ++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ci/gendoc.py b/ci/gendoc.py index bb80a3d..303989f 100644 --- a/ci/gendoc.py +++ b/ci/gendoc.py @@ -39,6 +39,8 @@ def main(args): modules.append(mod) + modules = sorted(modules, key=lambda m: m['type']) + with open('wiki/Home.md.tpl', 'r') as f: tpl = jinja2.Template(f.read()) print(tpl.render(modules=modules)) diff --git a/wiki/Home.md b/wiki/Home.md index 2e85ea2..f4ccecf 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -1,8 +1,6 @@ -# Discord-Community +# Modules -## Modules - -### schedule +## schedule Posts stream schedule derived from Twitch schedule as embed in Discord channel diff --git a/wiki/Home.md.tpl b/wiki/Home.md.tpl index 61c86af..a828f51 100644 --- a/wiki/Home.md.tpl +++ b/wiki/Home.md.tpl @@ -1,9 +1,7 @@ -# Discord-Community - -## Modules +# Modules {% for module in modules -%} -### {{ module.type }} +## {{ module.type }} {{ module.description }}