Contributing to Documentation

The documentation for Pywr V2 is located in the pywr-next repository, here in the pywr-book subfolder.

The documentation is written using 'markdown', a format which enables easy formatting for the web.

This website can help get started: www.markdownguide.org

To contribute documentation for Pywr V2, we recommend following the steps below to ensure we can review and integrate any changes as easily as possible.

Steps to create documentation

  1. Fork the pywr-next repository

Fork the repository

  1. Clone the fork
    git clone https://github.com/MYUSER/pywr-next
  1. Create a branch
    git checkout -b my-awesome-docs
  1. Open the book documentation in your favourite editor
    vi pywr-next/pywr-book/introduction.md

Which should look something like this:

An example docs file

  1. Having modified the documentation, add and commit the changes using the commit format
git add introduction.md"
git commit -m "docs: Add an example documentation"
  1. Create a pull request from your branch
    1. In your fork, click on the 'Pull Requests' tab Pull request

    2. Click on 'New Pull Request' Pull request

    3. Choose your branch from the drop-down on the right-hand-side Pull request

    4. Click 'Create Pull Request' when the button appears Pull request

    5. Add a note if you want, and click 'Create Pull Request' Pull request