From 37d48a51b68d8694e3168beb0548dc6002d67260 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 11 Nov 2019 12:21:32 +0100 Subject: [PATCH] :art: Fex updates --- .gitignore | 1 + docs/Benchmarks.mdr | 5 ++++- docs/Contributors.mdr | 1 - scripts/run.sh | 9 ++++++++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2919fc0f..250338ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +src book book.toml custom.css diff --git a/docs/Benchmarks.mdr b/docs/Benchmarks.mdr index 66173a82..c37868d8 100644 --- a/docs/Benchmarks.mdr +++ b/docs/Benchmarks.mdr @@ -1,3 +1,6 @@ # Benchmarks -@exec for a in $(find benchmark/results -type f -name "*.png"); do echo "![$(basename $a)]($(sed 's/benchmark\/results/assets/' <<< $a) \"${a:-4}\")"; done +## test +
+@exec for a in $(find benchmark/results -type f -name "*.png"); do echo ""; done +
diff --git a/docs/Contributors.mdr b/docs/Contributors.mdr index 2865f150..ecba6a27 100644 --- a/docs/Contributors.mdr +++ b/docs/Contributors.mdr @@ -3,5 +3,4 @@ @exec git show "master:README.md" > master_readme.md @exec sed "$(/usr/bin/cat -n master_readme.md | grep "ALL-CONTRIBUTOR" | cut -f1 | tr '\n' '\t' | sed 's/\t/,/')!d" master_readme.md - @exec rm master_readme.md diff --git a/scripts/run.sh b/scripts/run.sh index b21b7e50..9ec39581 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,12 +1,19 @@ +sedi () { + sed --version >/dev/null 2>&1 && sed -i -- "$@" || sed -i "" "$@" +} + run() { mdbook serve& + sedi 's/^src/#src/' .gitignore while true do sh scripts/watch.sh done } clean() { - trap - SIGINT SIGTERM ERR; killall mdbook + trap - SIGINT SIGTERM ERR + killall mdbook + sedi 's/#src/src/' .gitignore exit 1 } -- 2.43.0