-
Notifications
You must be signed in to change notification settings - Fork 5
API Reference #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
stevensJourney
wants to merge
16
commits into
main
Choose a base branch
from
test-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
API Reference #41
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
317fc8a
test docs
stevensJourney 4126145
test
stevensJourney 6c0a917
test
stevensJourney 569d970
test
stevensJourney dfa3b90
test
stevensJourney 0004ded
test
stevensJourney ab73a7b
pages deploy
stevensJourney 8a12ef8
hosting repo
stevensJourney 576341a
relative-path
stevensJourney f4d850a
redirect
stevensJourney 9863cf7
cleanup
stevensJourney a61b142
fix bug
stevensJourney f57fd86
typo
stevensJourney f9d9d12
Merge branch 'main' into test-docs
stevensJourney 07d1b2e
cleanup
stevensJourney 4538ad1
Merge branch 'test-docs' of github.com:powersync-ja/powersync-swift i…
stevensJourney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Deploy Docs | ||
|
||
on: | ||
push: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
name: Build and test | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build Docs | ||
run: | | ||
xcodebuild docbuild -scheme PowerSync -destination 'platform=macOS' -derivedDataPath ./DerivedData | ||
|
||
- name: Process Docs | ||
run: | | ||
xcrun docc process-archive transform-for-static-hosting ./DerivedData/Build/Products/Debug/PowerSync.doccarchive/ --output-path ./docs-site --hosting-base-path /powersync-swift | ||
|
||
# The Docs are available at the path mentioned below. We can override the index.html to automatically redirect to the documentation page. | ||
- name: Prepare static files | ||
run: | | ||
echo '<script>window.location.href += "/documentation/powersync"</script>' > ./docs-site/index.html | ||
|
||
- name: Upload static files as artifact | ||
id: deployment | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: docs-site | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO. Need to limit this to main before merging