The Catalyst Cooperative Handbook contains the cooperative's bylaws, policies and general information.
This repo allows us to version control and review changes to our policies.
To edit these docs you need to clone the catalyst-handbook
repo and set up a conda environment:
git clone [email protected]:catalyst-cooperative/catalystcoop-handbook.git
We use the mamba
/conda
package manager to specify and update our development environment.
mamba env create --name handbook --file environment.yml
conda activate handbook
Git hooks let you automatically run scripts at various points as you manage your source code. “Pre-commit” hook scripts are run when you try to make a new commit. These scripts can review your code and identify bugs, formatting errors, bad coding habits, and other issues before the code gets checked in. This gives you the opportunity to fix those issues before publishing them.
To make sure they are run before you commit any code, you need to enable the pre-commit hooks scripts with this command:
pre-commit install
The scripts that run are configured in the .pre-commit-config.yaml file.
To make changes to the handbook, edit the relevant markdown documents in the docs/
directory. Once the changes are made
you can build the docs by running:
tox
This command will build the docs and write the html files to docs/_build/
. You can view the docs locally by opening the docs/_build/index.html
file.
Once the docs are built locally, you can push your changes and open a PR for review. There is a GitHub Action that will build and deploy the changes
to Read the Docs.
If you don't want to make edits with a CLI and code editor, you can use the GitHub UI:
- Click the "Edit" button for the document you want to change:
- Make your changes.
- Select "Create a new branch for this comment and start a pull request", add a commit message and select "Commit changes":
- Tag someone to review your changes.
The changes must be reviewed and approved by someone else to be merged into the main
branch.