Skip to content

Commit b604b12

Browse files
authored
Package updates & document team-alias (#281)
Signed-off-by: Pear <20259871+TheRealPear@users.noreply.github.com>
1 parent 70f518e commit b604b12

File tree

9 files changed

+623
-589
lines changed

9 files changed

+623
-589
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
fetch-depth: 0
2424
- name: Set up Node
25-
uses: actions/setup-node@v5
25+
uses: actions/setup-node@v6
2626
with:
2727
node-version: 22
2828
cache: npm
@@ -55,4 +55,4 @@ jobs:
5555
steps:
5656
- name: Deploy to GitHub Pages
5757
id: deployment
58-
uses: actions/deploy-pages@v4
58+
uses: actions/deploy-pages@v4

docs/modules/mechanics/actions-triggers.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ In the future, some features that are currently used in Kits may be transferred
2929
| `<replace-item> </replace-item>` | Finds and replaces certain items. |
3030
| `<enchant-item> </enchant-item>` | Enchants the targeted item. |
3131
| `<take-payment> </take-payment>` | Allow players to pay with items in their inventory to trigger an action. |
32+
| `<team-alias/> ` | Dynamically change a team's name during a match. |
3233
| `<velocity/>` | A player-scoped kit that applies velocity to the player. |
3334
| `<teleport/>` | Teleport a player to a specific location. |
3435
| `<weather/>` | The weather to set for the map's environment. |
@@ -198,6 +199,13 @@ In the future, some features that are currently used in Kits may be transferred
198199
| `price` | The amount of a currency needed to purchase. | <span className="badge badge--primary">Number</span> |
199200
| `currency` | The currency needed to purchase. | [Filter](/docs/modules/mechanics/filters) |
200201

202+
### Team-Alias Attributes
203+
204+
| Attribute | Description | Value |
205+
|---|---|---|
206+
| `team` | The team for the action to rename.<br />**Note:** This is required if the action's scope is `match`; otherwise, the team will be assumed. | [Team ID](/docs/modules/format/teams) |
207+
| `alias` | The new team's name. | <span className="badge badge--primary">String</span> |
208+
201209
### Velocity & Teleport Attributes
202210

203211
| Attribute | Description | Value |

docusaurus.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ const config = {
44
tagline: 'Documentation for PGM, the original Minecraft PvP Game Manager',
55
url: 'https://pgm.dev/',
66
baseUrl: '/',
7-
onBrokenLinks: 'throw',
8-
onBrokenMarkdownLinks: 'warn',
97
favicon: 'img/favicon.png',
108
organizationName: 'PGMDev',
119
projectName: 'Website',

package-lock.json

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

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,22 @@
2020
"write-heading-ids": "docusaurus write-heading-ids"
2121
},
2222
"dependencies": {
23-
"@docusaurus/core": "^3.9.1",
24-
"@docusaurus/plugin-client-redirects": "^3.9.1",
25-
"@docusaurus/preset-classic": "^3.9.1",
26-
"@docusaurus/theme-classic": "^3.9.1",
23+
"@docusaurus/core": "^3.9.2",
24+
"@docusaurus/plugin-client-redirects": "^3.9.2",
25+
"@docusaurus/preset-classic": "^3.9.2",
26+
"@docusaurus/theme-classic": "^3.9.2",
2727
"@fortawesome/fontawesome-svg-core": "^7.1.0",
2828
"@fortawesome/free-solid-svg-icons": "^7.1.0",
2929
"@fortawesome/react-fontawesome": "^3.1.0",
3030
"@mdx-js/react": "^3.1.1",
31-
"classnames": "^2.5.1",
3231
"clsx": "^2.1.1",
3332
"date-fns": "^4.1.0",
3433
"prism-react-renderer": "^2.4.1",
35-
"react": "^19.1.1",
34+
"react": "^19.2.0",
3635
"react-dom": "^19.2.0"
3736
},
3837
"devDependencies": {
39-
"@docusaurus/module-type-aliases": "^3.8.1"
38+
"@docusaurus/module-type-aliases": "^3.9.2"
4039
},
4140
"browserslist": {
4241
"production": [
@@ -51,6 +50,6 @@
5150
]
5251
},
5352
"engines": {
54-
"node": ">=18.0"
53+
"node": ">=22.0"
5554
}
5655
}

src/components/materials/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useRef, useEffect } from "react";
22

3-
import classnames from "classnames";
3+
import clsx from "clsx";
44
import styles from "./styles.module.css";
55

