Commit 2f53e5e
authored
Upgrade Docusaurus from 3.7.0 to 3.9.2 (#1564)
* Move `onBrokenMarkdownLinks` to markdown hooks
The onBrokenMarkdownLinks option was removed from the root config and added under markdown.hooks to align with updated Docusaurus configuration structure. This change complies with a change made in Docusaurus 3.9: facebook/docusaurus#11283
* Fix link to ABAC doc in Japanese
* Upgrade Docusaurus from 3.7.0 to 3.9.1
* Change `current` to `3.15` in description
* Add `onDuplicateRoutes` configuration
* Fix incorrect label
* Add `key` attributes for labels with duplicate names
When labels have duplicate names, the sidebar must contain a `key` attribute. Without these `key` attributes, Docusaurus 3.9 (and likely later unless this specification changes) will encounter errors during the build process.
As described in the Docusaurus blog post for 3.9: "In #11228, we added a new `key` attribute to the docs sidebar items, allowing to assign explicit translation keys to each sidebar item that use the same label and would otherwise lead to translation key conflicts."
Related Docusaurus PR: facebook/docusaurus#11228
* Change URL identifiers
Change as suggested by Gemini code review: #1564 (comment)
* Ensure output directory exists before writing JSON
Added logic to create the output directory if it does not exist before writing the glossary JSON file. This prevents errors when the specified output path's directory is missing.
* Update Node.js version to `20`
Bump Node.js version from `18` to `20` in deploy and test-deploy GitHub Actions workflows to ensure compatibility with the latest Node.js features and security updates. This is necessary because Docusaurus 3.9 drops support for Node.js 18: https://docusaurus.io/blog/releases/3.9#dropping-nodejs-18
* Add `colorMode` to respect user's light/dark theme preference
Introduced a colorMode section in the Docusaurus config to set the default mode to light, enable the color mode switch, and respect the user's preferred color scheme.
* Change format of `key` values
Addresses the following comment made in the ScalarDL docs site repository: scalar-labs/docs-scalardl#1011 (comment)
* Upgrade Docusaurus from 3.9.1 to 3.9.21 parent 9e43dc5 commit 2f53e5e
File tree
20 files changed
+1977
-1009
lines changed- .github/workflows
- i18n/versioned_docs/ja-jp/docusaurus-plugin-content-docs
- scripts
- versioned_sidebars
20 files changed
+1977
-1009
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
377 | 380 | | |
378 | 381 | | |
379 | 382 | | |
| |||
568 | 571 | | |
569 | 572 | | |
570 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
571 | 579 | | |
572 | 580 | | |
573 | 581 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
0 commit comments