Commit 4dde528 1 parent dedc554 commit 4dde528 Copy full SHA for 4dde528
File tree 3 files changed +11
-13
lines changed
3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -55,4 +55,6 @@ doc: ## Open documentation
55
55
56
56
.PHONY : screencast
57
57
screencast : # # Create a screencast for the docs
58
- svg-term --command ' assets/screencast.sh' --out ' assets/screencast.svg' --width 100 --padding 10 --window
58
+ termsvg rec --command=assets/screencast.sh recording.asc
59
+ termsvg export --minify recording.asc --output=assets/screencast.svg
60
+ rm recording.asc
Original file line number Diff line number Diff line change 4
4
# https://github.com/marionebl/svg-term-cli
5
5
# https://github.com/sharkdp/fd/blob/master/doc/screencast.sh
6
6
#
7
- # Designed to be executed via svg-term from the lychee root directory:
8
- # svg-term --command="bash assets/screencast.sh" --out assets/screencast.svg --padding=10
9
- # Then run this (workaround for https://github.com/sharkdp/fd/issues/1003):
10
- # sed -i '' 's/<text/<text font-size="1.67"/g' assets/screencast.svg
7
+ # Designed to be executed via termsvg from the lychee root directory
11
8
set -e
12
9
set -u
13
10
14
11
PROMPT=" ❯"
15
12
16
- # Always use latest version of lychee for screencast
17
- alias lychee=" cargo run --"
18
-
19
13
enter () {
20
14
INPUT=$1
21
15
DELAY=1
@@ -40,14 +34,16 @@ type() {
40
34
main () {
41
35
IFS=' %'
42
36
43
- enter " lychee README.md"
37
+ enter " lychee --verbose README.md"
38
+
39
+ enter " lychee https://lychee.cli.rs"
44
40
45
- enter " lychee --verbose --format=json fixtures/TEST.html"
41
+ enter " lychee --verbose --format=json fixtures/TEST.html | jq "
46
42
47
- enter " lychee --no-progress --format detailed https://example.com"
43
+ enter " lychee --no-progress --mode emoji -- format detailed https://example.com"
48
44
49
45
enter " lychee --dump --include github -- './**/*.md'"
50
-
46
+
51
47
prompt
52
48
53
49
sleep 3
You can’t perform that action at this time.
0 commit comments