Thank you for your interest in contributing to our documentation! We welcome contributions from the community to help improve and expand our documentation.
Before you start contributing, ensure you have the following prerequisites installed:
-
Fork the Repository: Start by forking the documentation repository to your own GitHub account.
-
Clone the Repository: Next, clone the forked repository to your local machine.
git clone https://github.com/your-username/docs.git
-
Install Dependencies: Install the necessary dependencies for the documentation project.
cd docs pnpm install
-
Start the Development Server: Start the Vitepress development server to preview your changes.
pnpm run docs:dev
The development server will start, and you can access the documentation site at http://localhost:5173.
-
Create a New Branch: Create a new branch for your changes.
git checkout -b my-feature-branch
-
Update the Documentation: Make your changes to the documentation. This could include:
- Adding new pages
- Updating existing content
- Fixing typos or grammatical errors
- Improving the organization or structure of the documentation
- Adding new translations
-
Preview Your Changes: Use the Vitepress development server to preview your changes and ensure they look as expected.
-
Commit and Push Your Changes: Once you're satisfied with your changes, commit them and push the branch to your forked repository.
git add . git commit -m "Add a new guide for setting up the development environment" git push origin my-feature-branch
-
Create a Pull Request: Go to the original repository on GitHub and create a new pull request, comparing your feature branch with the main branch of the original repository.
-
Describe Your Changes: In the pull request description, provide a clear and concise explanation of the changes you've made and why they are valuable to the project.
-
Address Feedback: The maintainers may request changes or provide feedback on your pull request. Please be responsive to this feedback and make any necessary updates to your branch.
- Follow the existing coding style and formatting used in the documentation repository.
- Ensure your changes are consistent with the overall tone and voice of the documentation.
- Make use of Vitepress's built-in features, such as frontmatter, custom components, and Markdown extensions, where appropriate.
- Write clear and concise documentation that is easy for users to understand.
For code blocks where multiple languages can be used, vitepress provides a way to specify blocks for multiple languages. Use the following syntax:
::: code-group
```java [Java]
// Java code goes here
```
```kotlin [Kotlin]
// Kotlin code goes here
```
:::
Vitepress provides a variety of Markdown extensions that can be used to enhance the documentation. You can find a list of available extensions in the Vitepress documentation.
We appreciate your contributions to the Mockbukkit documentation. By working together, we can create high-quality, user-friendly documentation that benefits the entire community.