|
2 | 2 | title: "Contributing to Coolify Documentation" |
3 | 3 | --- |
4 | 4 |
|
5 | | -# Contribution Guide |
| 5 | +# Coolify Docs Contribution Guide |
6 | 6 |
|
7 | | -Follow these steps to contribute to our documentation: |
| 7 | +This guide outlines the process for contributing updates and fixes to our docs. Please follow the steps below to ensure a smooth and efficient workflow. |
8 | 8 |
|
9 | | -## 1. Fork and Clone the Repository |
10 | 9 |
|
11 | | -- Fork the documentation repository on GitHub. |
12 | | -- Clone your fork to your local system using: |
| 10 | +## 1. Repository Workflow |
| 11 | +- **Release Process:** |
| 12 | + We follow a weekly production release cycle. The **main** branch represents production, while the **next** branch is used as our development branch. |
| 13 | + |
| 14 | +- **Branching Guidelines:** |
| 15 | + - **Do not create pull requests (PRs) to the main branch.** |
| 16 | + - All contributions should be made to the **next** branch. |
| 17 | + - **Clone the repository from the next branch** to your GitHub account, then start working on your changes. |
| 18 | + |
| 19 | + |
| 20 | +## 2. Getting Started |
| 21 | + |
| 22 | +### Step 1: Fork and Clone the Repository |
| 23 | +- First fork the docs repository to your github account, then clone your fork to your local system using: |
13 | 24 | ```sh |
14 | 25 | git clone https://github.com/your-username/your-repo-name.git |
15 | 26 | ``` |
16 | | -- Navigate to the cloned directory: |
| 27 | +- Navigate to the cloned repository: |
17 | 28 | ```sh |
18 | 29 | cd your-repo-name |
19 | 30 | ``` |
20 | 31 |
|
21 | | -## 2. Install Dependencies |
| 32 | +### Step 2: Install Dependencies and Run the Dev Server |
| 33 | +We use [bun](https://bun.sh/) as our preferred package manager for local development. If you choose to use a different package manager, please **do not include its configuration files** in your commit. |
22 | 34 |
|
23 | | -Run one of the following commands to install dependencies: |
24 | | - ```sh |
25 | | - bun install |
26 | | - # or |
27 | | - npm install |
28 | | - # or |
29 | | - yarn install |
30 | | - # or |
31 | | - pnpm install |
32 | | - ``` |
| 35 | +To set up your environment, run: |
| 36 | +```bash |
| 37 | +bun install && bun run dev |
| 38 | +``` |
33 | 39 |
|
34 | | -## 3. Start the Development Server |
| 40 | +The development server will start on `localhost` at port `5173`. You can view the documentation by navigating to: |
| 41 | +```bash |
| 42 | +http://localhost:5173/docs/ |
| 43 | +``` |
35 | 44 |
|
36 | | -Run one of the following commands to start the development server: |
37 | | - ```sh |
38 | | - bun dev |
39 | | - # or |
40 | | - npm run dev |
41 | | - # or |
42 | | - yarn dev |
43 | | - # or |
44 | | - pnpm dev |
| 45 | + |
| 46 | +## 3. Image Guidelines |
| 47 | +- **Format:** |
| 48 | + All images used in the documentation must be in `.webp` format. |
| 49 | + |
| 50 | +- **Location:** |
| 51 | + Place all image files in the `/docs/public` directory. |
| 52 | + |
| 53 | +- **Usage:** |
| 54 | + Use the Zoomable image component on the docs to attach your images |
| 55 | + ```vue |
| 56 | + <ZoomableImage src="path-to-the-image.webp" /> |
45 | 57 | ``` |
46 | | -This will start a local server and provide a URL to preview your changes. |
47 | 58 |
|
48 | | -## 4. Make Your Contribution |
49 | 59 |
|
50 | | -- Edit an existing markdown file in the `/docs` directory. |
51 | | -- Or create a new `.md` file inside `/docs` or its subdirectories. |
| 60 | +## 4. Writing and Structuring Content |
| 61 | + |
| 62 | +### Best Practices for Documentation: |
| 63 | +- **Clear and Simple Language:** |
| 64 | + Use plain and easily understandable English. Remember that not all readers are native English speakers. |
| 65 | + |
| 66 | +- **Beginner-Friendly Guides:** |
| 67 | + Break down instructions into small, easy-to-follow steps. Include screenshots wherever possible to help visualize the process, especially for users new to self-hosting or Coolify. |
| 68 | + |
| 69 | +- **Content Organization:** |
| 70 | + Structure your content with clear headings, bullet points, and numbered steps where applicable. This makes it easier for readers to follow along. |
| 71 | + |
| 72 | + |
| 73 | +## 5. Submitting Your Contribution |
| 74 | +1. **Commit your changes to your repository** |
| 75 | + |
| 76 | +2. **Create a Pull Request:** |
| 77 | + - Open a pull request (PR) to merge your changes into the **next** branch on the docs repository. |
| 78 | + - Provide a detailed description of your updates to help maintainers review your contribution effectively. |
| 79 | + |
| 80 | + |
| 81 | +## 6. Questions and Support |
| 82 | +If you have any questions or run into issues while contributing: |
| 83 | + - **Create an Issue:** Open an issue on the repository detailing your issue. |
| 84 | + - **Discord:** Reach out to us on contribute channel on the Coolify Discord community. |
| 85 | + |
52 | 86 |
|
53 | | -## 5. Submit a Pull Request |
| 87 | +## 7. Important Notes |
| 88 | +- **Documentation Updates:** |
| 89 | + The current docs are bit outdated and missing some information. The docs maintainers are actively rewriting parts of the documentation to improve structure and clarity before new content is added. |
54 | 90 |
|
55 | | -- Push your changes to your forked repository. |
56 | | -- Create a pull request to merge your changes into the main documentation repository. |
| 91 | +- **PR Approval:** |
| 92 | + Merging of your PR is subject to review by the maintainers. Please be patient as they work through the process. |
57 | 93 |
|
58 | | -Thank you for contributing! |
59 | 94 |
|
| 95 | +We appreciate your contribution and effort in making the Coolify docs better for everyone. |
0 commit comments