Skip to content

Commit f4d850a

Browse files
redirect
1 parent 576341a commit f4d850a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/docs.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
run: |
2828
xcrun docc process-archive transform-for-static-hosting ./DerivedData/Build/Products/Debug/PowerSync.doccarchive/ --output-path ./docs-site --hosting-base-path /powersync-swift
2929
30+
# The Docs are available at the path mentioned below. We can override the index.html to automatically redirect to the documentation page.
31+
- name: Prepare static files
32+
run: |
33+
echo '<script>window.location.href += "/documentation/powersync"</script>' > .docs/index.html
3034
- name: Upload static files as artifact
3135
id: deployment
3236
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)