Commit 04776e0
docs: bump Docusaurus to v3.9.1 (#1428)
This PR updates the website's Docusaurus installation from v3.8.1 to
v3.9.1 and applies the configuration changes from
[apify/crawlee#3175](apify/crawlee#3175) to fix
search modal styles after the docsearch v4 update.
## Changes Made
### Package Updates
- Updated all Docusaurus packages from `3.8.1` to `3.9.1`:
- `@docusaurus/core`
- `@docusaurus/faster`
- `@docusaurus/mdx-loader`
- `@docusaurus/plugin-client-redirects`
- `@docusaurus/preset-classic`
- `@docusaurus/theme-mermaid`
- `@docusaurus/module-type-aliases`
- `@docusaurus/types`
- Added `@mermaid-js/layout-elk@^0.1.5` dependency for enhanced Mermaid
diagram support
### Configuration Updates
Updated `docusaurus.config.js` to match the new v3.9.1 configuration
structure:
- **Simplified broken link handling**: Removed TypeScript type
annotations from `onBrokenLinks` configuration
- **Restructured markdown configuration**: Moved `onBrokenMarkdownLinks`
from top-level to `markdown.hooks.onBrokenMarkdownLinks`
- **Enhanced markdown options**: Maintained mermaid support while
adopting the new hooks-based configuration
### CSS Fixes
Applied DocSearch styling fixes in `custom.css`:
- Added `.DocSearch-Clear` color styling for better visibility
- Removed `flex-direction: row-reverse` from `.DocSearch-Form` to fix
search input layout issues
## Testing
The website builds successfully with the new Docusaurus version and all
functionality is preserved. The search modal styling issues present in
the previous version have been resolved.
## Impact
This update brings the website up to the latest stable Docusaurus
version, improving performance and fixing known issues with the search
functionality while maintaining full backward compatibility.
<!-- START COPILOT CODING AGENT SUFFIX -->
<details>
<summary>Original prompt</summary>
> update docusaurus to v3.9.1 and modify the config the same way as in
@apify/crawlee/pull/3175, and add `@mermaid-js/layout-elk` to the
website dependencies
>
> do this inside the `website` folder, where the docusaurus project
lives
</details>
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: B4nan <[email protected]>1 parent 0e75587 commit 04776e0
File tree
4 files changed
+983
-631
lines changed- website
- src/css
4 files changed
+983
-631
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
764 | 768 | | |
765 | 769 | | |
766 | 770 | | |
| |||
769 | 773 | | |
770 | 774 | | |
771 | 775 | | |
772 | | - | |
773 | 776 | | |
774 | 777 | | |
775 | 778 | | |
| |||
0 commit comments