From 2df640bf355b0c8482cae0c87a01fdb8394e4ab8 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 25 Jul 2021 14:28:08 +0200 Subject: [PATCH] Wiki: Update tpl location, fix field align Signed-off-by: Knut Ahlers --- ci/gendoc.py | 2 +- wiki/Home.md | 4 ++-- wiki/Home.md.tpl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/gendoc.py b/ci/gendoc.py index c27d9cc..bb80a3d 100644 --- a/ci/gendoc.py +++ b/ci/gendoc.py @@ -39,7 +39,7 @@ def main(args): modules.append(mod) - with open('docs/Home.md.tpl', 'r') as f: + 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 e2e4027..2e85ea2 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -6,8 +6,8 @@ Posts stream schedule derived from Twitch schedule as embed in Discord channel -| Attribute | Required | Type | Default Value | Description | -| --------- | -------- | ---- | ------------- | ----------- | +| Attribute | Req. | Type | Default Value | Description | +| --------- | :--: | ---- | ------------- | ----------- | | `discord_channel_id` | ✅ | string | | ID of the Discord channel to post the message to | | `embed_title` | ✅ | string | | Title of the embed (used to find the managed post, must be unique for that channel) | | `twitch_channel_id` | ✅ | string | | ID (not name) of the channel to fetch the schedule from | diff --git a/wiki/Home.md.tpl b/wiki/Home.md.tpl index 3cf28d1..61c86af 100644 --- a/wiki/Home.md.tpl +++ b/wiki/Home.md.tpl @@ -7,8 +7,8 @@ {{ module.description }} -| Attribute | Required | Type | Default Value | Description | -| --------- | -------- | ---- | ------------- | ----------- | +| Attribute | Req. | Type | Default Value | Description | +| --------- | :--: | ---- | ------------- | ----------- | {%- for attr in module.attributes %} | `{{ attr.name }}` | {% if attr.required == 'required' %}✅{% endif %} | {{ attr.type }} | {% if attr.default != "" %}`{{ attr.default }}`{% endif %} | {{ attr.description }} | {%- endfor %}