Documentation: new shortcode for livechat version notices.

This commit is contained in:
John Livingston 2024-09-10 12:02:40 +02:00
parent 071ee9f6b4
commit c65995e5fa
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
16 changed files with 27 additions and 45 deletions

View File

@ -660,3 +660,5 @@ livechat_configuration_channel_special_chars_desc: |
Special characters are those that don't fit into one of these categories: letters, numbers, punctuation symbols, currency symbols, emojis. Special characters are those that don't fit into one of these categories: letters, numbers, punctuation symbols, currency symbols, emojis.
livechat_configuration_channel_special_chars_tolerance_label: Tolerance livechat_configuration_channel_special_chars_tolerance_label: Tolerance
livechat_configuration_channel_special_chars_tolerance_desc: Number of special characters to accept before deleting messages. livechat_configuration_channel_special_chars_tolerance_desc: Number of special characters to accept before deleting messages.
features_comes_with: This feature comes with the livechat plugin version X.X.X.

View File

@ -619,3 +619,4 @@ prosody_firewall_name_desc: "Ne peut contenir que des caractères alphanumériqu
ordre alphabétique.\n" ordre alphabétique.\n"
prosody_firewall_content: Contenu du fichier prosody_firewall_content: Contenu du fichier
chat: Tchat chat: Tchat
features_comes_with: Cette fonctionnalité arrive avec le plugin livechat version X.X.X.

View File

