mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
1.4 KiB
1.4 KiB
title |
---|
Contributing | General Information |
Coding Style
When refactoring, writing or altering scripts or other files, adhere to these rules:
- Adjust your style of coding to the style that is already present! Even if you do not like it, this is due to consistency. There was a lot of work involved in making all scripts consistent.
- Use
shellcheck
to check your scripts! Your contributions are checked by GitHub Actions too, so you will need to do this. You can lint your work withmake lint
to check against all targets. - Use the provided
.editorconfig
file. - Use
/bin/bash
instead of/bin/sh
in scripts
Documentation
Make sure to select edge
in the dropdown menu at the top. Navigate to the page you would like to edit and click the edit button in the top right. This allows you to make changes and create a pull-request.
Alternatively you can make the changes locally. For that you'll need to have Docker installed. Navigate into the docs/
directory. Then run:
docker run --rm -it -p 8000:8000 -v "${PWD}:/docs" squidfunk/mkdocs-material
This serves the documentation on your local machine on port 8000
. Each change will be hot-reloaded onto the page you view, just edit, save and look at the result.