We welcome contributions from everyone in the Grimwald SMP community! Whether you’re helping improve documentation, fixing typos, or adding new content, we appreciate your efforts. Please follow these guidelines to ensure consistency and quality across the knowledge base.
- All contributions should align with the Grimwald Knowledge Base standards. Review the Documentation Standards before contributing.
- Contributions must be respectful and objective, adhering to the community’s values.
- Do not mention players or staff members by their real or online names in any documentation or contributions.
Grimwald's Knowledge Base is hosted on GitHub. To contribute, please follow these steps: A GitHub Account and having Git installed are necessary before continuing. Prior knowledge of GitHub and Git will be helpful but are not required.
- Visit the Grimwald Knowledge Base repository on GitHub.
- Click on the Fork button in the top-right corner to create a copy of the repository under your GitHub account.
- Clone your forked repository to your local machine:
git clone https://github.com/Grimwald-SMP/grimwald-knowledge-base.git - Navigate to the project directory:
cd grimwald-knowledge-base - Create a new branch for your changes:
git checkout -b your-feature-branch - Make the necessary changes in your local copy. Follow the Documentation Standards for formatting and writing guidelines.
- Test your changes locally (see section on MkDocs below).
Once your changes are complete:
- Commit your changes:
git add .git commit -m "Description of changes made" - Push your branch to your forked respository:
git push origin your-feature-branch - Go to the GitHub Repostory and create a Pull Request (PR) from your branch to the main repositories
mainbranch. - Ensure your PR:
- Includes edits to the
changelog.mdfile explaining your changes. - Adheres to the standards.
- Includes edits to the
Admins will review the PR, and after any necessary revisions, your changes will be merged into the main repository.
The Grimwald Knowledge Base is built using MkDocs. To view and preview your changes locally, follow these steps:
- If you haven't already you will need to install python on your machine. Download on Python.org
- If you haven't already installed MkDocs, you can do so by running:
pip install mkdocs
To preview your changes locally, you need to run the development server:
- Navigate to your forked repository's root directory:
cd grimwald-knowledge-base - Start the MkDocs development server:
mkdocs serve - Visit http://127.0.0.1:8000 in your browser to preview the documentation.
If you are an admin you will also need to know how to build and deploy the docs. You should build and deploy after every change to main. If you are an admin and are the one making or the one who reviewed and accepted the changes you are responsible for doing this yourself.
- After merging the required changes from a PR into the
mainbranch, Run the following command to build the documentation into a static site and deploy it to GitHub Pages:mkdocs gh-deploy. - Warning Using this command will deploy the site from your local branch, including changes that have not been commited, delete or stash changes first.
- You will need to be a collaborator in the repository to perform this command.
If there are merge conflicts:
- Make sure you pull the latest changes from the main repostitory:
git pull origin main - Resolve the conflicts and push the changes.
- Please refrain from editing brand-related documents or documents relating to Grimwald's core identity and values unless you have been explicitly told to by an admin, If you are an admin you should make sure the owner(s) are ok with this change. This applies to major changes and not fixes such as correcting typos.
- Keep your pull requests small and focused on a single task or feature. This makes them easier to review and less prone to errors.
- Always test your changes locally to ensure everything is working as expected before submitting your PR.
- Bare in mind if you build the docs locally, they may not behave as expected when opening the html files as some features do not work until they are hosted on a server, Instead you should stick to viewing them on the development server.
By following these guidelines, you ensure that Grimwald’s Knowledge Base remains organized, up-to-date, and helpful to all users.