Skip to content

Commit 6622792

Browse files
committed
Reword the documentation to take care of Mac OS too
1 parent e8a7abb commit 6622792

File tree

5 files changed

+84
-32
lines changed

5 files changed

+84
-32
lines changed

.markdownlint.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"default": true,
3+
"no-duplicate-heading": false,
4+
"no-inline-html": false,
5+
"no-emphasis-as-heading": false
6+
}

docs/developers/developers-setup.md

Lines changed: 61 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -63,34 +63,42 @@ For developer tools, run this one instead (it includes requirements.txt):
6363
pip install -r requirements.dev.txt
6464
```
6565

66-
## Setup on Linux
66+
## Setup
6767

68-
### Build, test and install using Flatpak
68+
### Setup on Linux using Flatpak
6969

70-
To install Diffuse locally:
70+
#### Build, test and install
71+
72+
To build, test and install Diffuse locally:
7173

7274
```sh
7375
flatpak install runtime/org.gnome.Sdk/$(uname -p)/42
7476
flatpak-builder --user --install build-flatpak io.github.mightycreak.Diffuse.yml
7577
```
7678

79+
#### Run
80+
7781
To run Diffuse through Flatpak:
7882

7983
```sh
8084
flatpak run io.github.mightycreak.Diffuse
8185
```
8286

87+
#### Uninstall
88+
8389
To uninstall Diffuse:
8490

8591
```sh
8692
flatpak remove io.github.mightycreak.Diffuse
8793
```
8894

89-
## Build, test and install using Meson on Linux and Mac OS
95+
### Setup on Linux using Meson
9096

91-
Diffuse build system is meson.
97+
#### Build and test
9298

93-
To compile and test Diffuse:
99+
Diffuse is using Meson as its build system.
100+
101+
To build and test Diffuse:
94102

95103
```sh
96104
meson setup build
@@ -99,55 +107,81 @@ meson compile
99107
meson test
100108
```
101109

110+
#### Install on system and run
111+
102112
To install Diffuse on your system (e.g. `/usr/local/`):
103113

104114
```sh
105115
meson install # requires admin privileges
116+
```
117+
118+
To run Diffuse:
106119

107-
# Run Diffuse
120+
```sh
108121
diffuse
109122
```
110123

111-
To install Diffuse on a custom directory (e.g. `~/bin/diffuse`):
124+
#### Install in a custom directory and run
125+
126+
Meson allows to change the default installation directories, see
127+
[command-line documentation](https://mesonbuild.com/Commands.html#configure).
128+
129+
To install Diffuse in a custom directory (e.g. `~/bin/diffuse`):
112130

113131
```sh
114132
meson install --destdir ~/bin/diffuse
133+
```
134+
135+
To run Diffuse:
115136

116-
# Run Diffuse
137+
```sh
138+
export PYTHONPATH=$HOME/bin/diffuse/usr/local/share/diffuse
117139
cd ~/bin/diffuse/usr/local/bin
118-
PYTHONPATH=$HOME/bin/diffuse/usr/local/share/diffuse ./diffuse
140+
./diffuse
119141
```
120142

121-
To uninstall diffuse afterwards:
143+
#### Uninstall
144+
145+
To uninstall Diffuse afterwards:
122146

123147
```sh
124148
sudo ninja uninstall -C build
125149
sudo rm -v /usr/local/share/locale/*/LC_MESSAGES/diffuse.mo
126150
```
127151

128-
Meson allows to change the default installation directories, see
129-
[command-line documentation](https://mesonbuild.com/Commands.html#configure).
152+
### Setup on Mac OS
130153

131-
## Setup on Mac OS
154+
#### Build and test
132155

133-
Building on Mac OS is similar to building on Linux. To recap, these are
134-
the steps needed to build and install Diffuse manually:
156+
Diffuse is using Meson as its build system.
135157

136-
```brew install meson python3 py3cairo pygobject3 gtk+3 librsvg
137-
meson setup build
138-
cd build
139-
meson compile
140-
meson test
141-
meson install
158+
To build and test Diffuse:
159+
160+
```sh
161+
meson setup build
162+
cd build
163+
meson compile
164+
meson test
142165
```
143166

144-
After `meson install`, the `diffuse` command can be used to launch Diffuse
145-
as a native Mac app that is installed into `/Applications/Diffuse.app`.
167+
#### Install on system and run
168+
169+
To install Diffuse on your system (e.g. `/usr/local/`):
170+
171+
```sh
172+
meson install # requires admin privileges
173+
```
174+
175+
To run Diffuse:
176+
177+
```sh
178+
diffuse
179+
```
146180

147-
The `diffuse` command is compatible with git. To use Diffuse as git's
148-
`git difftool` run `git config --global diff.tool diffuse`
181+
_Note: The `diffuse` command can be used to launch Diffuse as a native Mac app_
182+
_that is installed into `/Applications/Diffuse.app`._
149183

150-
## Setup on Windows
184+
### Setup on Windows (deprecated)
151185

152186
_Note:_ The Windows port is not maintained and would need some love.
153187
Contributions are very welcome! 😉

docs/developers/release-process.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ few manual steps.
1919
- data/usr/share/gnome/help/diffuse/*/diffuse.xml
2020
- data/usr/share/omf/diffuse/diffuse-*.omf
2121
- utils/book2manual.xsl
22-
3. Update CHANGELOG.md
22+
4. Update CHANGELOG.md
2323
- Add new line under `## Unreleased` following this syntax: `## x.y.z - YYYY-MM-DD`
2424
- Copy the content of the changes for this release
25-
4. Update AppData release notes in data/io.github.mightycreak.Diffuse.appdata.xml.in:
25+
5. Update AppData release notes in data/io.github.mightycreak.Diffuse.appdata.xml.in:
2626
- Create a new `<release>` tag under `<releases>`, fill the `version` and
2727
`date` attributes
2828
- Create a new `<description>` tag under the new `<release>` tag
2929
- Add one paragraph to sum the release in one sentence (e.g. highlights, ...)
3030
- Paste the changes from the changelog and adapt it to HTML
31-
5. Create new branch and PR
31+
6. Create new branch and PR
3232

3333
## Create new release on GitHub
3434

docs/translators.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Use `update-translations.py` to validate one or more PO files.
7070
Here is an example with `ja.po` and `ko.po`:
7171

7272
Command-line:
73+
7374
```sh
7475
./update-translations.py --check-only ja.po ko.po
7576
```
@@ -99,8 +100,10 @@ POSIX platforms. The conversion tools insert some English text that gets
99100
localized using search and replace. Manually add new search and replace rules
100101
to these files:
101102

102-
../windows-installer/translations.txt
103-
../utils/translations.txt
103+
```text
104+
../windows-installer/translations.txt
105+
../utils/translations.txt
106+
```
104107

105108
The format of each line is: \<language id\>:\<English text\>:\<localised text\>
106109

docs/users.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ The Diffuse package statuses for every distributions can been seen on
2222

2323
Huge thanks to [@bongochong](https://github.com/bongochong) for maintaining the
2424
Diffuse package on Fedora.
25+
26+
## Integrate with Git
27+
28+
Diffuse is compatible with `git difftool` command-line. To use Diffuse as Git
29+
diff tool, run:
30+
31+
```sh
32+
git config --global diff.tool diffuse
33+
```

0 commit comments

Comments
 (0)