Skip to content

Commit fffdcaf

Browse files
committed
docs: fix gh-pages asset 404s by passing --root to fsdocs build
Without --root, fsdocs generates asset hrefs like /fsdocs-theme.js which resolve to the bare domain root. Passing the GitHub Pages base URL fixes them to /FSharp.Control.TaskSeq/fsdocs-theme.js.
1 parent 959b287 commit fffdcaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: dotnet build src/FSharp.Control.TaskSeq/FSharp.Control.TaskSeq.fsproj -c Release
3636

3737
- name: Build docs
38-
run: dotnet fsdocs build --properties Configuration=Release --eval
38+
run: dotnet fsdocs build --properties Configuration=Release --eval --root https://fsprojects.github.io/FSharp.Control.TaskSeq/
3939

4040
- name: Deploy to GitHub Pages
4141
uses: peaceiris/actions-gh-pages@v4

0 commit comments

Comments
 (0)