Skip to content

Commit cda9101

Browse files
committed
all: lint markdown files
Signed-off-by: Luca Zeuch <[email protected]>
1 parent dc385fb commit cda9101

23 files changed

+244
-210
lines changed

.github/CONTRIBUTING.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ General support queries and possible bugs in YAGPDB are **not** in scope and wil
1010

1111
[support server]: https://discord.gg/4udtcA5
1212

13-
1413
## Submission Guide
1514

1615
Thanks for contributing to the YAGPDB documentation! Please take a moment to review this document in order to make the
@@ -45,7 +44,7 @@ this process below.
4544
In your local clone, install the required dependencies via NPM by running the following command:
4645

4746
```shellsession
48-
$ npm install
47+
npm install
4948
```
5049

5150
This will ensure that you can fully build the documentation site locally, including the custom syntax highlighting we
@@ -117,15 +116,15 @@ In order to preview your changes locally, you will need to run a local instance
117116
you have Node.js (and NPM) and Hugo installed, you can do so by running the following command:
118117

119118
```shellsession
120-
$ npm run dev
119+
npm run dev
121120
```
122121

123122
This will run a local server on `http://localhost:1313` that will automatically update whenever you save a file, though
124123
without our custom syntax highlighting. If you prefer to view the site as it would appear on production, run the
125124
following commands instead:
126125

127126
```shellsession
128-
$ npm run build && npm run preview
127+
npm run build && npm run preview
129128
```
130129

131130
This will build the site, execute the highlighting post-processor, and run a local server on `http://localhost:4173`.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!-- Please describe the changes this pull request does and why it should be merged -->
22