66
let parsedRowData = null;
@@ -162,7 +162,7 @@ const Materials = ({ children }) => {
162162
return (
163163
<>
164164
<form role="search">
165-
<div className={classnames(styles.search)}>
165+
<div className={clsx(styles.search)}>
166166
<input
167167
ref={searchField}
168168
onChange={() => doMaterialSearch(searchField, resultCount)}

src/css/custom.css

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
border-radius: 8px;
3838
}
3939

40+
/* TODO: clean up all table-related css and use ifm variables in the future */
4041
table {
4142
display: table;
4243
width: 100%;
@@ -56,7 +57,6 @@ table tr {
5657
}
5758

5859
table th {
59-
background-color: rgb(72, 77, 91, 0.1);
6060
padding: 6px;
6161
}
6262

@@ -67,21 +67,12 @@ table tbody tr th {
6767
table td {
6868
padding-top: 3px;
6969
padding-bottom: 3px;
70-
background-color: rgb(72, 77, 91, 0);
7170
}
7271

7372
table th, table td {
7473
border: none;
7574
}
7675

77-
table tr:nth-child(even) td {
78-
border-color: rgb(72, 77, 91, 0.1);
79-
}
80-
81-
table tr:nth-child(odd) td {
82-
border-color: rgb(72, 77, 91, 0.1);
83-
}
84-
8576
/* All code and label elements which have a td parent */
8677
table > tbody > tr > td > code,label {
8778
display: block;

src/pages/downloads/index.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
faUsers,
1515
} from "@fortawesome/free-solid-svg-icons";
1616

17-
import classnames from "classnames";
17+
import clsx from "clsx";
1818
import styles from "./styles.module.css";
1919

2020
export default function Downloads() {
@@ -34,18 +34,18 @@ export default function Downloads() {
3434

3535
return (
3636
<Layout title="Downloads">
37-
<div className={classnames("container", styles.downloads_container)}>
37+
<div className={clsx("container", styles.downloads_container)}>
3838
<h1 className={styles.downloads_title}>Downloads</h1>
3939
{releases.length === 0 ? (
40-
<div className={classnames("hero", styles.spinner_hero)}>
40+
<div className={clsx("hero", styles.spinner_hero)}>
4141
<div className={styles.lds_ripple}>
4242
<div></div>
4343
<div></div>
4444
</div>
4545
</div>
4646
) : (
4747
<div
48-
className={classnames(
48+
className={clsx(
4949
"hero",
5050
styles.downloads_hero,
5151
styles.appearing
@@ -88,9 +88,9 @@ export default function Downloads() {
8888
Minecraft multiplayer.
8989
</p>
9090
<div className="text--center">
91-
<div className={classnames(styles.download_button_wrapper)}>
91+
<div className={clsx(styles.download_button_wrapper)}>
9292
<a
93-
className={classnames(
93+
className={clsx(
9494
"button button--primary",
9595
styles.download_button
9696
)}
@@ -105,17 +105,17 @@ export default function Downloads() {
105105
</a>
106106
</div>
107107
</div>
108-
<div className={classnames("col col--4", styles.col_margin_left)}>
108+
<div className={clsx("col col--4", styles.col_margin_left)}>
109109
<h2>Download SportPaper</h2>
110110
<p>
111111
SportPaper is a 1.8 Paper fork tuned
112112
for maximum performance and high-intensity PvP. It is
113113
recommended for use with PGM.
114114
</p>
115115
<div className="text--center">
116-
<div className={classnames(styles.download_button_wrapper)}>
116+
<div className={clsx(styles.download_button_wrapper)}>
117117
<a
118-
className={classnames(
118+
className={clsx(
119119
"button button--primary",
120120
styles.download_button
121121
)}
@@ -136,8 +136,8 @@ export default function Downloads() {
136136
<div className={styles.others}>
137137
<h2 style={{ marginBottom: "-15px" }}>Other Resources</h2>
138138
<div className="row">
139-
<div className={classnames("col col--6", styles.column)}>
140-
<div className={classnames("hero", styles.others_hero)}>
139+
<div className={clsx("col col--6", styles.column)}>
140+
<div className={clsx("hero", styles.others_hero)}>
141141
<div className="col">
142142
<div className="row">
143143
<div className="col col--6">
@@ -153,7 +153,7 @@ export default function Downloads() {
153153
</div>
154154
<div className="col col--6 text--right">
155155
<a
156-
className={classnames(
156+
className={clsx(
157157
"button button--primary",
158158
styles.others_button
159159
)}
@@ -173,8 +173,8 @@ export default function Downloads() {
173173
</div>
174174
</div>
175175
</div>
176-
<div className={classnames("col col--6", styles.column)}>
177-
<div className={classnames("hero", styles.others_hero)}>
176+
<div className={clsx("col col--6", styles.column)}>
177+
<div className={clsx("hero", styles.others_hero)}>
178178
<div className="col">
179179
<div className="row">
180180
<div className="col col--6">
@@ -190,7 +190,7 @@ export default function Downloads() {
190190
</div>
191191
<div className="col col--6 text--right">
192192
<a
193-
className={classnames(
193+
className={clsx(
194194
"button button--primary",
195195
styles.others_button
196196
)}
@@ -212,8 +212,8 @@ export default function Downloads() {
212212
</div>
213213
</div>
214214
<div className="row">
215-
<div className={classnames("col col--6", styles.column)}>
216-
<div className={classnames("hero", styles.others_hero)}>
215+
<div className={clsx("col col--6", styles.column)}>
216+
<div className={clsx("hero", styles.others_hero)}>
217217
<div className="col">
218218
<div className="row">
219219
<div className="col col--6">
@@ -229,7 +229,7 @@ export default function Downloads() {
229229
</div>
230230
<div className="col col--6 text--right">
231231
<a
232-
className={classnames(
232+
className={clsx(
233233
"button button--primary",
234234
styles.others_button
235235
)}
@@ -251,8 +251,8 @@ export default function Downloads() {
251251
</div>
252252
</div>
253253
</div>
254-
<div className={classnames("col col--6", styles.column)}>
255-
<div className={classnames("hero", styles.others_hero)}>
254+
<div className={clsx("col col--6", styles.column)}>
255+
<div className={clsx("hero", styles.others_hero)}>
256256
<div className="col">
257257
<div className="row">
258258
<div className="col col--6">
@@ -268,7 +268,7 @@ export default function Downloads() {
268268
</div>
269269
<div className="col col--6 text--right">
270270
<a
271-
className={classnames(
271+
className={clsx(
272272
"button button--primary",
273273
styles.others_button
274274
)}

src/pages/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import classnames from "classnames";
2+
import clsx from "clsx";
33
import Layout from "@theme/Layout";
44
import Link from "@docusaurus/Link";
55
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
@@ -45,7 +45,7 @@ const features = [
4545
function Feature({ imageUrl, title, description }) {
4646
const imgUrl = useBaseUrl(imageUrl);
4747
return (
48-
<div className={classnames("col col--4", styles.feature)}>
48+
<div className={clsx("col col--4", styles.feature)}>
4949
{imgUrl && (
5050
<div className="text--center">
5151
<img className={styles.featureImage} src={imgUrl} loading="lazy" alt="" />
@@ -62,8 +62,8 @@ function Home() {
6262
const { siteConfig = {} } = context;
6363
return (
6464
<Layout title={`Home`} description={siteConfig.tagline}>
65-
<header className={classnames("hero", styles.banner)}>
66-
<div className={classnames(styles.bannerOverlay)} />
65+
<header className={clsx("hero", styles.banner)}>
66+
<div className={clsx(styles.bannerOverlay)} />
6767
<iframe
6868
className={styles.bannerVideo}
6969
src="https://www.youtube-nocookie.com/embed/vxS-0jqCEYo?playlist=vxS-0jqCEYo&controls=0&autoplay=1&mute=1&loop=1&rel=0&showinfo=0&quality=high"
@@ -72,18 +72,18 @@ function Home() {
7272
allowFullScreen
7373
title="Homepage Banner Video"
7474
/>
75-
<div className={classnames("container", styles.bannerContainer)}>
75+
<div className={clsx("container", styles.bannerContainer)}>
7676
<div className="row">
7777
<div className="col col--6">
78-
<h1 className={classnames("hero__title", styles.bannerTitle)}>
78+
<h1 className={clsx("hero__title", styles.bannerTitle)}>
7979
The original, <span className={styles.bannerGradient}>redefined</span>.
8080
</h1>
8181
<p className="hero__subtitle" style={{ color: "#FFF" }}>
8282
{siteConfig.tagline}
8383
</p>
8484
<div className={styles.Ctas}>
8585
<Link
86-
className={classnames(
86+
className={clsx(
8787
"button button--outline button--white button--lg",
8888
styles.getStarted
8989
)}
@@ -107,7 +107,7 @@ function Home() {
107107
src="img/shield.png"
108108
alt="Biege-colored shield with a red outline containing two swords clashing in the middle and a text that reads 'PGM' underneath it."
109109
title="Biege-colored shield with a red outline containing two swords clashing in the middle and a text that reads 'PGM' underneath it."
110-
className={classnames(styles.floating)}
110+
className={clsx(styles.floating)}
111111
/>
112112
</div>
113113
</div>

0 commit comments

Comments
 (0)