Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"waitFor": "postCreateCommand",
"features": {
"node": {
"version": "20"
"version": "22"
}
}
}
2 changes: 1 addition & 1 deletion .github/workflows/build-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: "actions/setup-node@v4"
with:
cache: "pnpm"
node-version: 20
node-version: 22
- name: "install dependencies"
run: "pnpm install"
- name: "build"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: "actions/setup-node@v4"
with:
cache: "pnpm"
node-version: 20
node-version: 22
- name: "install dependencies"
run: "pnpm install"
- name: "build"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/setup-node@v4
with:
cache: "pnpm"
node-version: 20
node-version: 22
- name: Install dependencies
run: pnpm install
- name: Check format
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Spell check
uses: crate-ci/typos@v1.24.6
uses: crate-ci/typos@v1.31.1
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pnpm-lock.yaml
pnpm-workspace.yaml
docs/versioned
*.md
*.mdx
!README.md
!CONTRIBUTING.md
!CONTRIBUTING.md
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ How to get docs running on your local machine for development.

### Prerequisites

- [node](https://nodejs.org)
- [pnpm](https://pnpm.io/installation)
- [node](https://nodejs.org)
- [pnpm](https://pnpm.io/installation)

### Local Development

Expand Down
2 changes: 1 addition & 1 deletion config/sidebar.folia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ const folia: SidebarsConfig = {
],
};

export = folia;
export default folia;
2 changes: 1 addition & 1 deletion config/sidebar.misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ const misc: SidebarsConfig = {
],
};

export = misc;
export default misc;
2 changes: 1 addition & 1 deletion config/sidebar.paper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ const paper: SidebarsConfig = {
],
};

export = paper;
export default paper;
2 changes: 1 addition & 1 deletion config/sidebar.velocity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ const velocity: SidebarsConfig = {
],
};

export = velocity;
export default velocity;
2 changes: 1 addition & 1 deletion config/sidebar.waterfall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ const waterfall: SidebarsConfig = {
],
};

export = waterfall;
export default waterfall;
4 changes: 2 additions & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "./src/util/authorUtils";
import { preview, deploymentID } from "./src/util/pagesUtils";

cacheAuthorData(preview || env.NODE_ENV === "development");
cacheAuthorData(preview || env.NODE_ENV === "development").then();

const url =
(preview && `https://${deploymentID}.papermc-docs.pages.dev`) || "https://docs.papermc.io";
Expand Down Expand Up @@ -282,4 +282,4 @@ const config: Config = {
},
};

