Contributing to the documentation#
All markdown files for the documentation are in the docs/ folder. To contribute:
You can improve an existing page by editing its
.mdfile. For example, updatedocs/model_formulation.mdto improve the model formulation section.You can add a new page by creating a new markdown file in
docs/. If you do this, don’t forget to:Add the new file to the
_toc.ymlfile so it appears in the documentation sidebar.
How to update and improve the documentation#
When contributing to the EPM documentation, please follow these steps to keep your changes compatible with the latest version of the project.
1 Recommended setup#
It’s best to have two local EPM folders:
One folder tracking the
mainbranch (the official version).Another folder for your custom developments or models.
This setup helps you avoid merge conflicts when you want to contribute only documentation updates.
2 Update your local main branch#
Before making any changes to the documentation, make sure you are on the main branch and that it’s up to date:
# Go to your EPM directory that tracks the main branch
cd path/to/EPM
# Switch to the main branch
git checkout main
# Pull the latest changes from the remote repository
git pull
3 Make your documentation changes#
Modify the documentation files directly in the main branch (e.g., under docs/, README.md, etc.).
Go to the
docs/folder.Edit an existing markdown file or create a new one.
If you add a new file, update
_toc.ymlto include it in the navigation.Add your changes to git and push them to the
mainbranch.
If you already made documentation changes in another branch (your custom branch),
it’s usually best to manually copy or reapply those changes onto the updated main branch,
rather than merging that branch — this avoids bringing in unrelated code.
4 Commit your changes#
git add path/to/modified/files
git commit -m "Update documentation on ..."
5 Create a Pull Request (PR)#
Push your changes and open a PR to merge them into main.
git push origin main
Then:
Open the repository on GitHub.
Click “Compare & pull request”.
Add a clear title and a short explanation of what you changed or improved.
Submit your PR for review.
Summary
Keep a separate EPM folder for
mainand another for your personal development.Always
git pullbefore editing documentation.Apply edits directly to the updated
main.Create a Pull Request when ready.
Thank you for helping improve this project !