From 73c01041072d422eda1d92f70162904796f4b0f5 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 11 Nov 2025 23:53:51 +0000 Subject: [PATCH] Add missing /documentation/ path fix and root redirect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two critical fixes for DocC on GitHub Pages: 1. Add /documentation/ path fixing in JavaScript (was missing!) JavaScript was trying to load: - /documentation/newnav/data.json ❌ Instead of: - /NavigationSplitView/documentation/newnav/data.json ✅ This caused "page not found" for tutorials and navigation. 2. Add redirect from root to documentation/newnav/ - Root index.html now redirects to actual docs entry point - Users opening /NavigationSplitView/ → /documentation/newnav/ All sed path fixes now complete: - HTML: baseUrl, script/link src, favicons - JS: /data/, /documentation/, /tutorials/, /index/ This should be the final fix for full DocC functionality on GitHub Pages! --- .github/workflows/docc.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/docc.yml b/.github/workflows/docc.yml index 08aacba..84628ed 100644 --- a/.github/workflows/docc.yml +++ b/.github/workflows/docc.yml @@ -127,6 +127,7 @@ jobs: echo "=== Fixing paths in JavaScript files ===" find DocsBuild -type f -name "*.js" -exec sed -i '' \ -e 's|"/data/|"/'$DOCC_HOSTING_BASE_PATH'/data/|g' \ + -e 's|"/documentation/|"/'$DOCC_HOSTING_BASE_PATH'/documentation/|g' \ -e 's|"/tutorials/|"/'$DOCC_HOSTING_BASE_PATH'/tutorials/|g' \ -e 's|"/index/|"/'$DOCC_HOSTING_BASE_PATH'/index/|g' \ {} + @@ -135,6 +136,26 @@ jobs: echo "Fixed index.html:" head -5 DocsBuild/index.html + - name: Create root redirect + run: | + # Create redirect from root to documentation/newnav + cat > DocsBuild/index.html << 'EOF' + + + + + Redirecting to NewNav Documentation + + + + +

Redirecting to NewNav Documentation...

+ + + + EOF + echo "Created redirect to documentation/newnav/" + - name: Upload documentation artifact if: github.event_name == 'push' uses: actions/upload-pages-artifact@v3