Skip to content

powersync-ja/powersync-docs

 
 

Repository files navigation

PowerSync Docs

The docs branch is the one that's published on docs.powersync.com. Merge your changes into this branch.

The workflow for updates is essentially:

  • Create a PR to the docs branch
  • Make sure that checks pass (these include a check for broken links)
  • Get a review
  • Merge (changes are published automatically upon merge)

There is also a WYSIWYG editor available in our Mintlify dashboard, which is useful for quick updates that don't require a PR or review. Note that this editor is currently in Beta and is a little bit flakey in my experience, so double-check that your updates were indeed published if you use it. If you require access to the dashboard ping Benita or Kobie.

Development

Run the following command at the root of your documentation (where mint.json is)

npx mintlify dev

Regularly check for broken links by running

npx mintlify broken-links

Navigation (and other global settings) is defined in mint.json. Learn more about these in Mintlify's docs.

NB: If you move or rename a page, ensure you add a redirect (via the redirects property) to that existing links that were shared via Discord etc continue to work.

Icons

Only Fontawesome icons are currently supported: https://fontawesome.com/search

We use the following icons for the SDKs and backend databases:

  • Postgres: icon="elephant"
  • MongoDB: icon="leaf"
  • MySQL: icon="dolphin"
  • Flutter: icon="flutter"
  • React Native: icon="react"
  • Web: icon="js"
  • Kotlin: icon="flag"
  • Swift: icon="swift"

Some useful references:

Publishing Changes

Changes will be deployed to production automatically after pushing to the docs branch. You can review the deploy status in the Dashboard here.

Troubleshooting

  • Mintlify dev isn't running - Run mintlify install it'll re-install dependencies.
  • Page loads as a 404 - Make sure you are running in a folder with mint.json

Getting help

About

Repo for docs.powersync.com

Resources

License

Stars

Watchers

Forks

Contributors 13

Languages