We are super happy if you are interested in contributing to the documentation of the Green Metrics Tool.
All contributions should be done via Pull Requests. We use the standard forking workflow for Pull Requests. If you are not familiar with forks, you can find more information e.g. in GitHub's documentation
We use markdownlint-cli2 for linting the content of the documentation.
To check if the content has linting issues you can call
npm run lint:markdownin the project directory.
To automatically resolve fixable issues, use
npm run lint:markdown-fixWe recommend that you set a pre-commit hook to lint and fix issues automatically every time you commit. This can be done by adding
npm run lint:markdown-fix:staged
# or, if you want to fix manually
npm run lint:markdown:stagedto a file named ./.git/hooks/pre-commit and making it executable chmod +x ./.git/hooks/pre-commit