Contributing to the Wiki¶
Below you can fiend a brief description on how to contribute for the Wiki repository.
Getting started¶
1. Fork the repository¶
First, create a fork of the repository to your personal GitHub account:
- Navigate to the knowledge-base repository
- Click the "Fork" button in the top-right corner
- Wait for GitHub to create the fork in your account
2. Clone Your Fork¶
Once you have forked the repository, clone it to your local machine:
3. Create a new branch¶
Create a new branch for your changes:
Choose a descriptive branch name related to your contribution (e.g., add-mace-tutorial, update-ase-resources).
Making changes¶
Adding Documentation¶
When adding new documentation:
- Create your markdown files in the appropriate location under the
docsdirectory - Use clear, concise language
- Include code examples, screenshots, weblinks, or diagrams where helpful
Adding Scripts¶
When adding scripts or code examples:
- Place scripts in the
scriptsdirectory or a relevant subdirectory - Include reference and description of your code in the directory README.md file
- (Optional) Create a small documentation in the docs directory explaining how to use the script
Updating Navigation Structure¶
After adding new documentation, update the navigation structure in mkdocs.yml:
nav:
- Home: index.md
- Section X:
- old_page.md
- your_new_page.md # Add your new page
- New Section: # Create a new section
- new_page_section.md
Build and preview changes¶
Set up environment¶
Install the required dependencies:
Preview locally¶
Preview your changes locally before submitting:
This will start a local server at for example http://127.0.0.1:8000/ where you can preview the documentation.
Preview on your GitHub fork¶
To preview the changes on GitHub Pages from your fork:
- Go to your forked repository on GitHub
- Click on "Settings"
- Navigate to the "Pages" section in the sidebar
- Under "Source", select "Deploy from Branch"
- Under "Branch", select "gh-pages" and "/root"
The documentation site will be built automatically when you push changes to your fork.
Submitting your contribution¶
Commit and Push Changes¶
Once you're satisfied with your changes:
Create a pull request¶
- Navigate to your fork on GitHub
- Click "Pull Request"
- Select the branch containing your changes
- Add a clear title and description of your changes
- Important: Assign at least one reviewer to examine your changes
- Click "Create Pull Request"
Review process¶
- Wait for feedback from the assigned reviewers
- Make any requested changes to your branch
- Push the changes to automatically update the pull request
- Once approved, a maintainer will merge your contribution
Best Practices¶
- Keep changes focused: Each pull request should address a single concern
- Test thoroughly: Ensure all links work and documentation renders correctly
- Follow existing patterns: Maintain consistency with the current structure
- Request reviews: Always request at least one review before merging
- Communicate: Use clear commit messages and PR descriptions