Skip to content

Commit 09e1a6a

Browse files
authored
chore: housekeeping (#590)
* fix: `door-breaking-difficulty` values, fix missing defaults * chore: bump dependencies * chore: turn off TOCs for configuration pages, add missing descriptions * fix: linking to config keys with special characters, config diagram border * chore: add Experimental badges to experimental API pages * fix: change sidebar badges
1 parent 196919e commit 09e1a6a

19 files changed

+371
-333
lines changed

astro.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ export default defineConfig({
138138
{
139139
label: "Command API",
140140
collapsed: true,
141+
badge: {
142+
text: "Experimental",
143+
variant: "danger",
144+
},
141145
items: [
142146
{
143147
label: "Basics",

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
},
1414
"dependencies": {
1515
"@astrojs/markdown-remark": "^6.3.1",
16-
"@astrojs/starlight": "^0.34.2",
16+
"@astrojs/starlight": "^0.34.3",
1717
"@astrojs/svelte": "^7.0.13",
1818
"@fontsource/jetbrains-mono": "^5.2.5",
1919
"@fontsource/poppins": "^5.2.6",
20-
"astro": "^5.7.10",
20+
"astro": "^5.7.11",
2121
"astro-d2": "^0.7.0",
2222
"sharp": "^0.34.1",
2323
"starlight-contributor-list": "^0.3.0",
@@ -31,7 +31,7 @@
3131
},
3232
"devDependencies": {
3333
"@types/mdast": "^4.0.4",
34-
"@types/node": "^22.15.3",
34+
"@types/node": "^22.15.16",
3535
"prettier": "3.5.3",
3636
"prettier-plugin-astro": "0.14.1",
3737
"prettier-plugin-organize-imports": "^4.1.0",
File renamed without changes.

pnpm-lock.yaml

Lines changed: 324 additions & 324 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
patchedDependencies:
2-
'@astrojs/[email protected].2': patches/@[email protected].2.patch
2+
'@astrojs/[email protected].3': patches/@[email protected].3.patch

src/components/ConfigNode.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const formatDefault = (value?: string): Default => {
5050
displayKey = `"${displayKey}"`;
5151
}
5252

53-
const childPath = [...path, key.replace(/-/g, "_")];
53+
const childPath = [...path, key.replace(/[-<> ]/g, "_")];
5454
const hasComma = json && i !== (entries.length - 1);
5555

5656
const { value, inline } = formatDefault(rawValue.default);
@@ -101,6 +101,7 @@ const formatDefault = (value?: string): Default => {
101101

102102
.node-root {
103103
padding: 1rem;
104+
border: 1px solid var(--sl-color-gray-5);
104105
background-color: var(--sl-color-gray-6);
105106
}
106107

src/config/paper/paper-world-defaults.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,16 @@ entities:
199199
Whether spiders should be able to climb on the world border, as if it
200200
were a regular wall.
201201
door-breaking-difficulty:
202-
default: "[HARD, NORMAL, EASY, PEACEFUL]"
203-
description: >-
204-
Takes a list of difficulties at which each entity will attempt to break
205-
doors
202+
vindicator:
203+
default: "[NORMAL, HARD]"
204+
description: >-
205+
A list of difficulties (PEACEFUL, EASY, NORMAL, HARD) at which vindicators will attempt to break doors.
206+
<entity-type>:
207+
default: "[HARD]"
208+
description: >-
209+
A list of difficulties (PEACEFUL, EASY, NORMAL, HARD) at which zombie-like entities
210+
(husks, zombies, zombie villagers and zombified piglins) will attempt to break doors.
211+
Defaults to *HARD*.
206212
ender-dragons-death-always-places-dragon-egg:
207213
default: "false"
208214
description: Controls whether ender dragons should always drop dragon eggs on death
@@ -797,6 +803,7 @@ feature-seeds:
797803
already set a seed to. Using this in a controlled environment is also a
798804
good way of receiving a full list of features you can set seeds for
799805
<feature-namespace>:
806+
default: -1
800807
description: >-
801808
Sets the population seed for the specified feature. If set to -1, the
802809
Vanilla population seed stays unchanged and will not be overridden by the
@@ -1047,6 +1054,7 @@ tick-rates:
10471054
entities
10481055
<entity-type>:
10491056
<behavior-name>:
1057+
default: -1
10501058
description: >-
10511059
Sets the behavior tick rate of an entity. -1 uses Vanilla. See timings
10521060
for the names. Might change between updates!
@@ -1088,6 +1096,7 @@ tick-rates:
10881096
entities
10891097
<entity-type>:
10901098
<sensor-name>:
1099+
default: -1
10911100
description: >-
10921101
Sets the sensor tick rate of an entity. -1 uses Vanilla. See timings
10931102
for the names. Might change between updates!

src/content/docs/paper/admin/reference/configuration/bukkit-commands-configuration.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: commands.yml
3+
description: An explanation of Bukkit's commands.yml file.
34
slug: paper/reference/bukkit-commands-configuration
5+
tableOfContents: false
46
---
57

68
import ConfigNode from "/src/components/ConfigNode.astro";

src/content/docs/paper/admin/reference/configuration/bukkit-configuration.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: bukkit.yml
33
description: An explanation of Bukkit's configuration file.
44
slug: paper/reference/bukkit-configuration
5+
tableOfContents: false
56
---
67

78
import ConfigNode from "/src/components/ConfigNode.astro";

src/content/docs/paper/admin/reference/configuration/bukkit-help-configuration.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: help.yml
3+
description: An explanation of Bukkit's help.yml file.
34
slug: paper/reference/bukkit-help-configuration
5+
tableOfContents: false
46
---
57

68
import ConfigNode from "/src/components/ConfigNode.astro";

0 commit comments

Comments
 (0)