export = config;
export default config;
68 changes: 32 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,43 +16,45 @@
"format:check": "prettier . --check"
},
"dependencies": {
"@docusaurus/core": "3.6.0",
"@docusaurus/faster": "^3.6.0",
"@docusaurus/plugin-content-docs": "3.6.0",
"@docusaurus/plugin-content-pages": "3.6.0",
"@docusaurus/plugin-debug": "3.6.0",
"@docusaurus/plugin-pwa": "3.6.0",
"@docusaurus/plugin-sitemap": "3.6.0",
"@docusaurus/theme-classic": "3.6.0",
"@docusaurus/theme-common": "3.6.0",
"@docusaurus/theme-mermaid": "3.6.0",
"@docusaurus/theme-search-algolia": "3.6.0",
"@floating-ui/react": "^0.26.16",
"@fontsource/jetbrains-mono": "5.0.20",
"@iconify/react": "5.0.1",
"@mdx-js/react": "3.0.1",
"clsx": "2.1.0",
"docusaurus-plugin-sass": "^0.2.5",
"@docusaurus/core": "3.7.0",
"@docusaurus/faster": "^3.7.0",
"@docusaurus/plugin-content-docs": "3.7.0",
"@docusaurus/plugin-content-pages": "3.7.0",
"@docusaurus/plugin-debug": "3.7.0",
"@docusaurus/plugin-pwa": "3.7.0",
"@docusaurus/plugin-sitemap": "3.7.0",
"@docusaurus/theme-classic": "3.7.0",
"@docusaurus/theme-common": "3.7.0",
"@docusaurus/theme-mermaid": "3.7.0",
"@docusaurus/theme-search-algolia": "3.7.0",
"@docusaurus/utils": "^3.7.0",
"@floating-ui/react": "^0.27.6",
"@fontsource/jetbrains-mono": "5.2.5",
"@iconify/react": "5.2.1",
"@mdx-js/react": "3.1.0",
"clsx": "2.1.1",
"docusaurus-plugin-sass": "^0.2.6",
"js-yaml": "4.1.0",
"prism-react-renderer": "^2.3.1",
"prism-react-renderer": "^2.4.1",
"raw-loader": "4.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-markdown": "8.0.7"
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-markdown": "10.1.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.6.0",
"@docusaurus/tsconfig": "3.6.0",
"@docusaurus/types": "3.6.0",
"@docusaurus/module-type-aliases": "3.7.0",
"@docusaurus/tsconfig": "3.7.0",
"@docusaurus/types": "3.7.0",
"@fec/remark-a11y-emoji": "4.0.2",
"@octokit/types": "^13.10.0",
"@types/is-ci": "3.0.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "20.14.2",
"@types/react": "^18.2.79",
"is-ci": "3.0.1",
"prettier": "3.3.1",
"@types/node": "22.14.0",
"@types/react": "^19.1.0",
"is-ci": "4.1.0",
"prettier": "3.5.3",
"regenerator-runtime": "0.14.1",
"typescript": "5.4.5"
"typescript": "5.8.3"
},
"browserslist": {
"production": [
Expand All @@ -67,11 +69,5 @@
"last 1 safari version"
]
},
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
"pnpm": {
"patchedDependencies": {
"@docusaurus/[email protected]": "patches/@[email protected]",
"@docusaurus/[email protected]": "patches/@[email protected]"
}
}
"packageManager": "[email protected]+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808"
}
6 changes: 3 additions & 3 deletions [email protected][email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/lib/client/docsSearch.js b/lib/client/docsSearch.js
index fb1fb547238f704c3f27b4cc40af1e55766702df..2543ba879f86fa967b123b8ba55deb8186ac7fc9 100755
index fb1fb547238f704c3f27b4cc40af1e55766702df..2543ba879f86fa967b123b8ba55deb8186ac7fc9 100644
--- a/lib/client/docsSearch.js
+++ b/lib/client/docsSearch.js
@@ -35,5 +35,5 @@ export function useDocsContextualSearchTags() {
Expand All @@ -10,7 +10,7 @@ index fb1fb547238f704c3f27b4cc40af1e55766702df..2543ba879f86fa967b123b8ba55deb81
+ return [...(activePluginAndVersion ? [activePluginAndVersion.activePlugin.pluginId] : Object.keys(allDocsData)).map(getDocPluginTags)];
}
diff --git a/lib/constants.js b/lib/constants.js
index f91e43f00e1f9160afa6a34ed1df71c90fe45a28..db04a015ea2d4474339b1d02f6fbec75ba14c894 100755
index f91e43f00e1f9160afa6a34ed1df71c90fe45a28..db04a015ea2d4474339b1d02f6fbec75ba14c894 100644
--- a/lib/constants.js
+++ b/lib/constants.js
@@ -10,8 +10,8 @@ exports.VERSIONS_JSON_FILE = exports.VERSIONED_SIDEBARS_DIR = exports.VERSIONED_
Expand All @@ -26,7 +26,7 @@ index f91e43f00e1f9160afa6a34ed1df71c90fe45a28..db04a015ea2d4474339b1d02f6fbec75
-exports.VERSIONS_JSON_FILE = 'versions.json';
+exports.VERSIONED_BASE_DIR = 'docs/versioned';
diff --git a/lib/versions/files.js b/lib/versions/files.js
index f63cbb295242437ca8b417d3c32e228e370944e9..396b08c66bec0e4b8b455d32171196fcdd71aa1f 100755
index f63cbb295242437ca8b417d3c32e228e370944e9..396b08c66bec0e4b8b455d32171196fcdd71aa1f 100644
--- a/lib/versions/files.js
+++ b/lib/versions/files.js
@@ -19,19 +19,19 @@ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/src/gitUtils.ts b/src/gitUtils.ts
index 39a3ad754a0c5ab27cfb78c7b44a9f0be3785a62..c3116d7a725d4a5420286baac8147f4e821e5631 100755
index 39a3ad754a0c5ab27cfb78c7b44a9f0be3785a62..c3116d7a725d4a5420286baac8147f4e821e5631 100644
--- a/src/gitUtils.ts
+++ b/src/gitUtils.ts
@@ -95,6 +95,13 @@ export async function getFileCommitDate(
Expand Down
Loading