goatcorp / dalamud-docs

Dalamud developer documentation site
https://dalamud.dev/
MIT License
6 stars 21 forks source link

Update to Docusaurus 3.4 + dependencies #29

Closed SayuShira closed 1 month ago

SayuShira commented 2 months ago

This PR seeks to bump Docusaurus from v3.0.0-alpha.0 to v3.4.0, as well as most other dependencies and all GitHub actions.
There is a test run of the pipeline and the generated pages for comparison.
Local builds (including API) and starting the server with Docker succeeded as well.

Please let me know if something needs to change or you spot other anomalies.

Differences

Visuals

Build Errors

{curly brackets} are used for the new expression feature of mdx v2, leading to e.g. ReferenceErrors in ImVector{T} because T is undefined.
There are multiple remedies:

Other changes

Reasons

Keeping dependencies up to date. Future proofing.

Docusaurus

Docusaurus offers various new features and improvements:

Other Dependencies

All dependency updates are a direct result of Docusaurus v3.

Dev Dependencies:

Bumped pnpm to v9.4.0 for security fixes and feature improvements, e.g. actually checking the packageManager field to check if the correct version is used.

GitHub Actions

On June 30th 2024, we will change the default from Node16 to Node20.

Timeline Blog Post While there is a flag to continue using Node 16 in the runner for some time, this PR updated all used actions to their latest versions, using Node 20. Docusaurus now also requires Node >= 18, making this change sensible now.