@ -5,9 +5,7 @@ weight: 30
chapter: false chapter: false
--- ---
{{% notice info %}} {{% livechat_version_notice 11.0.0 %}}
This feature comes with the livechat plugin version 11.0.0.
{{% /notice %}}
You can enable [mod_firewall](https://modules.prosody.im/mod_firewall) on your Prosody server. You can enable [mod_firewall](https://modules.prosody.im/mod_firewall) on your Prosody server.

View File

@ -42,9 +42,7 @@ You must use valid CSS color values, and they must be properly URL encoded.
## OBS Dock ## OBS Dock
{{% notice info %}} {{% livechat_version_notice 10.1.0 %}}
This feature comes with the livechat plugin version 10.1.0.
{{% /notice %}}
{{% notice warning %}} {{% notice warning %}}
This feature can be disabled by the instance's adminitrators. This feature can be disabled by the instance's adminitrators.

View File

@ -7,9 +7,7 @@ chapter: false
## {{% livechat_label livechat_configuration_channel_special_chars_label %}} ## {{% livechat_label livechat_configuration_channel_special_chars_label %}}
{{% notice info %}} {{% livechat_version_notice 11.1.0 %}}
This feature comes with the livechat plugin version 11.1.0.
{{% /notice %}}
### Configuration ### Configuration

View File

@ -5,9 +5,7 @@ weight: 330
chapter: false chapter: false
--- ---
{{% notice info %}} {{% livechat_version_notice 10.1.0 %}}
This feature comes with the livechat plugin version 10.1.0.
{{% /notice %}}
## Channel emojis ## Channel emojis

View File

@ -5,9 +5,7 @@ weight: 335
chapter: false chapter: false
--- ---
{{% notice info %}} {{% livechat_version_notice 11.1.0 %}}
This feature comes with the livechat plugin version 11.1.0.
{{% /notice %}}
## {{% livechat_label emoji_only_mode_title %}} ## {{% livechat_label emoji_only_mode_title %}}

View File

@ -41,9 +41,7 @@ When you open the chat room in full screen, there will also be a menu with dedic
## {{% livechat_label livechat_configuration_channel_mute_anonymous_label %}} ## {{% livechat_label livechat_configuration_channel_mute_anonymous_label %}}
{{% notice info %}} {{% livechat_version_notice 10.2.0 %}}
This feature comes with the livechat plugin version 10.2.0.
{{% /notice %}}
You can prevent anonymous users to send messages. In such case, only registered users will be able to talk in the chat. You can prevent anonymous users to send messages. In such case, only registered users will be able to talk in the chat.
@ -75,9 +73,7 @@ You can promote users as moderators, if you need some help.
## {{% livechat_label livechat_configuration_channel_anonymize_moderation_label %}} ## {{% livechat_label livechat_configuration_channel_anonymize_moderation_label %}}
{{% notice info %}} {{% livechat_version_notice 11.0.0 %}}
This feature comes with the livechat plugin version 11.0.0.
{{% /notice %}}
It is possible to anonymize moderation actions, to avoid disclosing who is banning/kicking/… occupants. It is possible to anonymize moderation actions, to avoid disclosing who is banning/kicking/… occupants.
@ -88,9 +84,7 @@ You can choose to enable or disable this feature for new chatrooms on the [chann
## Participant message history search ## Participant message history search
{{% notice info %}} {{% livechat_version_notice 11.0.0 %}}
This feature comes with the livechat plugin version 11.0.0.
{{% /notice %}}
As a room admin or owner, you can search all messages sent by a given participant. As a room admin or owner, you can search all messages sent by a given participant.

View File

@ -5,9 +5,7 @@ weight: 325
chapter: false chapter: false
--- ---
{{% notice info %}} {{% livechat_version_notice 10.3.0 %}}
This feature comes with the livechat plugin version 10.3.0.
{{% /notice %}}
## Introduction ## Introduction

View File

@ -5,9 +5,7 @@ weight: 355
chapter: false chapter: false
--- ---
{{% notice info %}} {{% livechat_version_notice 11.0.0 %}}
This feature comes with the livechat plugin version 11.0.0.
{{% /notice %}}
## Introduction ## Introduction

View File

@ -5,9 +5,7 @@ weight: 340
chapter: false chapter: false
--- ---
{{% notice info %}} {{% livechat_version_notice 10.2.0 %}}
This feature comes with the livechat plugin version 10.2.0.
{{% /notice %}}
## Create a poll ## Create a poll

View File

@ -5,9 +5,7 @@ weight: 320
chapter: false chapter: false
--- ---
{{% notice info %}} {{% livechat_version_notice 8.3.0 %}}
This feature comes with the livechat plugin version 8.3.0.
{{% /notice %}}
## Introduction ## Introduction

View File

@ -5,9 +5,7 @@ weight: 350
chapter: false chapter: false
--- ---
{{% notice info %}} {{% livechat_version_notice 10.0.0 %}}
This feature comes with the livechat plugin version 10.0.0.
{{% /notice %}}
## Introduction ## Introduction

View File

@ -5,9 +5,7 @@ weight: 310
chapter: false chapter: false
--- ---
{{% notice info %}} {{% livechat_version_notice 10.2.0 %}}
This feature comes with the livechat plugin version 10.2.0.
{{% /notice %}}
## Configuration ## Configuration

View File

@ -59,9 +59,7 @@ To do so, just open the video on your instance (you can for example copy/paste t
## If you have a Peertube account on another Peertube instance ## If you have a Peertube account on another Peertube instance
{{% notice info %}} {{% livechat_version_notice 9.0.0 %}}
This feature comes with the livechat plugin version 9.0.0.
{{% /notice %}}
If you have a Peertube account, but not on the current instance, there is a "{{% livechat_label login_using_external_account %}}" button. If you have a Peertube account, but not on the current instance, there is a "{{% livechat_label login_using_external_account %}}" button.
This button will open a dialog where you can enter your Peertube instance URL. This button will open a dialog where you can enter your Peertube instance URL.

View File

@ -0,0 +1,9 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/notice.html" (dict
"page" .Page
"color" (.Get "color")
"content" (replace (i18n "features_comes_with") "X.X.X" ($.Get 0))
"icon" (.Get "icon" | default (.Get 2))
"style" ("info")
"title" (.Get "title" | default (.Get 1))
) }}