diff --git a/.github/README.example.terminal.svg b/.github/README.example.terminal.svg
deleted file mode 100644
index 51a4ecf..0000000
--- a/.github/README.example.terminal.svg
+++ /dev/null
@@ -1,336 +0,0 @@
-
-
\ No newline at end of file
diff --git a/.github/README.md.jinja2 b/.github/README.md.jinja2
index abc02d7..2a3d903 100644
--- a/.github/README.md.jinja2
+++ b/.github/README.md.jinja2
@@ -119,33 +119,27 @@ npx playwright install firefox
Example:
-{% set example_cmd='
-npx excalidraw-brute-export-cli \\
- -i ./examples/simple.excalidraw \\
- --background 1 \\
- --embed-scene 0 \\
- --dark-mode 0 \\
- --scale 1 \\
- --format svg \\
- -o "./.github/README.example.output.svg"
-' | trim %}
-
-```bash
-# Use this command:
-{{ example_cmd | safe }}
-```
-
-
+
+
+
And the resulting image (svg):
-
+
## 💻 Command Line Options
diff --git a/.github/README.remotified.md b/.github/README.remotified.md
index c13ebf2..6ee5948 100644
--- a/.github/README.remotified.md
+++ b/.github/README.remotified.md
@@ -122,10 +122,9 @@ npx playwright install firefox
Example:
-
-
+
```bash
-# Use this command:
+
npx excalidraw-brute-export-cli \
-i ./examples/simple.excalidraw \
--background 1 \
@@ -133,14 +132,20 @@ npx excalidraw-brute-export-cli \
--dark-mode 0 \
--scale 1 \
--format svg \
- -o "./.github/README.example.output.svg"
+ -o "./examples/simple_example_output.svg"
+
+ls "./examples/simple_example_output.svg"
+
```
+
-
+
+
+
And the resulting image (svg):
-
+
## 💻 Command Line Options
diff --git a/.github/README.simple_example.log.svg b/.github/README.simple_example.log.svg
new file mode 100644
index 0000000..f7c05e4
--- /dev/null
+++ b/.github/README.simple_example.log.svg
@@ -0,0 +1,367 @@
+
+
\ No newline at end of file
diff --git a/.github/simple_example.log b/.github/simple_example.log
new file mode 100644
index 0000000..7c950e8
--- /dev/null
+++ b/.github/simple_example.log
@@ -0,0 +1,53 @@
+[0;32m$ [0mset -e -x -v -u -o pipefail
+set +v
+[0;32m$ [0mset +v
+[0;32m$ [0mGREEN='\033[0;32m'
+[0;32m$ [0mYELLOW='\033[1;33m'
+[0;32m$ [0mNC='\033[0m'
+[0;32m$ [0mPS4='\033[0;32m$ \033[0m'
+[0;32m$ [0mEXCALIDRAW_BRUTE_EXPORT_CLI_URL=http://localhost:59876
+[0;32m$ [0m[[ -z http://localhost:59876 ]]
+[0;32m$ [0m: ECHO_SNIPPET_START
+[0;32m$ [0mnpx excalidraw-brute-export-cli -i ./examples/simple.excalidraw --background 1 --embed-scene 0 --dark-mode 0 --scale 1 --format svg -o ./examples/simple_example_output.svg
+[38;2;86;156;214minfo[39m: options:
+[38;2;86;156;214minfo[39m: {
+ i: [32m'./examples/simple.excalidraw'[39m,
+ input: [32m'./examples/simple.excalidraw'[39m,
+ background: [33mtrue[39m,
+ b: [33mtrue[39m,
+ embedScene: [33mfalse[39m,
+ e: [33mfalse[39m,
+ darkMode: [33mfalse[39m,
+ d: [33mfalse[39m,
+ scale: [33m1[39m,
+ s: [33m1[39m,
+ format: [32m'svg'[39m,
+ f: [32m'svg'[39m,
+ o: [32m'./examples/simple_example_output.svg'[39m,
+ output: [32m'./examples/simple_example_output.svg'[39m,
+ url: [32m''[39m,
+ excalidrawVersion: [32m''[39m,
+ headless: [33mtrue[39m,
+ leaveBrowserRunning: [33mfalse[39m,
+ screenshots: [32m''[39m,
+ actionSleepTime: [33m200[39m,
+ timeout: [33m-1[39m
+}
+[38;2;86;156;214minfo[39m: Falling back to environment variable EXCALIDRAW_BRUTE_EXPORT_CLI_URL
+[38;2;86;156;214minfo[39m: excalidrawURL: http://localhost:59876
+[38;2;86;156;214minfo[39m: Detecting Excalidraw version...
+[38;2;86;156;214minfo[39m: excalidrawVersion: 0.15.0
+[38;2;86;156;214minfo[39m: Clicking: Menu Burger
+[38;2;86;156;214minfo[39m: Clicking: Open Menu Item
+[38;2;86;156;214minfo[39m: File is chosen!
+[38;2;86;156;214minfo[39m: Clicking: Export Menu Item
+[38;2;86;156;214minfo[39m: await exportBackgroundSwitch.count(): 1
+[38;2;86;156;214minfo[39m: await exportEmbedSwitch.count(): 1
+[38;2;86;156;214minfo[39m: await exportScaleDiv.count(): 1
+[38;2;86;156;214minfo[39m: await exportScaleElements.count(): 3
+[38;2;86;156;214minfo[39m: Pressing SVG button!
+[38;2;86;156;214minfo[39m: File is downloaded!
+[38;2;86;156;214minfo[39m: closing...
+[0;32m$ [0mls ./examples/simple_example_output.svg
+./examples/simple_example_output.svg
+[0;32m$ [0m: ECHO_SNIPPET_END
diff --git a/README.md b/README.md
index 3ba5826..fd9901f 100644
--- a/README.md
+++ b/README.md
@@ -122,10 +122,9 @@ npx playwright install firefox
Example:
-
-
+
```bash
-# Use this command:
+
npx excalidraw-brute-export-cli \
-i ./examples/simple.excalidraw \
--background 1 \
@@ -133,14 +132,20 @@ npx excalidraw-brute-export-cli \
--dark-mode 0 \
--scale 1 \
--format svg \
- -o "./.github/README.example.output.svg"
+ -o "./examples/simple_example_output.svg"
+
+ls "./examples/simple_example_output.svg"
+
```
+
-
+
+
+
And the resulting image (svg):
-
+
## 💻 Command Line Options
diff --git a/examples/local-docker_example.sh b/examples/local-docker_example.sh
index 04db153..9219fa8 100755
--- a/examples/local-docker_example.sh
+++ b/examples/local-docker_example.sh
@@ -37,13 +37,13 @@ docker run --rm --tty \
my-excalidraw-brute-export-cli-image \
-i ./examples/simple.excalidraw \
--background 1 \
- --embed-scene 1 \
+ --embed-scene 0 \
--dark-mode 0 \
--scale 1 \
- --format png \
- -o "./examples/simple_example_output.png"
+ --format svg \
+ -o "./examples/simple_example_output.svg"
-ls "./examples/simple_example_output.png"
+ls "./examples/simple_example_output.svg"
# SNIPPET_END
: ECHO_SNIPPET_END
diff --git a/examples/remote-docker_example-noautorun.sh b/examples/remote-docker_example-noautorun.sh
index b07b47f..878ad2d 100755
--- a/examples/remote-docker_example-noautorun.sh
+++ b/examples/remote-docker_example-noautorun.sh
@@ -36,13 +36,13 @@ docker run --rm --tty \
ghcr.io/realazthat/excalidraw-brute-export-cli:v0.3.2 \
-i ./examples/simple.excalidraw \
--background 1 \
- --embed-scene 1 \
+ --embed-scene 0 \
--dark-mode 0 \
--scale 1 \
- --format png \
- -o "./examples/simple_example_output.png"
+ --format svg \
+ -o "./examples/simple_example_output.svg"
-ls "./examples/simple_example_output.png"
+ls "./examples/simple_example_output.svg"
# SNIPPET_END
: ECHO_SNIPPET_END
diff --git a/examples/simple_example.sh b/examples/simple_example.sh
index acda08b..4b877ad 100755
--- a/examples/simple_example.sh
+++ b/examples/simple_example.sh
@@ -22,13 +22,13 @@ fi
npx excalidraw-brute-export-cli \
-i ./examples/simple.excalidraw \
--background 1 \
- --embed-scene 1 \
+ --embed-scene 0 \
--dark-mode 0 \
--scale 1 \
- --format png \
- -o "./examples/simple_example_output.png"
+ --format svg \
+ -o "./examples/simple_example_output.svg"
-ls "./examples/simple_example_output.png"
+ls "./examples/simple_example_output.svg"
# SNIPPET_END
: ECHO_SNIPPET_END
diff --git a/examples/simple_example.sh.jinja2 b/examples/simple_example.sh.jinja2
index 05d6560..823ed2b 100644
--- a/examples/simple_example.sh.jinja2
+++ b/examples/simple_example.sh.jinja2
@@ -60,13 +60,13 @@ docker build -t {{docker_image_name|safe}} .
{{cmd|safe}} \
-i ./examples/simple.excalidraw \
--background 1 \
- --embed-scene 1 \
+ --embed-scene 0 \
--dark-mode 0 \
--scale 1 \
- --format png \
- -o "./examples/simple_example_output.png"
+ --format svg \
+ -o "./examples/simple_example_output.svg"
-ls "./examples/simple_example_output.png"
+ls "./examples/simple_example_output.svg"
# SNIPPET_END
: ECHO_SNIPPET_END
diff --git a/examples/simple_example_output.png b/examples/simple_example_output.png
deleted file mode 100644
index 96b5707..0000000
Binary files a/examples/simple_example_output.png and /dev/null differ
diff --git a/.github/README.example.output.svg b/examples/simple_example_output.svg
similarity index 100%
rename from .github/README.example.output.svg
rename to examples/simple_example_output.svg
diff --git a/scripts/generate-readme.sh b/scripts/generate-readme.sh
index 92985be..e8630f6 100755
--- a/scripts/generate-readme.sh
+++ b/scripts/generate-readme.sh
@@ -28,6 +28,7 @@ NODE_VERSION_PATH=${PWD}/.nvmrc \
bash scripts/format.sh
+(
# FORCE_COLOR and TERM are set, to produce consistent results across different
# systems.
#
@@ -55,10 +56,19 @@ export TERM=dumb
export CLI_WIDTH=120
export LINES=40
export COLUMNS=120
+
+
+# Try to make terminal output as consistent as possible.
+TERM=xterm-256color COLUMNS=160 LINES=40 \
+PS4="${GREEN}$ ${NC}" unbuffer bash -x ./examples/simple_example.sh \
+ > .github/simple_example.log 2>&1
+
+
python -m snipinator.cli \
-t "${PROJ_PATH}/.github/README.md.jinja2" \
-o "${PROJ_PATH}/README.md" \
--rm --force --create --chmod-ro
+)
################################################################################
LAST_VERSION=$(node -p "require('./package.json').version")
python -m mdremotifier.cli \