diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adc644d4..3e8529f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,6 +125,26 @@ jobs: --output-path docc-output \ --transform-for-static-hosting + - name: Add routing support for GitHub Pages + run: | + # 404.html = copy of SPA index so all deep-link paths route through DocC + cp docc-output/index.html docc-output/404.html + # Root redirect: docs.tuikit.dev/ -> docs.tuikit.dev/documentation/tuikit/ + cat > docc-output/index.html << 'REDIRECT' + + +
+ + + +Redirecting to TUIkit Documentation...
+ + + REDIRECT + - name: Deploy to tuikit-docs uses: peaceiris/actions-gh-pages@v4 with: