<a id="how-to-contribute"></a>

# How to contribute

#### NOTE
See [CONTRIBUTING.md](https://github.com/canonical/charmed-ingress-documentation/blob/main/CONTRIBUTING.md)
for information on contributing to the source code.

Our documentation is stored in the `docs` directory alongside the [source code on GitHub](https://github.com/canonical/charmed-ingress-documentation/).
It is based on the Canonical starter pack
and hosted on [Read the Docs](https://about.readthedocs.com/). In structuring,
the documentation employs the [Diátaxis](https://diataxis.fr/) approach.

Click on the “Contribute to this page” icon at the top of each page to propose changes. This button
will bring you directly to the source on GitHub. Similarly, you may click on “Give feedback” to provide
suggestions or feedback about any page in the documentation.

On GitHub, you may open a pull request with your documentation changes, or you can
[file a bug](https://github.com/canonical/charmed-ingress-documentation/issues) to provide constructive feedback or suggestions.

For syntax help and guidelines,
refer to the
[Canonical MyST style guide](https://documentation.ubuntu.com/sphinx-stack/latest/reference/myst-syntax/#myst-syntax).

To run the documentation locally before submitting your changes:

```bash
cd docs
make run
```

## Automatic checks

GitHub runs automatic checks on the documentation
to verify spelling, validate links and style guide compliance.

You can (and should) run the same checks locally:

```bash
make spelling
make linkcheck
make vale
make lint-md
```
