-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Docusaurus 3.4 + dependencies (#29)
* Bump docusaurus + update all dependencies: - docusaurus 3-alpha -> 3.4 - everything to latest, except: - eslint to v8, e.g. @typescript-eslint/parser doesn't support v9 yet - typescript ~5.4, because eslint v8 expects a version <5.5.0 - node >= 18 due to various dependencies dropping 16 Change prism-react-renderer import as necessary * Add @docusaurus/types as dev dependency - used in docusaurus.config.js already * Migration to husky v9 * Fix broken file (due to mdx3 being less lenient) * Update all used github actions: - due to warning from github to versions using node 20 * Change build pipeline to .NET 8 * Update pnpm to latest (9.4.0): Note: the new setup action now fails if a different version is used in package.json vs workflows config * workaround API build failing on 5 files: - these files used {string}, which is now evaluated as an expression in mdx (https://mdxjs.com/docs/what-is-mdx/#expressions) -> setup docusaurus to only use mdx on .mdx files, because api is generated as normal .md The docusaurus CommonMark feature is experimental: https://docusaurus.io/docs/markdown-features#mdx-vs-commonmark With following limitations:facebook/docusaurus#9092 For reference, failing files were: - "/api/Dalamud.Interface.Utility/Structs/ImVectorWrapper`T`" - "/api/Dalamud.Utility.Timing/Classes/Timings" - "/api/Dalamud.Utility/Classes/DisposeSafety.ScopedFinalizer" - "/api/FFXIVClientStructs.Interop/" - "/api/FFXIVClientStructs.Interop/Structs/SpanExtensions.SpanPointerEnumerator`T`" * Add 'bash' as additionalLanguage for prisms syntax highlighting: shell code wasn't highlighted, e.g. building/index.md * Update README: - Docusaurus 3 - always has been - with v3 pnpm build works locally when using --dev * Replace caution with warning due to deprecation in v3 * Change docusaurus.config.js to ES Module as recommended in the Migration Guide
- Loading branch information
Showing
9 changed files
with
9,336 additions
and
7,329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.