From 00d2d4c86c085fa101d52d7cba40c3bff9f36c2d Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 10 Nov 2019 22:52:51 +0100 Subject: [PATCH] :book: Update --- .gitignore | 1 + Makefile | 8 ++++++-- docs/assets/benchmark/Makefile.dat | 0 docs/assets/benchmark/bench.plot.dat | 0 docs/assets/benchmark/benchmark.sh.dat | 0 docs/assets/benchmark/book.toml.dat | 0 docs/assets/benchmark/custom.css.dat | 0 docs/assets/benchmark/docs.dat | 0 docs/assets/benchmark/forloop0.gw.dat | 0 docs/assets/benchmark/forloop2.gw.dat | 0 docs/assets/benchmark/forloop3.gw.dat | 0 docs/assets/benchmark/forloop4.gw.dat | 0 docs/assets/benchmark/forloop5.gw.dat | 0 docs/assets/benchmark/function0.gw.dat | 0 docs/assets/benchmark/helloworld.gw.dat | 0 docs/assets/benchmark/lambda_args0.gw.dat | 0 docs/assets/benchmark/lambda_call0.gw.dat | 0 docs/assets/benchmark/lambda_fptr0.gw.dat | 0 docs/assets/benchmark/log.dat | 0 docs/assets/benchmark/repeat.gw.dat | 0 docs/assets/benchmark/repeat2.gw.dat | 0 docs/assets/benchmark/scripts.dat | 0 docs/assets/benchmark/src.dat | 0 docs/assets/benchmark/variadic.gw.dat | 0 docs/assets/benchmark/while0.gw.dat | 0 docs/assets/benchmark/while1.gw.dat | 0 scripts/ensure.sh | 6 +++--- 27 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 docs/assets/benchmark/Makefile.dat create mode 100644 docs/assets/benchmark/bench.plot.dat create mode 100644 docs/assets/benchmark/benchmark.sh.dat create mode 100644 docs/assets/benchmark/book.toml.dat create mode 100644 docs/assets/benchmark/custom.css.dat create mode 100644 docs/assets/benchmark/docs.dat create mode 100644 docs/assets/benchmark/forloop0.gw.dat create mode 100644 docs/assets/benchmark/forloop2.gw.dat create mode 100644 docs/assets/benchmark/forloop3.gw.dat create mode 100644 docs/assets/benchmark/forloop4.gw.dat create mode 100644 docs/assets/benchmark/forloop5.gw.dat create mode 100644 docs/assets/benchmark/function0.gw.dat create mode 100644 docs/assets/benchmark/helloworld.gw.dat create mode 100644 docs/assets/benchmark/lambda_args0.gw.dat create mode 100644 docs/assets/benchmark/lambda_call0.gw.dat create mode 100644 docs/assets/benchmark/lambda_fptr0.gw.dat create mode 100644 docs/assets/benchmark/log.dat create mode 100644 docs/assets/benchmark/repeat.gw.dat create mode 100644 docs/assets/benchmark/repeat2.gw.dat create mode 100644 docs/assets/benchmark/scripts.dat create mode 100644 docs/assets/benchmark/src.dat create mode 100644 docs/assets/benchmark/variadic.gw.dat create mode 100644 docs/assets/benchmark/while0.gw.dat create mode 100644 docs/assets/benchmark/while1.gw.dat diff --git a/.gitignore b/.gitignore index 09b67f03..412d3877 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ book book.toml +custom.css diff --git a/Makefile b/Makefile index 935c8c63..32aa42f8 100644 --- a/Makefile +++ b/Makefile @@ -7,19 +7,23 @@ build: ensure book: build deploy: book + @git add -f book + @git commit -m "add book" @git subtree push --prefix book origin gh-pages + @git rm -rf book + @git commit -m "remove book" ensure: @sh scripts/ensure.sh clean: - @[ -d src ] && mdbook clean + @[ -d src ] && mdbook clean || true clean-tests: @rm -rf *.gw log vlog clean-all: clean clean-tests - @rm -rf src + @rm -rf src book.toml custom.css .SUFFIXES: .gw .test .gw.test: diff --git a/docs/assets/benchmark/Makefile.dat b/docs/assets/benchmark/Makefile.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/bench.plot.dat b/docs/assets/benchmark/bench.plot.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/benchmark.sh.dat b/docs/assets/benchmark/benchmark.sh.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/book.toml.dat b/docs/assets/benchmark/book.toml.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/custom.css.dat b/docs/assets/benchmark/custom.css.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/docs.dat b/docs/assets/benchmark/docs.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/forloop0.gw.dat b/docs/assets/benchmark/forloop0.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/forloop2.gw.dat b/docs/assets/benchmark/forloop2.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/forloop3.gw.dat b/docs/assets/benchmark/forloop3.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/forloop4.gw.dat b/docs/assets/benchmark/forloop4.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/forloop5.gw.dat b/docs/assets/benchmark/forloop5.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/function0.gw.dat b/docs/assets/benchmark/function0.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/helloworld.gw.dat b/docs/assets/benchmark/helloworld.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/lambda_args0.gw.dat b/docs/assets/benchmark/lambda_args0.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/lambda_call0.gw.dat b/docs/assets/benchmark/lambda_call0.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/lambda_fptr0.gw.dat b/docs/assets/benchmark/lambda_fptr0.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/log.dat b/docs/assets/benchmark/log.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/repeat.gw.dat b/docs/assets/benchmark/repeat.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/repeat2.gw.dat b/docs/assets/benchmark/repeat2.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/scripts.dat b/docs/assets/benchmark/scripts.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/src.dat b/docs/assets/benchmark/src.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/variadic.gw.dat b/docs/assets/benchmark/variadic.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/while0.gw.dat b/docs/assets/benchmark/while0.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/docs/assets/benchmark/while1.gw.dat b/docs/assets/benchmark/while1.gw.dat new file mode 100644 index 00000000..e69de29b diff --git a/scripts/ensure.sh b/scripts/ensure.sh index 2a644ea6..461e5f80 100644 --- a/scripts/ensure.sh +++ b/scripts/ensure.sh @@ -4,7 +4,7 @@ cat < book.toml [book] authors = ["Jérémie Astor"] title = "Gwion" - +theme = "rust" [output.html] additional-css = ["custom.css"] @@ -15,7 +15,7 @@ EOF } css() { -cat < src/custom.css +cat < custom.css .mdr { color:var(--sidebar-active); background-color:var(--sidebar-bg); @@ -40,4 +40,4 @@ EOF [ -f book.toml ] || toml -[ -f src/custom.css ] || css +[ -f custom.css ] || css -- 2.43.0