Documentation:

* no_duplicate documentation
* livechat_version_notice documentation
* fix typo in english string
This commit is contained in:
John Livingston 2024-09-11 10:30:17 +02:00
parent 4c84146cff
commit c2430856b4
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
4 changed files with 36 additions and 2 deletions

View File

@ -93,11 +93,17 @@ To facilitate translators work, avoid making too long paragraphs.
For now, it is not possible to use Markdown tables: the translation tools will break them.
{{% notice warning %}}
There may be links to documentation elsewhere on the web.
There may be links to this documentation elsewhere on the web.
Try not to change the urls of the documentation pages.
Or at the very least, put links to the new location on the previous url.
{{% /notice %}}
When a new feature is released, you can use the `livechat_version_notice` short code to display an infobox with the version with which the features is available.
This short code takes the version number as parameter.
Here is an example:
{{% livechat_version_notice 12.0.0 %}}
### What if I can't use hugo and/or po4a?
Just edit english markdown files, and specify that you can't build translations when you make your Pull Request.

View File

@ -0,0 +1,28 @@
---
title: "No duplicate message"
description: "The bot can automatically moderate duplicate messages."
weight: 12
chapter: false
---
## {{% livechat_label livechat_configuration_channel_no_duplicate_label %}}
{{% livechat_version_notice 12.0.0 %}}
### Configuration
{{% livechat_label livechat_configuration_channel_no_duplicate_desc %}}
![Screenshot of the channel options page, with several fields to configure the "No duplicate message" option.](/peertube-plugin-livechat/images/bot_no_duplicate.png?classes=shadow,border&height=400px "No duplicate message configuration")
#### {{% livechat_label livechat_configuration_channel_no_duplicate_delay_label %}}
{{% livechat_label livechat_configuration_channel_no_duplicate_delay_desc %}}
#### {{% livechat_label livechat_configuration_channel_retractation_reason_label %}}
{{% livechat_label livechat_configuration_channel_retractation_reason_desc %}}
#### {{% livechat_label livechat_configuration_applytomoderators_label %}}
{{% livechat_label livechat_configuration_applytomoderators_desc %}}

View File

@ -13,7 +13,7 @@ chapter: false
{{% livechat_label livechat_configuration_channel_special_chars_desc %}}
![Screenshot of the channel options page, with several fields to configure the option "Forbid special characters".](/peertube-plugin-livechat/images/forbid_special_chars_configuration.png?classes=shadow,border&height=400px "Forbid special characters configuration")
![Screenshot of the channel options page, with several fields to configure the "Forbid special characters" option.](/peertube-plugin-livechat/images/forbid_special_chars_configuration.png?classes=shadow,border&height=400px "Forbid special characters configuration")
#### {{% livechat_label livechat_configuration_channel_special_chars_tolerance_label %}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB