2021-11-17 17:30:11 +04:00
|
|
|
# Contributing
|
|
|
|
|
|
|
|
Contributors are very welcome! **No contribution is too small and all contributions are valued.**
|
|
|
|
|
|
|
|
Some suggestions to get started:
|
|
|
|
|
|
|
|
- You can look at the [good first issue][good-first-issue] label on the issue tracker.
|
|
|
|
- Help with packaging on various distributions needed!
|
|
|
|
- To use print debugging to the [Helix log file][log-file], you must:
|
|
|
|
* Print using `log::info!`, `warn!`, or `error!`. (`log::info!("helix!")`)
|
|
|
|
* Pass the appropriate verbosity level option for the desired log level. (`hx -v <file>` for info, more `v`s for higher severity inclusive)
|
|
|
|
- If your preferred language is missing, integrating a tree-sitter grammar for
|
|
|
|
it and defining syntax highlight queries for it is straight forward and
|
|
|
|
doesn't require much knowledge of the internals.
|
|
|
|
|
|
|
|
We provide an [architecture.md][architecture.md] that should give you
|
|
|
|
a good overview of the internals.
|
|
|
|
|
|
|
|
# Auto generated documentation
|
|
|
|
|
|
|
|
Some parts of [the book][docs] are autogenerated from the code itself,
|
|
|
|
like the list of `:commands` and supported languages. To generate these
|
|
|
|
files, run
|
|
|
|
|
|
|
|
```shell
|
2021-11-21 22:55:08 +04:00
|
|
|
cargo xtask docgen
|
2021-11-17 17:30:11 +04:00
|
|
|
```
|
|
|
|
|
|
|
|
inside the project. We use [xtask][xtask] as an ad-hoc task runner and
|
|
|
|
thus do not require any dependencies other than `cargo` (You don't have
|
|
|
|
to `cargo install` anything either).
|
|
|
|
|
2022-06-05 00:08:34 +04:00
|
|
|
# Integration tests
|
|
|
|
|
|
|
|
Integration tests for helix-term can be run with `cargo integration-test`. Code
|
|
|
|
contributors are strongly encouraged to write integration tests for their code.
|
|
|
|
Existing tests can be used as examples. Helpers can be found in
|
2022-08-11 17:57:17 +04:00
|
|
|
[helpers.rs][helpers.rs]
|
|
|
|
|
2022-09-23 10:58:00 +04:00
|
|
|
## Minimum Stable Rust Version (MSRV) Policy
|
|
|
|
|
|
|
|
Helix follows the MSRV of Firefox.
|
|
|
|
The current MSRV and future changes to the MSRV are listed in the [Firefox documentation].
|
|
|
|
|
|
|
|
[Firefox documentation]: https://firefox-source-docs.mozilla.org/writing-rust-code/update-policy.html
|
2022-08-11 17:57:17 +04:00
|
|
|
[good-first-issue]: https://github.com/helix-editor/helix/labels/E-easy
|
|
|
|
[log-file]: https://github.com/helix-editor/helix/wiki/FAQ#access-the-log-file
|
|
|
|
[architecture.md]: ./architecture.md
|
|
|
|
[docs]: https://docs.helix-editor.com/
|
|
|
|
[xtask]: https://github.com/matklad/cargo-xtask
|
|
|
|
[helpers.rs]: ../helix-term/tests/test/helpers.rs
|