|
1 | | -# Contribution Guide for Plane Docs |
| 1 | +# Contribution Guide |
2 | 2 |
|
3 | | -Thank you for considering contributing to Plane docs! Your contributions help improve the quality and accessibility of our documentation for all users. Please follow the guidelines outlined below to ensure a smooth contribution process. |
| 3 | +Thank you for considering contributing to the Plane developer documentation! |
| 4 | +Your contributions help improve the quality and accessibility of our |
| 5 | +documentation for all users. Please follow the guidelines outlined below to |
| 6 | +ensure a smooth contribution process. |
4 | 7 |
|
5 | | -### 1. Create a New Issue (if it doesn't exist) |
6 | | -If you encounter a problem or wish to suggest an improvement in the documentation that hasn't been addressed yet, please create a new issue. Be sure to check existing issues to avoid duplication. Include a clear description of the problem or enhancement you're suggesting. |
| 8 | +## 1. Create a new issue |
7 | 9 |
|
8 | | -### 2. Create a New Branch from Master |
9 | | -Before making any changes, create a new branch from the `master` branch. This branch will contain your proposed changes and keep the `master` branch clean for stable releases. |
| 10 | +If you encounter a problem or wish to suggest an improvement in the |
| 11 | +documentation that hasn't been addressed yet, please create a [new issue](https://github.com/makeplane/developer-docs/issues/new). Be sure |
| 12 | +to check existing [issues](https://github.com/makeplane/developer-docs/issues) to avoid duplication. Include a clear description of |
| 13 | +the problem or enhancement you're suggesting. |
| 14 | + |
| 15 | +## 2. Contributing |
| 16 | + |
| 17 | +To contribute your changes, you have two options: |
| 18 | + |
| 19 | +1. Edit the files directly on Github |
| 20 | + - Perfect for small, single-file changes. This is the easiest option but you |
| 21 | + won't be able quickly iterate on your changes with a running server. |
| 22 | +1. Run this site locally |
| 23 | + - Excellent for any size of change. |
| 24 | + |
| 25 | +## Option 1 - Edit on Github |
| 26 | + |
| 27 | +1. While viewing our docs on [developers.plane.so](https://developers.plane.so), navigate to the page you want to change. Scroll to the bottom and click the 'Edit this page' link. |
| 28 | +2. If prompted, click the 'Fork this repository' button |
| 29 | +3. Make your edits |
| 30 | +4. Click the 'Commit changes' button |
| 31 | +5. Fill out the form, making sure the 'Commit message' is short and meaningful. |
| 32 | + In the 'Extended description' field, be sure to reference the related issue |
| 33 | + using GitHub's syntax (`#123`). This links your Pull Request to the |
| 34 | + issue and helps us understand your reason for the changes. |
| 35 | +6. Click 'Propose changes' |
| 36 | +7. Click the 'Create pull request' button |
| 37 | + |
| 38 | +## Option 2 - Edit locally |
| 39 | + |
| 40 | +Follow these steps to run this site and make your changes locally. |
| 41 | + |
| 42 | +### 1. Clone this repository |
10 | 43 |
|
11 | 44 | ```bash |
12 | | -git checkout master |
13 | | -git pull origin master |
| 45 | +git clone [email protected]:makeplane/developer-docs.git && cd developer-docs |
| 46 | +``` |
| 47 | + |
| 48 | +### 2. Create a new branch |
| 49 | + |
| 50 | +Before making any changes, create a new branch from the `main` branch. This |
| 51 | +branch will contain your proposed changes and keep the `main` branch clean for |
| 52 | +stable releases. |
| 53 | + |
| 54 | +```bash |
| 55 | +git checkout main |
| 56 | +git pull origin main |
14 | 57 | git checkout -b <branch-name> |
15 | 58 | ``` |
16 | 59 |
|
17 | | -### 3. Make Changes in the Appropriate Page |
18 | | -Navigate to the relevant documentation page in the repository and make your changes. Ensure that your changes align with our style guide and maintain consistency across the documentation. |
| 60 | +Next, install the dependencies. |
| 61 | + |
| 62 | +```bash |
| 63 | +corepack enable pnpm |
| 64 | +pnpm install |
| 65 | +``` |
| 66 | + |
| 67 | +### 3. Run the site locally |
| 68 | + |
| 69 | +Start up a local development server so you can preview your changes before submitting them for review. |
| 70 | + |
| 71 | +```bash |
| 72 | +pnpm dev |
| 73 | +``` |
| 74 | + |
| 75 | +This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. |
| 76 | + |
| 77 | +#### About this site |
19 | 78 |
|
20 | | -### 4. Preview your changes |
21 | | -Make sure you are visually happy with your changes. |
| 79 | +This site is built using [Docusaurus](https://docusaurus.io/), an open source |
| 80 | +static website generator along with |
| 81 | +[docusaurus-openapi-docs](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs). |
22 | 82 |
|
23 | | -1. Run `npx mint dev` |
24 | | -1. A url will be printed to your console. Open it in your browser. |
25 | | -1. Visit your pages and confirm they look correct. |
| 83 | +To find out which directories are served at which routes, [read this](https://docusaurus.io/docs/next/advanced/routing). |
26 | 84 |
|
27 | | -### 5. Fix broken links |
| 85 | +### 4. Make changes |
28 | 86 |
|
29 | | -1. Run `npx mint broken-links` |
30 | | -2. Fix all reported broken links |
| 87 | +Open the relevant documentation file and make your changes. Using your local |
| 88 | +browser, review that your changes look as you expect and they align with our |
| 89 | +current styles and tone across the documentation. |
31 | 90 |
|
32 | | -### 6. Raise a Pull Request (PR) |
33 | | -Once your changes are ready, raise a pull request (PR) to merge your branch into the `master` branch. Please provide a descriptive title and detailed description of your changes. |
| 91 | +**Warning**: All files in `docs/api/*` are auto-generated. Do not edit by hand. |
34 | 92 |
|
35 | | -### 7. Leave a Clear Commit Message |
36 | | -When committing your changes, leave a clear and concise message that links to the corresponding issue (if applicable) and explains the fix or enhancement you've made. |
| 93 | +### 5. Commit your changes |
| 94 | + |
| 95 | +When committing your changes, leave a clear and concise message that links to |
| 96 | +the corresponding issue (if applicable) and explains the fix or enhancement |
| 97 | +you've made. |
37 | 98 |
|
38 | 99 | ```bash |
39 | 100 | git add . |
40 | 101 | git commit -m "Fixes #<issue-number>: Description of the fix or enhancement" |
41 | 102 | ``` |
42 | 103 |
|
43 | | -### 8. Link the Issue to the Pull Request |
| 104 | +### 6. Link the Issue to the Pull Request |
| 105 | + |
44 | 106 | In your pull request description, be sure to reference the related issue using GitHub's syntax (`#<issue-number>`). This links the PR to the issue and helps maintain context. |
45 | 107 |
|
46 | | -### 9. Sign the Contributor License Agreement (CLA) |
| 108 | +### 7. Sign the Contributor License Agreement (CLA) |
| 109 | + |
47 | 110 | Before we can merge your contribution, you must sign our contributor license agreement (CLA). This agreement ensures that your contributions comply with our licensing terms. |
48 | 111 |
|
49 | | -### 10. Assign a Reviewer from Our Team |
50 | | -Once your PR is submitted, a member of our team will be assigned to review your changes. They will provide feedback and may request revisions if necessary. Please respond promptly to any review comments to expedite the merging process. |
| 112 | +### 8. Reviews |
| 113 | + |
| 114 | +Once your Pull Request is submitted, a member of our team will be assigned to review your changes. They will provide feedback and may request revisions if necessary. Please respond promptly to any review comments to expedite the review and acceptance process. |
| 115 | + |
| 116 | +## Thank you! |
51 | 117 |
|
52 | | -Thank you for contributing to our documentation! We appreciate your efforts in making our product documentation more comprehensive and user-friendly. If you have any questions or need assistance, feel free to reach out to our team. Happy contributing! |
| 118 | +Thank you for contributing to our documentation! We greatly appreciate your efforts to help improve the Plane community. |
0 commit comments