mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-09 15:40:03 +00:00
Wiki: Update tpl location, fix field align
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1e3891bb67
commit
2df640bf35
3 changed files with 5 additions and 5 deletions
|
@ -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))
|
||||
|
||||
|
|
|
@ -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 |
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue