Debian Codegraph @

demos/README.md

raw
1 # Screenshots with demos and scripts to generate them
2
3 The `demo_*.sh` scripts in this directory demo
4 various features of `jj`.
5
6 The `run_scripts.sh` script can be used to:
7
8 - Run them inside a standardized environment instead of the user's local
9 environment.
10 - Generate SVG and PNG images for the scripts.
11
12 The PNG images in the repo may be slightly older, as they take up more space in
13 the repo.
14
15 The SVG images have human-readable diffs, but may look different on different
16 computers with different fonts installed.
17
18 ## Running `run_scripts.sh`
19
20 This requires ImageMagick and `term-transcript-cli` to be installed. See
21 `run_scripts.sh`'s error messages for some more details. On Debian Linux, it
22 also seems helpful to `sudo apt install inkscape`; ImageMagick seems to use
23 either Inkscape itself or some dependency of it.
24
25 One way to make all the images and check the output is:
26
27 ```shell
28 cd demos
29 ./run_scripts.sh demo_*.sh |less
30 ```
31
32 ### A note on fonts
33
34 The exact PNG output depends on the fonts you have installed on your system.
35
36 The screenshots are usually generated on a Debian Linux system and use the "Fira
37 Code" font. It can be installed with `sudo apt install fonts-firacode`. It seems
38 to include all relevant Unicode symbols and be a little bolder and thus more
39 readable than the "Liberation Mono" font, which is used if Fira Code is not
40 installed. That font also works OK. See the CSS font specification in
41 `run_scripts.sh` for other fonts tried (especially when viewing SVGs on the
42 web). If none apply, the default `monospace` font will be used.
43
44 `convert -list Fonts` will list the fonts ImageMagick is aware of.