Skip to content

Commit 53970c1

Browse files
authored
Update MDX to v2 (#160)
* Update MDX to v2 * correct missed admonition
1 parent b816f52 commit 53970c1

36 files changed

+3698
-2751
lines changed

.yarn/patches/@docusaurus-plugin-content-docs-npm-2.4.0-318520a23a.patch renamed to .yarn/patches/@docusaurus-plugin-content-docs-npm-0.0.0-5566-e59592d84c.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/lib/constants.js b/lib/constants.js
2-
index f91e43f00e1f9160afa6a34ed1df71c90fe45a28..8fcc85616f59bfe08f5fd3e29a1bf68d157cc6e9 100644
2+
index f91e43f00e1f9160afa6a34ed1df71c90fe45a28..26547fc57dc6b902fef11bb52c9d9553cc892619 100644
33
--- a/lib/constants.js
44
+++ b/lib/constants.js
55
@@ -10,8 +10,8 @@ exports.VERSIONS_JSON_FILE = exports.VERSIONED_SIDEBARS_DIR = exports.VERSIONED_
@@ -15,7 +15,7 @@ index f91e43f00e1f9160afa6a34ed1df71c90fe45a28..8fcc85616f59bfe08f5fd3e29a1bf68d
1515
-exports.VERSIONS_JSON_FILE = 'versions.json';
1616
+exports.VERSIONED_BASE_DIR = 'docs/versioned';
1717
diff --git a/lib/versions/files.js b/lib/versions/files.js
18-
index deaadb4357a348c8071b70d72a3c6d9e4e61459f..33f7604f2b93d579169681504b3656453c633fec 100644
18+
index deaadb4357a348c8071b70d72a3c6d9e4e61459f..66f369dc5d98550299d3a5778de38be3f084ed31 100644
1919
--- a/lib/versions/files.js
2020
+++ b/lib/versions/files.js
2121
@@ -13,20 +13,20 @@ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
File renamed without changes.
File renamed without changes.

docs/misc/java-install.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Installing Java is a critical first step to using or developing plugins for Pape
88
Waterfall. This guide will walk you through the recommended installation steps for most major
99
platforms.
1010

11-
:::caution Do not use headless variants of Java!
11+
:::caution[Do not use headless variants of Java!]
1212

13-
There are `headless` variants of Java which usually have a suffix of `-headless` in their package name.
14-
Those variants miss required dependencies for Paper. Therefore, using them is not recommended.
13+
There are `headless` variants of Java which usually have a suffix of `-headless` in their package
14+
name. Those variants miss required dependencies for Paper. Therefore, using them is not recommended.
1515

1616
:::
1717

File renamed without changes.

docs/paper/admin/getting-started/adding-plugins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Plugins are the most powerful way to extend the functionality of Paper beyond th
99
files. Functionality added by plugins can range from making milk restore hunger or dead bushes grow,
1010
to adding entirely new and original game modes or items.
1111

12-
:::danger Malicious Plugins
12+
:::danger[Malicious Plugins]
1313

1414
Ensure you fully trust the source of any plugin before installing it. Plugins are given **full and
1515
unrestricted** access to not only your server but also the machine that it runs on. Because of this,
@@ -27,7 +27,7 @@ release on [GitHub](https://github.com). One of the best ways to find plugins is
2727
these sites directly but to search for plugins using a search engine. Searching for the function you
2828
desire followed by `Minecraft plugin` will often yield good results.
2929

30-
:::tip Spigot and Bukkit Plugins
30+
:::tip[Spigot and Bukkit Plugins]
3131

3232
Paper is compatible with both Spigot and Bukkit plugins. It's okay if a plugin does not explicitly
3333
mention Paper compatibility. It'll still work.

docs/paper/admin/getting-started/migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Migrating to or from Paper
55

66
It's simple to migrate your server to or from Paper. The steps below will help you get started.
77

8-
:::caution Backup your data before you start!
8+
:::caution[Backup your data before you start!]
99

1010
Before you begin, please ensure you have a full backup of your server.
1111

docs/paper/admin/how-to/aikars-flags.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ size of memory, even 500MB but modern Minecraft versions will not do well with s
1313
java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper.jar --nogui
1414
```
1515

16-
:::caution Do not allocate all of your available memory on a shared host!
16+
:::caution[Do not allocate all of your available memory on a shared host!]
1717

1818
When setting the Xms and Xmx values, if your host says you have 8000M memory, DO NOT USE 8000M!
1919
Minecraft (and Java) needs additional memory on top of that Xmx parameter. It is recommended to

docs/paper/admin/how-to/anti-xray.md renamed to docs/paper/admin/how-to/anti-xray.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /anti-xray
88
99
Paper includes an obfuscation-based Anti-Xray with two modes, configurable on a per world basis.
1010

11-
:::info Per World Configuration
11+
:::info[Per World Configuration]
1212

1313
If you aren't already familiar with per world configuration, please take a moment to familiarize
1414
yourself with the [Configuration Guide](configuration.md).
@@ -29,7 +29,7 @@ configuration in both the overworld and nether.
2929

3030
[^1]:
3131
Image design by `Oberfail`, initially posted in the
32-
[PaperMC Discord](https://discord.gg/papermc).
32+
[PaperMC Discord](https://discord.gg/papermc).
3333

3434
![Overworld Anti-Xray Comparison](assets/anti-xray-overworld.png)
3535
![Nether Anti-Xray Comparison](assets/anti-xray-nether.png)
@@ -40,7 +40,7 @@ by solid blocks will be hidden. Ores exposed to air in caves or water from a lak
4040
hidden. With `engine-mode: 2`, fake ores obstruct the view of real blocks. If `air` is added to
4141
`hidden-blocks`, `engine-mode: 2` will effectively hide all ores, even those exposed to air.
4242

43-
:::caution Anti-Xray Bypasses
43+
:::caution[Anti-Xray Bypasses]
4444

4545
**Range Extension**: While Anti-Xray alone will prevent the majority of users from Xraying on your
4646
server, it is not by any means infallible. Because of how Anti-Xray is (and has to be) implemented,
@@ -68,7 +68,7 @@ some players.
6868

6969
The recommended configuration for both `engine-mode: 1` and `engine-mode: 2` is as follows:
7070

71-
:::tip Spacing
71+
:::tip[Spacing]
7272

7373
YAML cares about whitespace! The example configuration below is already formatted correctly. Ensure
7474
formatting and indentation remains unchanged by using the "copy" button in the top right of each
@@ -85,7 +85,7 @@ other important changes, it is recommended to make a backup before editing it.
8585

8686
Replace the existing `anticheat.anti-xray` block in `paper-world-defaults.yml` with the following:
8787

88-
<!-- prettier-ignore -->
88+
{/* prettier-ignore */}
8989
```yaml title="paper-world-defaults.yml"
9090
anticheat:
9191
anti-xray:
@@ -132,7 +132,7 @@ anticheat:
132132
Copy and paste into your `paper-world.yml` within your nether world folder. See the
133133
[Configuration Guide](configuration.md) for more information.
134134

135-
<!-- prettier-ignore -->
135+
{/* prettier-ignore */}
136136
```yml title="world_nether/paper-world.yml"
137137
anticheat:
138138
anti-xray:
@@ -159,7 +159,7 @@ anticheat:
159159
Copy and paste into your `paper-world.yml` within your end world folder. See the
160160
[Configuration Guide](configuration.md) for more information.
161161

162-
<!-- prettier-ignore -->
162+
{/* prettier-ignore */}
163163
```yml title="world_the_end/paper-world.yml"
164164
anticheat:
165165
anti-xray:
@@ -176,7 +176,7 @@ anticheat:
176176

177177
Replace the existing `anticheat.anti-xray` block in `paper-world-defaults.yml` with the following:
178178

179-
<!-- prettier-ignore -->
179+
{/* prettier-ignore */}
180180
```yaml title="paper-world-defaults.yml"
181181
anticheat:
182182
anti-xray:
@@ -239,7 +239,7 @@ anticheat:
239239
Copy and paste into your `paper-world.yml` within your nether world folder. See the
240240
[Configuration Guide](configuration.md) for more information.
241241

242-
<!-- prettier-ignore -->
242+
{/* prettier-ignore */}
243243
```yml title="world_nether/paper-world.yml"
244244
anticheat:
245245
anti-xray:
@@ -278,7 +278,7 @@ anticheat:
278278
Copy and paste into your `paper-world.yml` within your end world folder. See the
279279
[Configuration Guide](configuration.md) for more information.
280280

281-
<!-- prettier-ignore -->
281+
{/* prettier-ignore */}
282282
```yml title="world_the_end/paper-world.yml"
283283
anticheat:
284284
anti-xray:

0 commit comments

Comments
 (0)