|
| 1 | +# Contribution Guide |
| 2 | + |
| 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. |
| 7 | + |
| 8 | +## 1. Create a new issue |
| 9 | + |
| 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 |
| 43 | + |
| 44 | +```bash |
| 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 |
| 57 | +git checkout -b <branch-name> |
| 58 | +``` |
| 59 | + |
| 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 |
| 78 | + |
| 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). |
| 82 | + |
| 83 | +To find out which directories are served at which routes, [read this](https://docusaurus.io/docs/next/advanced/routing). |
| 84 | + |
| 85 | +### 4. Make changes |
| 86 | + |
| 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. |
| 90 | + |
| 91 | +**Warning**: All files in `docs/api/*` are auto-generated. Do not edit by hand. |
| 92 | + |
| 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. |
| 98 | + |
| 99 | +```bash |
| 100 | +git add . |
| 101 | +git commit -m "Fixes #<issue-number>: Description of the fix or enhancement" |
| 102 | +``` |
| 103 | + |
| 104 | +### 6. Link the Issue to the Pull Request |
| 105 | + |
| 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. |
| 107 | + |
| 108 | +### 7. Sign the Contributor License Agreement (CLA) |
| 109 | + |
| 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. |
| 111 | + |
| 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! |
| 117 | + |
| 118 | +Thank you for contributing to our documentation! We greatly appreciate your efforts to help improve the Plane community. |
0 commit comments