33
**Terms**
4+
45
- [ ] I have read and understood this project's [Contributing Guidelines](CONTRIBUTING.md)

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ Pages are written in Markdown with additional shortcodes provided by the Doks th
2626
documentation](<(https://getdoks.org/docs/start-here/getting-started/)>) for a complete list of features.
2727

2828
If you are editing pages related to custom commands, note that codeblocks support a custom `yag` language for accurate
29-
syntax highlighting—do not use `go`. However, this feature is only enabled in production builds for performance, so `npm run dev` will _not_ highlight `yag` codeblocks. Use `npm run build` followed by `npm run preview` instead if you need to verify
30-
that code is highlighted correctly.
29+
syntax highlighting—do not use `go`. However, this feature is only enabled in production builds for performance, so
30+
`npm run dev` will _not_ highlight `yag` codeblocks. Use `npm run build` followed by `npm run preview` instead if you
31+
need to verify that code is highlighted correctly.
3132

3233
> [!TIP]
3334
> If you use VSCode, this project provides custom workspace snippets to insert callouts, which you can activate in

content/discord.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
+++
2-
type = "redirect"
3-
target = "https://discord.gg/4udtcA5"
4-
title = "Discord"
5-
+++
1+
---
2+
type: redirect
3+
target: 'https://discord.gg/4udtcA5'
4+
title: 'Discord'
5+
---
66

7-
<!-- this file intentionally left blank -->
7+
<!--
8+
This file intentionally left blank.
9+
We use YAML front matter here instead of the usual TOML just so markdownlint can properly lint for blank URLs in other
10+
files without firing on this one.
11+
-->

content/docs/core/command-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Flags and switches are **_not_** affected by your prefix setting.
3939

4040
For example, if your prefix is `?`, a command usage with flags and/or switches is as follows:
4141

42-
```
42+
```txt
4343
?wouldyourather -raw
4444
```
4545

content/docs/custom-commands/commands.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,13 @@ You must specify a channel to run time-based commands in even if the command doe
283283

284284
A cron expression represents a set of times, using 5 space-separated fields.
285285

286-
Field name | Mandatory? | Allowed values | Allowed special characters
287-
-------------- | ---------- | -------------- | --------------------------
288-
Minutes | Yes | 0-59 | * / , -
289-
Hours | Yes | 0-23 | * / , -
290-
Day of month | Yes | 1-31 | * / , - ?
291-
Month | Yes | 1-12 or JAN-DEC | * / , -
292-
Day of week (DOW)| Yes | 0-6 or SUN-SAT | * / , - ?
286+
| Field name | Mandatory? | Allowed values | Allowed special characters |
287+
| -------------- | ---------- | -------------- | -------------------------- |
288+
| Minutes | Yes | 0-59 | * / , - |
289+
| Hours | Yes | 0-23 | * / , - |
290+
| Day of month | Yes | 1-31 | * / , - ? |
291+
| Month | Yes | 1-12 or JAN-DEC | * / , - |
292+
| Day of week (DOW)| Yes | 0-6 or SUN-SAT | * / , - ? |
293293

294294
To read more about the supported format of cron expressions, visit [Robfig's Cron package documentation - Expression
295295
Format](https://pkg.go.dev/github.com/robfig/cron/v3#hdr-CRON_Expression_Format).
@@ -302,7 +302,7 @@ on Corntab Guru, but are not supported with YAGPDB.
302302

303303
{{< /callout >}}
304304

305-
**Special Characters**
305+
###### Special Characters
306306

307307
- Asterisk ( * )
308308

content/docs/fun/soundboard.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Do **not** fill in the URL if you are going uploaded from local files, and vice
3232

3333
{{< /callout >}}
3434

35-
3635
You have two options to upload sounds:
3736

3837
- Upload with local files

content/docs/moderation/advanced-automoderator/triggers.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ This trigger will fire when a message matches the specified regular expression.[
156156
- **Also match visually similar characters**<br>
157157
Whether to also match visually similar characters, like `Ĥéĺĺó`. (Default: off)
158158

159-
160159
#### Message not matching Regex
161160

162161
The inverse of [Message matches Regex](#message-matches-regex). See there for configuration.
@@ -305,12 +304,11 @@ This trigger will fire when a message triggers Discord's Automod.
305304

306305
<!-- footnotes -->
307306

308-
[^1]: The regular expression used to match links is the following:
309-
<code>(?i)([a-z\d]+://)([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])</code>
307+
[^1]: The regular expression used to match links is the following:<br>
308+
``(?i)([a-z\d]+://)([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])``
310309

311310
[^2]: Under the hood, the bot will only check the last 1000 messages in the channel. If you have a high-traffic channel
312311
in combination with an extremely long time frame, the bot could (theoretically) miss some messages.
313312

314313
[^3]: The RegEx engine used in YAGPDB is RE2. Some features are not supported, like lookaheads and lookbehinds. See
315314
[regex101](https://regex101.com/?flavor=golang) for some help with writing RE2-compatible regular expressions.
316-

content/docs/moderation/moderation-tools.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,23 +112,30 @@ To remove the requirement and make the reason optional, you may toggle this on (
112112

113113
#### Moderation DMs
114114

115-
Moderation DMs are template scripts (**3**) which are executed within the offending user's DM. Text output to the response will
116-
be directly sent to the offending user.
115+
Moderation DMs are template scripts (**3**) which are executed within the offending user's DM. Text output to the
116+
response will be directly sent to the offending user.
117117

118118
{{< link-card href="/docs/reference/templates/syntax-and-data" description="Templates Reference" target="_blank" >}}
119119

120120
Additional template dot context data is available for Moderation Actions:
121121

122122
- `{{.Reason}}`: The reason specified in the timeout.
123-
- `{{.Author}}`: The author of the punishment, is a [user object](/docs/reference/templates/syntax-and-data#user).
124-
- `{{.Duration}}`: The duration of the mod action as a [time.Duration format](/docs/reference/templates/syntax-and-data#time).
123+
- `{{.Author}}`: The author of the punishment, is a [user object].
124+
- `{{.Duration}}`: The duration of the mod action as a [time.Duration format].
125125
- `{{.HumanDuration}}`: The duration in a human friendly format (`1 hour and 3 minutes` for example).
126126
- `{{.WarningID}}`: The ID of the warning (when using the warn command).
127127

128+
[user object]: /docs/reference/templates/syntax-and-data#user
129+
[time.Duration format]: /docs/reference/templates/syntax-and-data#time
130+
131+
{{< callout context="danger" title="Danger: Template Execution Errors" icon="outline/alert-octagon" >}}
132+
128133
Any errors which occur in the template execution will not be logged by default. The offending user will only receive a
129134
DM from your server saying **Failed executing template.** Setting a [Moderation DM Error channel](#mod-channels) allows
130135
for the more detailed errors to be captured.
131136

137+
{{< /callout >}}
138+
132139
Moderation actions which send DMs are:
133140

134141
- Timeout
@@ -273,8 +280,8 @@ You may optionally send warnings to the mod log, this is enabled in the warnings
273280

274281
[ClearWarnings Command Syntax](/docs/core/all-commands#clearwarnings) - Clears the warnings of a user.
275282

276-
[TopWarnings Command Syntax](/docs/core/all-commands#topwarnings) - Shows ranked list of warnings on the server, allowing you to turn
277-
misbehavior into a fun minigame for your server members.
283+
[TopWarnings Command Syntax](/docs/core/all-commands#topwarnings) - Shows ranked list of warnings on the server,
284+
allowing you to turn misbehavior into a fun minigame for your server members.
278285

279286
{{< callout context="tip" title="Tip: Taking Action on Warn Count" icon="outline/rocket" >}}
280287

content/docs/notifications/streaming.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ description = "Spam your server with notifications when someone starts streaming
66

77
Let everyone know that someone is currently streaming.
88

9-
109
### Streaming Feed
1110

1211
{{< callout context="note" title="Note: Announcements may not Post" icon="outline/info-circle" >}}

0 commit comments

Comments
 (0)