|
1 | 1 | # Contributing to PowerSync Docs
|
2 | 2 |
|
3 |
| -Thanks for contributing to our documentation! |
| 3 | +Thanks for contributing to our documentation! |
4 | 4 |
|
5 | 5 | ## License & Contributor License Agreement (CLA)
|
6 | 6 |
|
7 | 7 | The PowerSync docs, like [the Service](https://github.com/powersync-ja/powersync-service), are licensed under the Functional Source License (FSL). To contribute, you must accept our Contributor License Agreement (CLA). This is an automated process that occurs when you submit your first pull request (PR).
|
8 | 8 |
|
9 | 9 | ## How to Contribute
|
10 | 10 |
|
11 |
| -### From docs.powersync.com directly (recommended) |
12 |
| -TODO: flesh out steps once "suggest edits" is enabled |
13 |
| - |
14 |
| -### Manually |
15 |
| -1. Fork and clone the repo: Click "Fork" on GitHub and clone your fork. |
16 |
| -1. Make Changes: Edit or add markdown files in the relevant directory. |
17 |
| -1. Test Locally: See this repo's [README](/README.md) for instructions. |
18 |
| -1. Submit a PR: Push your changes and open a pull request to the `main` branch. |
| 11 | +1. **Fork and clone your repository:** |
| 12 | + - On GitHub, click "Fork" at the top right of this repository to create your own copy. |
| 13 | + - Then clone your fork: |
| 14 | + ``` |
| 15 | + git clone https://github.com/YOUR-USERNAME/powersync-docs.git |
| 16 | + cd powersync-docs |
| 17 | + ``` |
| 18 | +2. **Install Mintlify CLI:** |
| 19 | + ``` |
| 20 | + npx mintlify install |
| 21 | + ``` |
| 22 | +3. **Start the local docs server:** |
| 23 | + ``` |
| 24 | + npx mintlify dev |
| 25 | + ``` |
| 26 | + (See the [README](/README.md) for more details and troubleshooting.) |
| 27 | +4. **Make your changes:** |
| 28 | + - Edit or add .mdx files as needed. |
| 29 | + - See the [Editing Guidelines in the README](/README.md#editing-guidelines). |
| 30 | +5. **Test your changes locally** |
| 31 | +6. **Submit a pull request:** |
| 32 | + - Push your changes to your fork. |
| 33 | + - Open a PR to `powersync-ja/powersync-docs:main`. |
| 34 | + - Sign the CLA when prompted. |
| 35 | + - Ensure all checks pass (including broken link checks). |
| 36 | + - Request a review. |
| 37 | +
|
| 38 | +## Publishing |
| 39 | +
|
| 40 | +Once your PR is approved and merged to `main`, your changes will be automatically published to https://docs.powersync.com. |
19 | 41 |
|
20 | 42 | ## Getting Help
|
21 | 43 |
|
22 |
| -If you have questions or need assistance: |
| 44 | +If you have questions or need help: |
23 | 45 | - Join our [Discord server](https://discord.gg/powersync) to ask questions and connect with the community.
|
24 | 46 | - Open an issue on GitHub if you encounter a problem or have a suggestion.
|
25 | 47 |
|
|
0 commit comments