-
Notifications
You must be signed in to change notification settings - Fork 93
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
Upgrade Docusaurus - Enable Docusaurus Faster on website #468
base: master
Are you sure you want to change the base?
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 |
---|---|---|
|
@@ -20,3 +20,5 @@ yarn-error.log | |
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
.idea |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,12 +47,12 @@ | |
], | ||
"packageManager": "[email protected]", | ||
"resolutions": { | ||
"@docusaurus/core": "3.0.0", | ||
"@docusaurus/module-type-aliases": "3.0.0", | ||
"@docusaurus/preset-classic": "3.0.0", | ||
"@docusaurus/theme-classic": "3.0.0", | ||
"@docusaurus/theme-common": "3.0.0", | ||
"@docusaurus/plugin-content-docs": "3.0.0", | ||
"@docusaurus/core": "3.6.0", | ||
"@docusaurus/module-type-aliases": "3.6.0", | ||
"@docusaurus/preset-classic": "3.6.0", | ||
"@docusaurus/theme-classic": "3.6.0", | ||
"@docusaurus/theme-common": "3.6.0", | ||
"@docusaurus/plugin-content-docs": "3.6.0", | ||
"@types/react": "18.2.37" | ||
}, | ||
"engines": { | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,17 @@ | |
"docusaurus": "docusaurus", | ||
"start": "docusaurus start", | ||
"build": "docusaurus build", | ||
"clear": "docusaurus clear", | ||
"swizzle": "docusaurus swizzle", | ||
"deploy": "docusaurus deploy", | ||
"serve": "docusaurus serve" | ||
}, | ||
"dependencies": { | ||
"@docusaurus/core": "^3.0.0", | ||
"@docusaurus/preset-classic": "^3.0.0", | ||
"@docusaurus/theme-classic": "^3.0.0", | ||
"@docusaurus/theme-common": "^3.0.0", | ||
"@docusaurus/core": "3.6.0", | ||
"@docusaurus/faster": "3.6.0", | ||
"@docusaurus/preset-classic": "3.6.0", | ||
"@docusaurus/theme-classic": "3.6.0", | ||
"@docusaurus/theme-common": "3.6.0", | ||
Comment on lines
+15
to
+19
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. 💡 Codebase verification Inconsistent Docusaurus dependency versions detected across packages The verification reveals version inconsistencies across different packages in the repository:
These inconsistencies could lead to compatibility issues. Consider:
🔗 Analysis chainVerify dependency version consistency Let's verify that all Docusaurus-related dependencies are consistently updated across the project to avoid version conflicts. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for inconsistent @docusaurus/* package versions across package.json files
# Find all package.json files
echo "Searching for @docusaurus/* dependencies in all package.json files:"
fd package.json --type f --exec sh -c '
echo "\nChecking {}"
cat {} | jq -r "
if has(\"dependencies\") then
.dependencies | to_entries[] |
select(.key | startswith(\"@docusaurus/\")) |
\"\(.key): \(.value)\"
else
empty
end
"
'
Length of output: 1111 |
||
"@easyops-cn/docusaurus-search-local": "workspace:*", | ||
"@mdx-js/react": "^3.0.0", | ||
"clsx": "^1.1.1", | ||
|
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.
💡 Codebase verification
Version consistency verified across website and website-multi-docs, but other packages need attention
The verification revealed mixed versioning patterns across the repository:
website
andwebsite-multi-docs
correctly use exact version 3.6.0 for all Docusaurus packagesdocusaurus-search-local
package uses different version patterns:^2 || ^3
for some packages^3.0.0
for others3.0.0
for@docusaurus/tsconfig
This inconsistency in versioning patterns across the repository could lead to compatibility issues. Consider aligning all Docusaurus package versions to 3.6.0 across the entire repository for better consistency.
🔗 Analysis chain
LGTM! Consistent version updates across Docusaurus packages.
The alignment of all Docusaurus packages to exact version 3.6.0 (removing caret versioning) ensures build consistency, which is crucial for testing the new bundler.
Let's verify version consistency across all Docusaurus packages in the repository:
Also applies to: 19-22, 31-31
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 367
Script:
Length of output: 1977