Skip to content

Fix DocC data and documentation paths in JavaScript#24

Merged
SoundBlaster merged 1 commit intomainfrom
claude/fix-docc-github-pages-urls-011CV2q14oULMheEHTbHVHsq
Nov 11, 2025
Merged

Fix DocC data and documentation paths in JavaScript#24
SoundBlaster merged 1 commit intomainfrom
claude/fix-docc-github-pages-urls-011CV2q14oULMheEHTbHVHsq

Conversation

@SoundBlaster
Copy link
Owner

After fixing HTML resource paths, the site loads but shows "page not found" because JavaScript code has hardcoded absolute paths.

DocC is a Single Page Application (SPA) that loads data (JSON files) dynamically. The --hosting-base-path parameter only configures routing but doesn't fix absolute paths in the generated JavaScript code.

JavaScript paths that need fixing:

  • "/data/" → "/NavigationSplitView/data/"
  • "/documentation/" → "/NavigationSplitView/documentation/"
  • "/tutorials/" → "/NavigationSplitView/tutorials/"

Without this fix, the SPA tries to load data from:
https://soundblaster.github.io/data/...
Instead of:
https://soundblaster.github.io/NavigationSplitView/data/...

This causes 404 errors and the "page not found" message.

Also improved debug output to show full index.html and check for NavigationSplitView references in JS files.

After fixing HTML resource paths, the site loads but shows "page not
found" because JavaScript code has hardcoded absolute paths.

DocC is a Single Page Application (SPA) that loads data (JSON files)
dynamically. The --hosting-base-path parameter only configures routing
but doesn't fix absolute paths in the generated JavaScript code.

JavaScript paths that need fixing:
- "/data/" → "/NavigationSplitView/data/"
- "/documentation/" → "/NavigationSplitView/documentation/"
- "/tutorials/" → "/NavigationSplitView/tutorials/"

Without this fix, the SPA tries to load data from:
  https://soundblaster.github.io/data/...
Instead of:
  https://soundblaster.github.io/NavigationSplitView/data/...

This causes 404 errors and the "page not found" message.

Also improved debug output to show full index.html and check for
NavigationSplitView references in JS files.
@SoundBlaster SoundBlaster merged commit 11ce94c into main Nov 11, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants