-
Notifications
You must be signed in to change notification settings - Fork 28
Made changes for docusaurus v4 1785293457 #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,29 +22,31 @@ | |||||||||
| "prepare": "husky install" | ||||||||||
| }, | ||||||||||
| "dependencies": { | ||||||||||
| "@docusaurus/core": "^3.10.0", | ||||||||||
| "@docusaurus/preset-classic": "^3.10.0", | ||||||||||
| "@docusaurus/core": "^3.10.2", | ||||||||||
| "@docusaurus/faster": "^3.10.2", | ||||||||||
| "@docusaurus/preset-classic": "^3.10.2", | ||||||||||
| "@mdx-js/react": "^3.1.1", | ||||||||||
| "@types/react": "^19.2.7", | ||||||||||
| "clsx": "^2.0.0", | ||||||||||
| "docusaurus": "^1.14.7", | ||||||||||
| "prettier": "^3.7.4", | ||||||||||
| "prism-react-renderer": "^2.3.0", | ||||||||||
| "react": "^19.2.0", | ||||||||||
| "react-dom": "^19.2.0", | ||||||||||
| "react-icons": "^5.5.0" | ||||||||||
| }, | ||||||||||
| "devDependencies": { | ||||||||||
| "@docusaurus/module-type-aliases": "^3.10.0", | ||||||||||
| "@docusaurus/tsconfig": "^3.10.0", | ||||||||||
| "@docusaurus/types": "^3.10.0", | ||||||||||
| "@eslint/js": "^9.39.4", | ||||||||||
| "@docusaurus/module-type-aliases": "^3.10.2", | ||||||||||
| "@docusaurus/tsconfig": "^3.10.2", | ||||||||||
| "@docusaurus/types": "^3.10.2", | ||||||||||
| "@eslint/js": "^9.39.1", | ||||||||||
| "@graphql-eslint/eslint-plugin": "^4.4.0", | ||||||||||
| "@typescript-eslint/eslint-plugin": "^8.51.0", | ||||||||||
| "@typescript-eslint/eslint-plugin": "^8.48.0", | ||||||||||
| "@typescript-eslint/parser": "^8.51.0", | ||||||||||
|
Comment on lines
+44
to
45
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "package.json relevant deps:"
python3 - <<'PY'
import json
from pathlib import Path
p=Path('package.json')
data=json.loads(p.read_text())
for sec in ['devDependencies','dependencies']:
if sec in data:
vals={k:data[sec][k] for k in data[sec] if k.startswith('`@typescript-eslint/`') or k in ('eslint','`@eslint/eslintrc`','typescript')}
if vals:
print(sec)
for k,v in sorted(vals.items()):
print(f" {k}: {v}")
PY
echo
echo "lockfile yarn/npm/pnpm references:"
for f in package-lock.json yarn.lock pnpm-lock.yaml; do
if [ -f "$f" ]; then
echo "--- $f ---"
rg -n '`@typescript-eslint/`(eslint-plugin|parser)|typescript-eslint' "$f" | head -80 || true
fi
doneRepository: PalisadoesFoundation/developer-docs Length of output: 5374 🌐 Web query:
💡 Result: Yes, all packages within the typescript-eslint project, including Citations:
Align the The parser is Proposed fix- "`@typescript-eslint/eslint-plugin`": "^8.48.0",
+ "`@typescript-eslint/eslint-plugin`": "^8.51.0",📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| "@vitest/eslint-plugin": "^1.6.14", | ||||||||||
| "@vitest/eslint-plugin": "^1.6.4", | ||||||||||
| "eslint": "^9.39.2", | ||||||||||
| "eslint-plugin-import": "^2.32.0", | ||||||||||
| "eslint-plugin-prettier": "^5.5.5", | ||||||||||
| "eslint-plugin-prettier": "^5.5.4", | ||||||||||
| "eslint-plugin-react": "^7.37.5", | ||||||||||
| "eslint-plugin-tsdoc": "^0.5.0", | ||||||||||
| "husky": "^9.1.7", | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: PalisadoesFoundation/developer-docs
Length of output: 50391
🏁 Script executed:
Repository: PalisadoesFoundation/developer-docs
Length of output: 7618
🌐 Web query:
Docusaurus 3 create package@docusaurus/coreCLI start build install legacy npm package docusaurus💡 Result:
In modern Docusaurus (version 3 and above), the original legacy npm package named docusaurus is obsolete and replaced by a modular structure based on scoped packages under the
@docusaurus/namespace [1][2]. Core Package and CLI The package@docusaurus/coreis the primary engine of a Docusaurus 3 project [3]. It is not intended to be installed as a global CLI tool in the way the legacy package was. Instead, Docusaurus 3 uses the create-docusaurus tool for scaffolding and provides a local CLI bundled within your project's dependencies to manage site tasks [4][5]. Installation To start a new Docusaurus 3 project, use the recommended initialization command, which scaffolds a project with the necessary dependencies (including@docusaurus/coreand@docusaurus/preset-classic) [4][6]: npx create-docusaurus@latest my-website classic If you are adding Docusaurus to an existing project or managing dependencies manually, add the required scoped packages to your package.json [4][7]: npm install@docusaurus/core@docusaurus/preset-classicRunning CLI Commands Once your project is installed, you do not use a global docusaurus command. Instead, you invoke the CLI scripts configured in your package.json [5]: { "scripts": { "start": "docusaurus start", "build": "docusaurus build" } } You execute these commands using your package manager (e.g., npm run start or npm run build), which triggers the local version of the CLI [5]. Migration Note If you are migrating from the legacy Docusaurus 1 (which used the docusaurus npm package), you must replace the legacy dependency with@docusaurus/coreand@docusaurus/preset-classic, and update your CLI scripts to reference the new local execution pattern [1][2]. Automated migration tools are available to assist with this transition [8][9].Citations:
Remove the legacy Docusaurus v1 package.
This project already installs the scoped Docusaurus v3 packages (
@docusaurus/core,@docusaurus/faster,@docusaurus/preset-classic). The unscopeddocusaurus@1.14.7dependency is stale, is not needed for the currentdocusaurus start/buildscripts, and should be dropped from bothpackage.jsonandpnpm-lock.yamlunless there is a separate v1 site that still depends on it.Proposed fix
- "docusaurus": "^1.14.7",📝 Committable suggestion
🤖 Prompt for AI Agents