Skip to content

Commit c527491

Browse files
authored
Consolidate Readme and contributing files (#175)
1 parent 10bbc10 commit c527491

File tree

2 files changed

+42
-23
lines changed

2 files changed

+42
-23
lines changed

CONTRIBUTING.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,47 @@
11
# Contributing to PowerSync Docs
22

3-
Thanks for contributing to our documentation!
3+
Thanks for contributing to our documentation!
44

55
## License & Contributor License Agreement (CLA)
66

77
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).
88

99
## How to Contribute
1010

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.
1941
2042
## Getting Help
2143
22-
If you have questions or need assistance:
44+
If you have questions or need help:
2345
- Join our [Discord server](https://discord.gg/powersync) to ask questions and connect with the community.
2446
- Open an issue on GitHub if you encounter a problem or have a suggestion.
2547

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,38 +28,35 @@ Welcome to the PowerSync documentation repository! Our docs are powered by [Mint
2828

2929
## Contributing
3030

31-
See [CONTRIBUTING.md](./CONTRIBUTING.md) for details on how to contribute.
31+
We welcome contributions! Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for details.
3232

33-
## Publishing Updates
33+
## Publishing
3434

35-
Any updates merged into the `main` branch are automatically published to https://docs.powersync.com.
35+
All changes merged to the `main` branch are automatically published to https://docs.powersync.com.
3636

37-
**Publishing workflow:**
38-
- Create a pull request (PR) to the `main` branch.
39-
- Ensure all checks pass (including a check for broken links).
40-
- Request a review.
41-
- Merge the PR once approved.
4237

43-
## Navigation & Global Settings
38+
## Editing guidelines
39+
40+
### Navigation & Global Settings
4441

4542
- Navigation and other global settings are defined in `docs.json`. Learn more in [Mintlify's docs](https://mintlify.com/docs/settings/global).
4643
- If you move or rename a page, add a redirect using the `redirects` property to ensure existing links continue to work.
4744

48-
## Checking for Broken Links
45+
### Checking for Broken Links
4946

5047
Regularly check for broken links by running:
5148
```
5249
npx mintlify broken-links
5350
```
5451

55-
## Whitelisting & Blacklisting Terms (Vale)
52+
### Whitelisting & Blacklisting Terms (Vale)
5653

5754
To whitelist terms so Mintlify's Vale integration does not flag them as misspelled:
5855
- Add terms (one per line, case-insensitive) to `.github/vale/config/vocabularies/PowerSync/accept.txt`.
5956
- To blacklist terms, create a `reject.txt` file in the same folder.
6057
- For more info, see [Mintlify's docs](https://mintlify.com/docs/settings/ci#vale) and [Vale's docs](https://vale.sh/docs/keys/vocab).
6158

62-
## Icons
59+
### Icons
6360

6461
FontAwesome icons are supported: https://fontawesome.com/search
6562

@@ -75,7 +72,7 @@ We use the following icons for supported backend databases and SDKs:
7572
- Node.js: `icon="node-js"`
7673
- .NET: `icon="microsoft"`
7774

78-
## Useful References
75+
### Useful References
7976

8077
- [Writing content](https://mintlify.com/docs/page)
8178
- [Available components](https://mintlify.com/docs/content/components/accordions)

0 commit comments

Comments
 (0)