davidzollo opened a new pull request, #437:
URL: https://github.com/apache/seatunnel-website/pull/437
## Summary
Since version 2.3.13, the documentation directory structure was reorganized
(e.g., `about.md` moved to `introduction/about.md`), but several navigation
links were not updated accordingly, causing 404 errors when users try to access
2.3.13 docs.
**Affected areas:**
- **Navbar "Document" dropdown**: All version links were hardcoded to
`docs/{version}/about`, which returns 404 for 2.3.13+ where the path is
`docs/{version}/introduction/about`
- **Versions page** (`/versions/`): Both the "latest" and "history" entries
for 2.3.13 pointed to the old path
- **About page internal links**: Links to Quick Start, Source connectors,
and Sink connectors in `about.md` still used old directory names
(`connector-v2/`, `start-v2/`)
## Changes
### 1. `docusaurus.config.js` - Dynamic version home page resolution
Added a `getVersionHomePage()` function that reads each version's sidebar
JSON to automatically determine the correct entry page. This ensures future
documentation restructures are handled automatically without code changes.
### 2. `src/pages/versions/config.json` - Fix hardcoded URLs
Updated all 2.3.13 doc URLs from `/docs/2.3.13/about` to
`/docs/2.3.13/introduction/about`, and Next version URLs from `/docs/about` to
`/docs/introduction/about`.
### 3. `versioned_docs/version-2.3.13/introduction/about.md` - Fix internal
links
- `connector-v2/source` → `../connectors/source`
- `connector-v2/sink` → `../connectors/sink`
- `start-v2/locally/deployment.md` →
`../getting-started/locally/deployment.md`
## Test plan
- [ ] Verify navbar dropdown links for all versions resolve correctly
(especially 2.3.13)
- [ ] Verify `/versions/` page links for 2.3.13 go to
`/docs/2.3.13/introduction/about`
- [ ] Verify internal links on `/docs/2.3.13/introduction/about` page work
(Quick Start, Source list, Sink list)
- [ ] Verify older versions (2.3.12 and below) are not affected
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]