Skip to content

C4: Fix Generated API Docs 404 Errors#27

Merged
pipewrk merged 1 commit intomainfrom
sprint-1/c4-ci-docs-hooks
Oct 1, 2025
Merged

C4: Fix Generated API Docs 404 Errors#27
pipewrk merged 1 commit intomainfrom
sprint-1/c4-ci-docs-hooks

Conversation

@pipewrk
Copy link
Contributor

@pipewrk pipewrk commented Oct 1, 2025

Fixes 404 errors on generated API documentation by updating VitePress sidebar links.

Problem: Generated API docs returned 404 on GitHub Pages for directory URLs like /api/generated/resource/

Root Cause: TypeDoc generates README.md files which VitePress converts to README.html (not index.html), so directory URLs do not resolve on GitHub Pages.

Solution: Updated sidebar links to point explicitly to README paths instead of directory paths.

Testing: Local build verified, VitePress preview confirms pages load correctly.

Closes #14

- Changed sidebar links from directory URLs to explicit README paths
- Fixes 404 errors on /api/generated/{resource,errors,transport}/
- Generated docs now properly accessible via /api/generated/*/README

VitePress generates README.html instead of index.html for TypeDoc
markdown files, so directory URLs don't work on GitHub Pages.

Closes #14
Copilot AI review requested due to automatic review settings October 1, 2025 09:32
@pipewrk pipewrk added sprint-1 Sprint 1 tasks type:ci/cd CI/CD labels Oct 1, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes 404 errors on generated API documentation by updating VitePress sidebar configuration to use explicit README file paths instead of directory paths. This resolves GitHub Pages routing issues where directory URLs don't automatically resolve to README.md files.

  • Updated three API documentation links to point explicitly to README files
  • Ensures compatibility between VitePress preview server and GitHub Pages deployment

@pipewrk pipewrk merged commit 54c74b2 into main Oct 1, 2025
6 checks passed
@pipewrk pipewrk deleted the sprint-1/c4-ci-docs-hooks branch October 5, 2025 01:48
pipewrk added a commit that referenced this pull request Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sprint-1 Sprint 1 tasks type:ci/cd CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C4: CI & Docs Hooks

2 participants