Wiki: Update tpl location, fix field align

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-07-25 14:28:08 +02:00
parent 1e3891bb67
commit 2df640bf35
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
3 changed files with 5 additions and 5 deletions

View file

@ -39,7 +39,7 @@ def main(args):
modules.append(mod) 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()) tpl = jinja2.Template(f.read())
print(tpl.render(modules=modules)) print(tpl.render(modules=modules))

View file

@ -6,8 +6,8 @@
Posts stream schedule derived from Twitch schedule as embed in Discord channel 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 | | `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) | | `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 | | `twitch_channel_id` | ✅ | string | | ID (not name) of the channel to fetch the schedule from |

View file

@ -7,8 +7,8 @@
{{ module.description }} {{ module.description }}
| Attribute | Required | Type | Default Value | Description | | Attribute | Req. | Type | Default Value | Description |
| --------- | -------- | ---- | ------------- | ----------- | | --------- | :--: | ---- | ------------- | ----------- |
{%- for attr in module.attributes %} {%- for attr in module.attributes %}
| `{{ attr.name }}` | {% if attr.required == 'required' %}{% endif %} | {{ attr.type }} | {% if attr.default != "" %}`{{ attr.default }}`{% endif %} | {{ attr.description }} | | `{{ attr.name }}` | {% if attr.required == 'required' %}{% endif %} | {{ attr.type }} | {% if attr.default != "" %}`{{ attr.default }}`{% endif %} | {{ attr.description }} |
{%- endfor %} {%- endfor %}