Minor typos to CONTRIBUTING.md
This commit is contained in:
1 parent
f61e9d9f7d
commit
ccc3911e55
1 file changed
+15
-17
+15
-17
@@ -4,7 +4,7 @@ Thanks for considering donating your time and energy! I value any contribution,
|
||||
even if it is just to highlight a typo.
|
||||
|
||||
Included here are some guidelines that can help streamline taking in your contribution.
|
||||
They are just guidelines and not hard-and-fast rules. Things will probably go faster
|
||||
They are just guidelines and not hard-and-fast rules. Things will probably go faster
|
||||
and smoother if you have the time and energy to read and follow these suggestions.
|
||||
|
||||
## Contributing Documentation
|
||||
@@ -28,7 +28,7 @@ Look at [mkdocs serve](https://www.mkdocs.org/user-guide/cli/#mkdocs-serve) for
|
||||
### Operating system specific installation instructions?
|
||||
|
||||
There are a lot of targets out there. Today we have docs that are Ubuntu biased
|
||||
and I know that there are a lot of flavors of Linux. Rather than expand the README
|
||||
and I know that there are a lot of flavors of Linux. Rather than expand the README
|
||||
with instructions for those, please translate the instructions into steps that
|
||||
can be run in the [`get-deps`](https://github.com/wezterm/wezterm/blob/master/get-deps)
|
||||
script.
|
||||
@@ -41,14 +41,14 @@ If you are new to the Rust language check out <https://doc.rust-lang.org/rust-by
|
||||
|
||||
### Where to find things?
|
||||
|
||||
The `term` directory holds the core terminal model code. This is agnostic
|
||||
of any windowing system. If you want to add support for terminal escape
|
||||
sequences and that sort of thing, you probably want to be in the `term` dir.
|
||||
The `term` directory holds the core terminal model code. This is agnostic
|
||||
of any windowing system. If you want to add support for terminal escape
|
||||
sequences and that sort of thing, you probably want to be in the `term` directory.
|
||||
Keep in mind that for maximal compatibility and utility `wezterm` aims to
|
||||
be compatible with the `xterm` behavior.
|
||||
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html is a useful resource!
|
||||
|
||||
The `src` directory holds the code for the `wezterm` program. This is
|
||||
The `src` directory holds the code for the `wezterm` program. This is
|
||||
the GUI renderer for the terminal model. If you want to change something
|
||||
about the GUI you want to be in the `src` dir.
|
||||
|
||||
@@ -62,14 +62,14 @@ than building everything in release mode:
|
||||
$ cargo check
|
||||
```
|
||||
|
||||
Likewise, if you want to quick check that something works, you can run it
|
||||
Likewise, if you want to quickly check that something works, you can run it
|
||||
in debug mode using:
|
||||
|
||||
```console
|
||||
$ cargo run
|
||||
```
|
||||
|
||||
This will produce a debug instrumented binary with poor optimization. This will
|
||||
This will produce a debug-instrumented binary with poor optimization. This will
|
||||
give you more detail in the backtrace produced if you run `RUST_BACKTRACE=1 cargo run`.
|
||||
|
||||
If you get a panic and want to examine local variables, you'll need to use gdb:
|
||||
@@ -93,10 +93,8 @@ $ cargo test --all
|
||||
```
|
||||
|
||||
There are some helper classes for writing tests for terminal behavior.
|
||||
Here's an example of a test to verify that the terminal contents
|
||||
match expectations:
|
||||
|
||||
https://github.com/wezterm/wezterm/blob/master/term/src/test/mod.rs#L334
|
||||
Here's [an example of a test to verify that the terminal contents
|
||||
match expectations](https://github.com/wezterm/wezterm/blob/fd532a8c2fb3b56593597cf8be1775da1feda0a3/term/src/test/mod.rs#L314).
|
||||
|
||||
Please also make a point of adding comments to your tests to help
|
||||
clarify the intent of the test!
|
||||
@@ -105,20 +103,20 @@ clarify the intent of the test!
|
||||
|
||||
This helps to keep things well-understood and working in the long term.
|
||||
Don't worry if you're not a wordsmith or English isn't your first language as
|
||||
I can help with that. It is more important to capture the intent of the
|
||||
I can help with that. It is more important to capture the intent of the
|
||||
feature and having this written out in English also helps when it comes
|
||||
to reviewing the code.
|
||||
|
||||
## Submitting a Pull Request
|
||||
|
||||
After considering all of the above, and once you're prepared your contribution
|
||||
After considering all of the above, and once you've prepared your contribution
|
||||
and are ready to submit it, you'll need to create a pull request.
|
||||
|
||||
If you're new to GitHub pull requests, read through
|
||||
If you're new to GitHub Pull Requests, read through
|
||||
https://help.github.com/articles/creating-a-pull-request/ to understand
|
||||
how that process works.
|
||||
how the process works.
|
||||
|
||||
### Before your submit your code
|
||||
### Before you submit your code
|
||||
|
||||
Make sure that the tests are working and that the code is correctly
|
||||
formatted otherwise the continuous integration system will fail your build:
|
||||
|
||||
Reference in new issue
Block a user