Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit d042208

Browse files
committed
Put everything back on GitHub.
1 parent c2624e9 commit d042208

16 files changed

+160
-288
lines changed

.build.yml

-22
This file was deleted.

CONTRIBUTING.md

+26-101
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,10 @@
11
# How to contribute
22

33
Everyone is welcome to contribute. There is no small contributions. Please take
4-
the time to read this document before starting.
4+
the time to read this document before starting. We are using [git] on [GitHub].
5+
Please ensure to get familiarized with both before starting to contribute.
56

6-
## Table of Content
7-
8-
- [Prerequisites](#prerequisites)
9-
- [Setup](#setup)
10-
- [How to find what to work on](#how-to-find-what-to-work-on)
11-
- [Contribution workflow](#contribution-workflow)
12-
- [Contributing language support](#contributing-language-support)
13-
- [Commit hygiene](#commit-hygiene)
14-
15-
## Prerequisites
16-
17-
Before contributing, some prerequisites:
18-
19-
- You must have [git] installed, as this project uses it as VCS.
20-
- Rust is used to compile everything; you should have [rustup] installed.
21-
- Especially, you want to have `rustc`, `cargo`, `clippy`, `rust-analyzer` and
22-
`rustfmt` installed.
23-
- This project accepts contributions via _git patches_. It is likely that you
24-
are not used to this workflow. A mail client that can send emails in
25-
plain-text mode is highly advised — for instance, [aerc]. More on that in
26-
the [Guidelines](#guidelines) section.
27-
- Not mandatory but highly recommended; you should have a GPG key hosted on a
28-
third-party location — for instance, [keys.openpgp.org] — and sign your
29-
emails with it. More on that in the the [Guidelines](#guidelines) section.
30-
31-
## Setup
32-
33-
Before starting up, you need to setup your tools.
34-
35-
### git send-email
36-
37-
You should follow [this link](https://git-send-email.io/) as a first source of
38-
information on how to configure `git send-email`. Additionally, you want to
39-
setup the per-project part.
40-
41-
Contributions must be sent to <~hadronized/kak-tree-sitter-devel@lists.sr.ht>.
42-
Instead of using the `--to` flag everytime you use `git send-email`, you should
43-
edit the local configuration of your repository with:
44-
45-
```sh
46-
git config --local sendemail.to "~hadronized/kak-tree-sitter-devel@lists.sr.ht"
47-
```
48-
49-
You also must set the prefix to `PATCH kak-tree-sitter` — that helps reviewing
50-
and it is also mandatory for the CI to run:
51-
52-
```sh
53-
git config --local format.subjectprefix "PATCH kak-tree-sitter"
54-
```
55-
56-
Once this is done, all you have to do is to use `git send-email` normally.
57-
58-
> Note: if you would rather go your webmail instead, **ensure it does plain
59-
> text**, and use `git format-patch` accordingly.
60-
61-
## How to find what to work on
62-
63-
You can first check the list of [bugs] and [features] on the bug trackers. If
64-
you cannot find your issue there, you should open one. You can use the UI, or
65-
simply send an email to the appropriate tracker:
66-
67-
- For bugs, send your email to <~hadronized/kak-tree-sitter-bugs@todo.sr.ht>.
68-
- For features, send your email to <~hadronized/kak-tree-sitter-features@todo.sr.ht>.
69-
70-
If you are not sure, you can still open a discussion on the
71-
[discuss mailing list], by using the UI or sending an email to
72-
<~hadronized/kak-tree-sitter-discuss@lists.sr.ht>.
73-
74-
## Contribution workflow
75-
76-
You have found something to work on and want to start contributing. Follow these
77-
simple steps:
78-
79-
1. Ensure you have followed the steps in the [Setup](#setup) section.
80-
2. Clone the repository.
81-
3. Create a branch; it will help when sending patches upstream.
82-
4. Make your changes and make some commits!
83-
5. Once ready to get your changes reviewed, send them with
84-
`git send-email master`.
85-
6. Wait for the review and check your inbox.
86-
87-
If your change was accepted, you should have an email telling you it was
88-
applied. If not, you should repeat the process.
89-
90-
> Note: please use the `--annotate -v2` flag of `git send-enail` if pushing a
91-
> new version. `-v3` for the next one, etc. etc.
92-
93-
### Contributing language support
7+
## Contributing language support
948

959
**An important guideline here**: [Helix](https://helix-editor.com/) is a well
9610
appreciated editor and their queries are pretty excellent. You are highly
@@ -118,23 +32,34 @@ Please refrain from creating gigantic commits. I reserve the right to refuse
11832
your patch if it’s not atomic enough: I engage my spare-time to review and
11933
understand your code so **please** keep that in mind.
12034

121-
There is no limit on the number of commits per patch, but keep in mind that
35+
There is no limit on the number of commits per PR, but keep in mind that
12236
individual commits should still remain small enough to be easily reviewable. Try
123-
to scope a patch down to a single ticket, or even subpart of a ticket if you
124-
think it makes sense.
37+
to scope a PR down to a single issue, or even subpart of a issue if you think
38+
it makes sense. Remember that PRs are often reviewed commits by commits, so
39+
ensure a certain coherenc between what to put and what not to put in a commit.
12540

126-
Also, remember to include the ticket link in your commit, and to write concise
127-
but acute commit messages. Those are used for writing changelog, so please keep
128-
that in mind. Keep the line width to 80-char if possible.
41+
Also, remember to include the issue number at the end of your commit message
42+
with a leading dash — e.g. `#123` – and to write concise yet acute commit
43+
messages. Those are used for writing changelog, so please keep them short.
12944

13045
Finally, **merging `master` into your branch is not appreciated**, and will end
13146
up with your patch refused. If you want to “synchronize” your work with the
132-
recent changes, please use `git rebase origin/master`.
47+
recent changes, please use `git fetch origin && git rebase origin/master` in
48+
your branch.
49+
50+
## Sign your work
51+
52+
GPG signatures are used to sign our work. The value of signing a piece of code
53+
doesn’t imply _you_ write it, but it implies you _validated that code_, and in
54+
the end, we don’t really care whether you wrote the code or whether you
55+
generated with a fancy A.I. generator. It’s the code you bring and it’s the code
56+
you sign.
57+
58+
If you plan on contributing more than just one-shot contributions, feel free
59+
to open a PR to modify the [MAINTAINERS.md] file by providing your name, email
60+
address and PGP fingerprint.
13361

13462
[git]: https://git-scm.com/
135-
[rustup]: https://rustup.rs/
136-
[aerc]: https://aerc-mail.org/
63+
[GitHub]: https://github.com/hadronized/kak-tree-sitter
13764
[keys.openpgp.org]: https://keys.openpgp.org/
138-
[bugs]: https://todo.sr.ht/~hadronized/kak-tree-sitter-bugs
139-
[features]: https://todo.sr.ht/~hadronized/kak-tree-sitter-features
140-
[discuss mailing list]: https://lists.sr.ht/~hadronized/kak-tree-sitter-discuss
65+
[MAINTAINERS.md]: MAINTAINERS.md

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ROADMAP.md

-31
This file was deleted.

docs/man/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ possible to override the default options via the user configuration.
66
The `$XDG_CONFIG_HOME/kak-tree-sitter/config.toml` contains the user
77
configuration of both `kak-tree-sitter` and `ktsctl`. If you want to tweak
88
something, you can have a look at the
9-
[default configuration file](https://git.sr.ht/~hadronized/kak-tree-sitter/tree/master/item/kak-tree-sitter-config/default-config.toml)
9+
[default configuration file](https://github.com/hadronized/kak-tree-sitter/tree/master/kak-tree-sitter-config/default-config.toml)
1010
to know which path and values to pick from.
1111

1212
> The user and default configurations get merged, so you do not have to copy the

docs/man/highlighting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,4 @@ set them at all.
169169
- `ts_variable_parameter`
170170
- `ts_warning`
171171

172-
[kakoune-tree-sitter-themes]: https://git.sr.ht/~hadronized/kakoune-tree-sitter-themes
172+
[kakoune-tree-sitter-themes]: https://github.com/hadronized/kakoune-tree-sitter-themes

docs/man/ktsctl.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Whatever you decide to use, you need to update your
9393
and queries. **However**, as explained in the linked section, 99% of people will
9494
just be satisfied with the default settings shipped with `kak-tree-sitter`’s
9595
`default-config.toml`, which you can find at the root of the repository,
96-
[here](https://git.sr.ht/~hadronized/kak-tree-sitter/tree/master/item/kak-tree-sitter-config/default-config.toml).
96+
[here](https://github.com/hadronized/kak-tree-sitter/tree/master/kak-tree-sitter-config/default-config.toml).
9797
That configuration file is shipped with the binary (`kak-tree-sitter`), so you
9898
do not need to copy it; just add what you need!
9999

docs/man/tweaking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tweaking
22

33
If you are using the
4-
[provided config.toml](https://git.sr.ht/~hadronized/kak-tree-sitter/tree/master/item/kak-tree-sitter-config/default-config.toml),
4+
[provided config.toml](https://github.com/hadronized/kak-tree-sitter/tree/master/kak-tree-sitter-config/default-config.toml),
55
some languages might require more setup. They are listed in this section.
66

77
- [JSX](#jsx]

kak-tree-sitter-config/CHANGELOG.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
## Language support
44

5-
- Add hyprlang suport. [52fa98f](https://git.sr.ht/~hadronized/kak-tree-sitter/commit/52fa98f)
6-
- Add taskwarrior support. [64cc98a](https://git.sr.ht/~hadronized/kak-tree-sitter/commit/64cc98a)
7-
- Add ini support. [1484673](https://git.sr.ht/~hadronized/kak-tree-sitter/commit/1484673)
5+
- Add hyprlang suport. [52fa98f](https://github.com/hadronized/kak-tree-sitter/commit/52fa98f)
6+
- Add taskwarrior support. [64cc98a](https://github.com/hadronized/kak-tree-sitter/commit/64cc98a)
7+
- Add ini support. [1484673](https://github.com/hadronized/kak-tree-sitter/commit/1484673)
88

99
# v2.1.1
1010

1111
## Language support
1212

13-
- Fix `c` queries specification. [e42001b](https://git.sr.ht/~hadronized/kak-tree-sitter/commit/e42001b)
13+
- Fix `c` queries specification. [e42001b](https://github.com/hadronized/kak-tree-sitter/commit/e42001b)
1414

1515
# v2.1.0
1616

1717
## Language support
1818

19-
- Add support for Koka. [6bab165](https://git.sr.ht/~hadronized/kak-tree-sitter/commit/6bab165)
19+
- Add support for Koka. [6bab165](https://github.com/hadronized/kak-tree-sitter/commit/6bab165)
2020

2121
# v2.0.0
2222

@@ -31,7 +31,7 @@ This change has implication on `ktsctl`, but doesn’t have any on
3131

3232
## API
3333

34-
- Move missing language error as part of `kak-tree-sitter-config`. [cd35f75](https://git.sr.ht/~hadronized/kak-tree-sitter/commit/cd35f75)
34+
- Move missing language error as part of `kak-tree-sitter-config`. [cd35f75](https://github.com/hadronized/kak-tree-sitter/commit/cd35f75)
3535

3636
# v1.0.0
3737

@@ -52,12 +52,12 @@ This change has implication on `ktsctl`, but doesn’t have any on
5252

5353
# v0.5.0
5454

55-
- Introduce user-only configuration. [fc7c5c6](https://git.sr.ht/~hadronized/kak-tree-sitter/commit/fc7c5c6)
56-
- Introduce `ktsctl` sources. [e083aad](https://git.sr.ht/~hadronized/kak-tree-sitter/commit/e083aad)
55+
- Introduce user-only configuration. [fc7c5c6](https://github.com/hadronized/kak-tree-sitter/commit/fc7c5c6)
56+
- Introduce `ktsctl` sources. [e083aad](https://github.com/hadronized/kak-tree-sitter/commit/e083aad)
5757

5858
# v0.4.0
5959

60-
- Add `remove_default_highlighter` option [d78abc0](https://git.sr.ht/~hadronized/kak-tree-sitter/commit/d78abc0)
60+
- Add `remove_default_highlighter` option [d78abc0](https://github.com/hadronized/kak-tree-sitter/commit/d78abc0)
6161

6262
# v0.3.0
6363

kak-tree-sitter-config/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ authors = ["Dimitri Sabadie <hadronized@strongly-typed-thoughts.net>"]
66
description = "Server between Kakoune and tree-sitter; configuration layer"
77
keywords = ["tree-sitter", "kakoune"]
88
categories = ["text-editors"]
9-
homepage = "https://git.sr.ht/~hadronized/kak-tree-sitter"
10-
repository = "https://git.sr.ht/~hadronized/kak-tree-sitter"
9+
homepage = "https://github.com/hadronized/kak-tree-sitter"
10+
repository = "https://github.com/hadronized/kak-tree-sitter"
1111
readme = "README.md"
1212
edition = "2021"
1313
rust-version = "1.70.0"

kak-tree-sitter-config/default-config.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "astro.so"]
126126
link_flags = ["-O3"]
127127

128128
[language.astro.queries.source.git]
129-
url = "https://git.sr.ht/~hadronized/kak-tree-sitter"
129+
url = "https://github.com/hadronized/kak-tree-sitter"
130130
pin = "862f6cd58b38d9d1b4abfb722b4a4b25bdae2586"
131131

132132
[language.astro.queries]
@@ -300,7 +300,7 @@ link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "cpp.so"]
300300
link_flags = ["-O3", "-lstdc++"]
301301

302302
[language.cpp.queries.source.git]
303-
url = "https://git.sr.ht/~hadronized/kak-tree-sitter"
303+
url = "https://github.com/hadronized/kak-tree-sitter"
304304
pin = "b0ecb0d376c94d2fa4814816b41986bf5d735384"
305305

306306
[language.cpp.queries]
@@ -687,7 +687,7 @@ link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "javascript.so"]
687687
link_flags = ["-O3"]
688688

689689
[language.javascript.queries.source.git]
690-
url = "https://git.sr.ht/~hadronized/kak-tree-sitter"
690+
url = "https://github.com/hadronized/kak-tree-sitter"
691691
pin = "834d348b85868fbe9033231e72f29be361346aeb"
692692

693693
[language.javascript.queries]
@@ -735,7 +735,7 @@ link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "jsx.so"]
735735
link_flags = ["-O3"]
736736

737737
[language.jsx.queries.source.git]
738-
url = "https://git.sr.ht/~hadronized/kak-tree-sitter"
738+
url = "https://github.com/hadronized/kak-tree-sitter"
739739
pin = "834d348b85868fbe9033231e72f29be361346aeb"
740740

741741
[language.jsx.queries]
@@ -906,7 +906,7 @@ link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "markdown.so"]
906906
link_flags = ["-O3"]
907907

908908
[language.markdown.queries.source.git]
909-
url = "https://git.sr.ht/~hadronized/kak-tree-sitter"
909+
url = "https://github.com/hadronized/kak-tree-sitter"
910910
pin = "d2d9761f309d6204a8f4480dc23f10558a165e29"
911911

912912
[language.markdown.queries]
@@ -1325,7 +1325,7 @@ link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "tsx.so"]
13251325
link_flags = ["-O3"]
13261326

13271327
[language.tsx.queries.source.git]
1328-
url = "https://git.sr.ht/~hadronized/kak-tree-sitter"
1328+
url = "https://github.com/hadronized/kak-tree-sitter"
13291329
pin = "b0ecb0d376c94d2fa4814816b41986bf5d735384"
13301330

13311331
[language.tsx.queries]
@@ -1349,7 +1349,7 @@ link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "typescript.so"]
13491349
link_flags = ["-O3"]
13501350

13511351
[language.typescript.queries.source.git]
1352-
url = "https://git.sr.ht/~hadronized/kak-tree-sitter"
1352+
url = "https://github.com/hadronized/kak-tree-sitter"
13531353
pin = "b0ecb0d376c94d2fa4814816b41986bf5d735384"
13541354

13551355
[language.typescript.queries]

0 commit comments

Comments
 (0)