Skip to content

Commit

Permalink
all: unify page descriptions to use frontmatter (#47)
Browse files Browse the repository at this point in the history
Unify all page descriptions to use the TOML frontmatter instead of the
magic `<!--more-->` comment, allowing for funny tidbits that are hidden
on the page.

Signed-off-by: Luca Zeuch <[email protected]>
  • Loading branch information
l-zeuch authored Oct 2, 2024
1 parent 75fcb0f commit a843904
Show file tree
Hide file tree
Showing 40 changed files with 66 additions and 68 deletions.
5 changes: 2 additions & 3 deletions content/docs/core/all-commands.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
+++
title = 'All Commands'
title = "All Commands"
weight = 240
description = "List of all available commands offered by YAGPDB and their syntax."
+++

List of all available commands offered by YAGPDB and their syntax.

<!--more-->

## Legend

`<required arg>` `[optional arg]`
Expand Down
7 changes: 3 additions & 4 deletions content/docs/core/command-settings.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
+++
title = 'Command Settings'
title = "Command Settings"
weight = 230
description = "Configure command overrides to restrict access to YAGPDB commands and optional autodelete intervals."
+++

Fine-grained control over all of YAGPDB's inbuilt commands.

<!--more-->
Fine-grained control over all of YAGPDB's inbuild commands.

## Overview

Expand Down
7 changes: 2 additions & 5 deletions content/docs/core/control-panel-access.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
+++
title = 'Control Panel Access'
title = "Control Panel Access"
weight = 210
description = "Select who can view or edit your control panel."
+++

Select who can view or edit your control panel.

<!--more-->

This page is relatively simple, yet very powerful. An overview of the settings follows.

![Overview of the control panel access configuration page.](control_panel_access.png)
Expand Down
7 changes: 2 additions & 5 deletions content/docs/core/control-panel-logs.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
+++
title = 'Control Panel Logs'
title = "Control Panel Logs"
weight = 220
description = "View a list of recent changes to your YAGPDB configuration."
+++

View a list of recent changes to your YAGPDB configuration.

<!--more-->

This page is the analogue of the audit log built in to Discord for YAGPDB settings and summarizes recent edits on the
control panel, listing the time, action, and responsible user for each. It is useful to audit who may be responsible if
things go haywire, but other than that this page is unlikely to be of use.
Expand Down
5 changes: 2 additions & 3 deletions content/docs/custom-commands/commands.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
+++
title = 'Commands'
title = "Commands"
weight = 310
description = "Custom command settings and editor."
+++

The commands page displays all custom commands and allows you to add, delete, or edit custom commands and custom command
groups.

<!--more-->

![Overview of the Commands page.](command_overview.png)

<center>
Expand Down
5 changes: 2 additions & 3 deletions content/docs/custom-commands/database.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
+++
title = 'Database'
title = "Database"
weight = 320
description = "See what's in your custom command database."
+++

The Custom Command Database is used for persistent storage between custom command executions. The database page displays
all database entries created by custom commands, allowing you to view details on or delete individual entries.

<!--more-->

![Overview of the Database page.](overview_database.png)

<center>
Expand Down
5 changes: 2 additions & 3 deletions content/docs/fun/reputation.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
+++
title = 'Reputation'
title = "Reputation"
weight = 810
description = "Track and manage reputation points for users."
+++

The reputation system tracks each user's reputation score, and allows users to add or remove reputation points from
other users.

<!--more-->

## Setup

![Overview of the Reputation System](overview_reputation.png)
Expand Down
5 changes: 2 additions & 3 deletions content/docs/fun/soundboard.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
+++
title = 'Soundboard'
title = "Soundboard"
weight = 820
description = "Play sounds in voice channels with the soundboard system."
+++

The soundboard system allows the bot to join a voice channel, and play sounds triggered by soundboard commands.

<!--more-->

## Uploading New Sounds

### Name
Expand Down
7 changes: 2 additions & 5 deletions content/docs/moderation/basic-automoderator.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
+++
title = 'Basic Automoderator'
title = "Basic Automoderator"
weight = 420
description = "A very basic automoderator to get things done quickly."
+++

A very basic automoderator to get things done quickly.

<!--more-->

## Intro

Basic Automoderator lets you quickly set up _basic_ automoderation, without much fuss. For that reason, its
Expand Down
3 changes: 2 additions & 1 deletion content/docs/moderation/logging.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = 'Logging'
title = "Logging"
weight = 440
description = "On-demand message logging."
+++

Capture a moment in time with message logging of the last messages in a channel when the log is created, including a
Expand Down
3 changes: 1 addition & 2 deletions content/docs/moderation/moderation-tools.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
+++
title = "Moderation Tools"
weight = 410
description = "Everything in moderation, including moderation."
+++

Everything in moderation, including moderation.

<!--more-->

![Overview of the moderation page](overview_moderation.png)

<center>
Expand Down
5 changes: 2 additions & 3 deletions content/docs/moderation/verification.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
+++
title = 'Verification'
title = "Verification"
weight = 450
description = "Google reCAPTCHA v2 verification for new members."
+++

Use Google reCAPTCHA v2 to verify your members before permitting them access to your server.

<!--more-->

![Default Verification Page](page_verification.png)

The verification plugin assigns a specified role to new members after they successfully complete Google reCAPTCHA v2
Expand Down
5 changes: 2 additions & 3 deletions content/docs/notifications/general.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
+++
title = 'General'
title = "General"
weight = 510
description = "Welcome new users, announce when users leave, and more."
+++

General notifications such as a welcoming direct message, a message in the server when users join or leave, as well as a
simple message announcing when a channel's topic has changed.

<!--more-->

![Overview of general feeds](./general_overview.png)

### Join Message
Expand Down
3 changes: 2 additions & 1 deletion content/docs/notifications/reddit.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = 'Reddit'
title = "Reddit"
weight = 520
description = "Stalk Reddit without actually using Reddit."
+++

Get notifications from your favorite subreddits directly in your Discord server.
Expand Down
4 changes: 2 additions & 2 deletions content/docs/notifications/streaming.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
+++
title = 'Streaming'
title = "Streaming"
weight = 540
description = "Spam your server with notifications when someone starts streaming."
+++

Let everyone know that someone is currently streaming.

<!--more-->

### Streaming Feed

Expand Down
3 changes: 2 additions & 1 deletion content/docs/notifications/youtube.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = 'YouTube'
title = "YouTube"
weight = 530
description = "Subscribe to your favorite YouTubers without polluting your own feed."
+++

Get notifications from your favorite YouTubers directly in your Discord server.
Expand Down
3 changes: 2 additions & 1 deletion content/docs/reference/custom-command-examples.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = 'Custom Commands Examples'
title = "Custom Commands Examples"
weight = 920
description = "Copy-and-paste code, \"for education purposes only\"."
+++

Prebuilt custom commands for use as a learning reference.
Expand Down
5 changes: 2 additions & 3 deletions content/docs/reference/custom-commands-limits.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
+++
title = 'Custom Commands Limits'
title = "Custom Commands Limits"
weight = 930
description = "Limits? I'm at my limit!"
+++

Various limits in YAGPDB custom commands (CC) for smooth functioning of the bot and misuse prevention.

<!--more-->

## OVERALL

* **Max amount of CCs:** 100/250 (free/prem)
Expand Down
3 changes: 2 additions & 1 deletion content/docs/reference/custom-embeds.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = 'Custom Embeds'
title = "Custom Embeds"
weight = 940
description = "Be fancy, use embeds!"
+++

A guide to creating custom embeds in various contexts across YAGPDB.
Expand Down
3 changes: 2 additions & 1 deletion content/docs/reference/custom-interactions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = 'Custom Interactions'
title = "Custom Interactions"
weight = 950
description = "Even better than embeds!"
+++

Buttons, Modals, Select Menus, Ephemeral Messages, and more!
Expand Down
5 changes: 2 additions & 3 deletions content/docs/reference/how-to-get-ids.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
+++
title = 'How to Get IDs'
title = "How to Get IDs"
weight = 960
description = "Snowflake? ID? I don't know, but this page does!"
+++

Details on obtaining IDs for users, channels, roles, etc. for use within YAGPDB.

<!--more-->

**User IDs:** Can be found by mentioning the user then adding a \ such as `\@YAGPDB.xyz#8760` . Alternatively if you have developer mode on, you can right click and select Copy ID. [How to enable developer mode in Discord](https://support.discordapp.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-).

**Channel IDs:** Can be found by mentioning the channel then adding a \ such as `\#announcements`. Alternatively if you have developer mode on, you can right click on the channel and select Copy ID.
Expand Down
3 changes: 2 additions & 1 deletion content/docs/reference/regex.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = 'Using RegEx'
title = "Using RegEx"
weight = 970
description = "s/regex/dark voodoo/i"
+++

A quick overview of golang flavored RegEx for your convenience.
Expand Down
5 changes: 2 additions & 3 deletions content/docs/reference/templates/functions.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
+++
title = 'Functions'
title = "Functions"
weight = 912
description = "A list of all available functions in YAGPDB's custom command templates."
+++

Functions are used to take action within template scripts. Some functions accept arguments, and some functions return
values you can send in your response or use as arguments for other functions.

<!--more-->

----

## Channel
Expand Down
3 changes: 1 addition & 2 deletions content/docs/reference/templates/syntax-and-data.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
+++
title = "Syntax and Data"
weight = 911
description = "Available data in custom commands and a quick syntax refresher."
+++

Library of base data accessible within custom scripting.

<!--more-->

> "Go is all about type... Type is life." // William Kennedy
## Preface
Expand Down
4 changes: 2 additions & 2 deletions content/docs/tools-and-utilities/autorole.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
+++
title = 'Autorole'
title = "Autorole"
weight = 710
description = "Automatically assign roles to members when they join."
+++

<!--more-->

{{< callout context="note" title="Note" icon="outline/info-circle" >}}

Expand Down
3 changes: 2 additions & 1 deletion content/docs/tools-and-utilities/self-assignable-roles.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = 'Self Assignable Roles'
title = "Self Assignable Roles"
weight = 720
description = "how2 reaction role"
+++

<!--more-->
Expand Down
5 changes: 2 additions & 3 deletions content/docs/tools-and-utilities/tickets.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
+++
title = 'Tickets'
title = "Tickets"
weight = 730
description = "No ticket no entry"
+++

<!--more-->

Tickets let your members interact with your server staff in a private and more organized way. The bot will create a
dedicated channel that can only be seen by the staff and the member who created the ticket, with the option to add more
users as-needed.
Expand Down
1 change: 1 addition & 0 deletions content/docs/welcome/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = "Getting Started"
weight = 120
description = "The first steps to setting up YAGPDB on your server."
+++

> The hardest thing about getting started, is getting started. - Guy Kawasaki
Expand Down
1 change: 1 addition & 0 deletions content/docs/welcome/introduction.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = "Introduction"
weight = 110
description = "Start here!"
+++

> Documentation is for users. - Rob Pike
Expand Down
1 change: 1 addition & 0 deletions content/docs/welcome/premium.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = "Premium"
weight = 130
description = "Unlock additional features and functionality by supporting YAGPDB."
+++

YAGPDB provides added functionality to servers which are assigned a premium slot by a user. On the official instance of
Expand Down
1 change: 1 addition & 0 deletions content/learn/beginner/command-arguments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = "Command Arguments"
weight = 240
description = "Learn how to parse and validate arguments for custom commands."
+++

When we were starting to write Custom Commands, we stuck to a somewhat static custom command---one that doesn't take
Expand Down
1 change: 1 addition & 0 deletions content/learn/beginner/conditional-branching.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = "Conditional Branching"
weight = 230
description = "Learn how to make decisions in your custom commands using control flow."
+++

Until now, we have just written some linear code that executes from top to bottom. However, in real-world applications,
Expand Down
Loading

0 comments on commit a843904

Please sign in to comment.