You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/contributing/README.md
+36-25Lines changed: 36 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
We are really happy that you are interested in contributing to JabRef. Please take your time to look around here. We especially invite you to look into our [community members page](https://discourse.jabref.org/t/community-members/1868?u=koppor) where members introduce themselves.
4
4
5
-
## I would like to try out a feature introduced at pull request.
5
+
## I would like to try out a feature introduced at pull request
6
6
7
7
In JabRef, there are dozens of bug fixes and new features introduced using GitHub's pull request mechansim.
8
8
You can browse all at <https://github.com/JabRef/jabref/pulls>.
@@ -12,12 +12,11 @@ Improving on changes in active pull requests is much easier than fixing them lat
12
12
If you are familiar with the command line on your OS, then it is very easy to try out pull requests and give feedback.
13
13
In the following, we try to give a minimal set of installation instructions to be able to run a contribution from a fork.
14
14
15
-
Required tooling:
15
+
### Required tooling
16
16
17
-
-[GitHubCLI](https://cli.github.com/) - A command-line client for GitHub. You can install it using the installer linked on their [homepage](https://cli.github.com/) or the commands given at the [installation hints](https://github.com/cli/cli#installation).
18
17
-[`gg.cmd`](https://github.com/eirikb/gg) - A cross-platform and cross-architecture version manager. Download [`gg.cmd`](https://github.com/eirikb/gg/releases/latest/download/gg.cmd) and store it in your home (or `Downloads`) directory.
- NOTE: You can also use the native git client: `git clone --recurse-submodules https://github.com/JabRef/jabref.git JabRef` for achieving the same result.
- NOTE: You can also use the native git client: `git clone --recurse-submodules https://github.com/JabRef/jabref.git jabref` for achieving the same result.
45
+
- Make `gg.cmd` available in `jabref` source directory
46
+
-`cd jabref`
47
47
-`mv ../gg.cmd .`
48
48
49
-
Now you are all set: You have a directory `JabRef` containing the recent updates and also `gg.cmd` which you will need later for executing a JabRef build.
49
+
Now you are all set: You have a directory `jabref` containing the recent updates and also `gg.cmd` which you will need later for executing a JabRef build.
50
50
51
-
Try a branch:
51
+
### Try a branch
52
52
53
-
1.`cd` into the `JabRef` directory: `cd c:\git-repositories\JabRef`
54
-
2. Checkout out the pull request: `gh pr checkout 13111` - where `13111` is the PR number, in this case [pr#13111](https://github.com/JabRef/jabref/pull/13111).
55
-
3. Compile and run JabRef: `gg.cmd gradle run :jabgui:run` (on Linux and macOS, you need to prefix it with `sh`: `gg.cmd gradle run :jabgui:run`). This will also download the necessary JDK and gradle distribution. On the first run, please give the system enough time to accommodate and wait until the JabRef window launches. Depending on your hardware, this may take minutes.
53
+
1.`cd` into the `jabref` source directory: `cd c:\git-repositories\jabref`
54
+
2. Checkout out the pull request: `sh ./gg.cmd jbang https://github.com/JabRef/jabref/blob/main/.jbang/CheckoutPR.java 13182` - where `13182` is the PR number, in this case [pr#13182](https://github.com/JabRef/jabref/pull/13182).
56
55
57
-
Alternatives:
56
+
- Instead of the number, you can also copy and paste the branch identifier output by GitHub: `sh ./gg.cmd jbang https://github.com/JabRef/jabref/blob/main/.jbang/CheckoutPR.java Yubo-Cao:walkthrough`.
57
+

58
58
59
-
1. You don't want to use `gg.cmd`: You have the project clone ready and have some Java JDK available: In the `JabRef` directory, execute `./gradlew run`.
60
-
2. You don't want to use GitHub's `gh` tool: You can use the "usual" `git clone ...`, `git remote add ...`, `git fetch ...`, and `git checkout ...` commands to checkout a pull request from a fork.
59
+
3. Compile and run JabRef: `sh ./gg.cmd gradle run :jabgui:run`. This will also download the necessary JDK and a gradle distribution. On the first run, please give the system enough time to accommodate and wait until the JabRef window launches. Depending on your hardware, this may take a few minutes.
61
60
62
-
**I would like to improve the help page.**
61
+
On Windows, instead of `sh ./gg.cmd` use `.\gg.cmd`.
62
+
63
+
#### Alternatives
64
+
65
+
1. In case you don't want to use `gg.cmd`: You can install [JBang](https://www.jbang.dev/) for yourself and execute the commands directly.
66
+
2. In case you don't want to use `JBang`:
67
+
68
+
- You have the project clone ready and have some Java JDK available: In the `JabRef` directory, execute `./gradlew run`.
69
+
- Install `gh` (the [GitHub CLI](https://cli.github.com/), a command-line client for GitHub) by using the installer linked on their [homepage](https://cli.github.com/) or the commands given at the [installation hints](https://github.com/cli/cli#installation).
70
+
71
+
3. In case you don't want to use `gh`: You can use the "usual" `git clone ...`, `git remote add ...`, `git fetch ...`, and `git checkout ...` commands to checkout a pull request from a fork.
72
+
73
+
## I would like to improve the help page
63
74
64
75
Please see [How to Improve the Help Page](how-to-improve-the-help-page.md)
65
76
66
-
**I would like to help translating JabRef to another language.**
77
+
## I would like to help to translate JabRef to another language
67
78
68
79
We encourage you to read about [translating the JabRef user interface](how-to-translate-the-ui.md).
69
80
70
-
**I would like to keep Wikipedia pages up-to-date.**
81
+
## I would like to keep Wikipedia pages up-to-date
71
82
72
83
JabRef improves -- and Wikipedia pages should keep up!
73
84
@@ -88,16 +99,16 @@ For changes in a specific language, go to the related page, and simply click on
88
99
89
100
If there is no page for your own language, you can easily create one.
90
101
91
-
**I have some cool feature requests.**
102
+
## I have some cool feature requests
92
103
93
104
[Come discuss it!](http://discourse.jabref.org)
94
105
95
-
**Can I make a donation? How?**
106
+
## Can I make a donation? How?
96
107
97
108
Donations keep us going! You can use PayPal or bank transfers. Your institution/company can contribute too, through bank transfer for example. All details are provided at [https://donations.jabref.org](https://donations.jabref.org).
98
109
99
110
Our team consists of volunteers. To provide better support, we are currently trying to get a funded developer on board. Please consider donating money!
100
111
101
-
**I would like to contribute code. How to?**
112
+
## I would like to contribute code. How to?
102
113
103
114
Please head to our [Contributing Guide](https://github.com/JabRef/jabref/blob/main/CONTRIBUTING.md#contributing).
0 commit comments