| 1 |
# Contributing |
| 2 |
|
| 3 |
You can report bugs and request features using the [issues page](https://github.com/gi-ev/lni/issues). |
| 4 |
|
| 5 |
We love code contributions. |
| 6 |
You can easily work on the code if you have a GitHub account ([get one](https://github.com/join)). |
| 7 |
For that, please [fork the repository](https://help.github.com/articles/fork-a-repo/), work on the code, and submit a [pull request](https://help.github.com/articles/about-pull-requests/). |
| 8 |
|
| 9 |
## LaTeX hints |
| 10 |
|
| 11 |
We base on [reitzig's TeXLive Docker Images](https://github.com/reitzig/texlive-docker), which are small. |
| 12 |
They require each new package listed in `Texlivefile`. |
| 13 |
Thus, if you add a new LaTeX package, please also add it into that file. |
| 14 |
|
| 15 |
You can have a full `bash` environment to experiment by using following command (assuming you are on Windows and checked out the repository at `c:\git-repositories\LNI`): |
| 16 |
|
| 17 |
docker run -it --rm -v c:\git-repositories\LNI:/work/src reitzig/texlive-base:2023.1 work bash |
| 18 |
|
| 19 |
After `cd /work/src`, you are in the directory hosting `lni.dtx` and all other files. |
| 20 |
|
| 21 |
You can check successful generation of `lni.cls` based on `lni.dtx` using following command: |
| 22 |
|
| 23 |
docker run --rm -v c:\git-repositories\LNI:/work/src reitzig/texlive-base:2023.1 work |
| 24 |
|
| 25 |
⚠ Running that command overwrites `lni.cls` (based on `lni.dtx`), so be careful. ⚠ |
| 26 |
|
| 27 |
## CI checks |
| 28 |
|
| 29 |
We have a GitHub workflow running, which checks the complete build using that Docker image. |
| 30 |
|
| 31 |
## Hints on GitHub usage |
| 32 |
|
| 33 |
Take a look at GitHub's excellent overview on the [GitHub flow](https://guides.github.com/introduction/flow/index.html). |
| 34 |
The [Feature Branch Workflow](https://de.atlassian.com/git/tutorials/comparing-workflows#feature-branch-workflow) forms the basis of this kind of development. |
| 35 |
|
| 36 |
In other words: |
| 37 |
|
| 38 |
1. Fork the project |
| 39 |
2. Clone the repo: |
| 40 |
|
| 41 |
git clone [email protected]:your-username/LNI.git |
| 42 |
|
| 43 |
3. Create a new branch `patch` (or another speaking name) |
| 44 |
|
| 45 |
git checkout -b patch |
| 46 |
|
| 47 |
4. Make your changes. |
| 48 |
5. Commit your changes. |
| 49 |
Thereby, try to write a [good commit message](https://github.com/joelparkerhenderson/git_commit_message). |
| 50 |
6. Push your changes (to your repository) |
| 51 |
7. [submit a pull request](https://github.com/gi-ev/lni/compare/) |
| 52 |
8. At this point you're waiting on us. |
| 53 |
We like to at least comment on pull requests as soon as possible. |
| 54 |
We may suggest some changes or improvements or alternatives. |