]> Nishi Git Mirror - gwion.git/commitdiff
:book: Update
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 10 Nov 2019 21:52:51 +0000 (22:52 +0100)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 10 Nov 2019 21:52:51 +0000 (22:52 +0100)
27 files changed:
.gitignore
Makefile
docs/assets/benchmark/Makefile.dat [new file with mode: 0644]
docs/assets/benchmark/bench.plot.dat [new file with mode: 0644]
docs/assets/benchmark/benchmark.sh.dat [new file with mode: 0644]
docs/assets/benchmark/book.toml.dat [new file with mode: 0644]
docs/assets/benchmark/custom.css.dat [new file with mode: 0644]
docs/assets/benchmark/docs.dat [new file with mode: 0644]
docs/assets/benchmark/forloop0.gw.dat [new file with mode: 0644]
docs/assets/benchmark/forloop2.gw.dat [new file with mode: 0644]
docs/assets/benchmark/forloop3.gw.dat [new file with mode: 0644]
docs/assets/benchmark/forloop4.gw.dat [new file with mode: 0644]
docs/assets/benchmark/forloop5.gw.dat [new file with mode: 0644]
docs/assets/benchmark/function0.gw.dat [new file with mode: 0644]
docs/assets/benchmark/helloworld.gw.dat [new file with mode: 0644]
docs/assets/benchmark/lambda_args0.gw.dat [new file with mode: 0644]
docs/assets/benchmark/lambda_call0.gw.dat [new file with mode: 0644]
docs/assets/benchmark/lambda_fptr0.gw.dat [new file with mode: 0644]
docs/assets/benchmark/log.dat [new file with mode: 0644]
docs/assets/benchmark/repeat.gw.dat [new file with mode: 0644]
docs/assets/benchmark/repeat2.gw.dat [new file with mode: 0644]
docs/assets/benchmark/scripts.dat [new file with mode: 0644]
docs/assets/benchmark/src.dat [new file with mode: 0644]
docs/assets/benchmark/variadic.gw.dat [new file with mode: 0644]
docs/assets/benchmark/while0.gw.dat [new file with mode: 0644]
docs/assets/benchmark/while1.gw.dat [new file with mode: 0644]
scripts/ensure.sh

index 09b67f03b89ff496bfa8563347c8b864e8aa3111..412d38772e496f6fce3125909c54646aad28d6f0 100644 (file)
@@ -1,2 +1,3 @@
 book
 book.toml
+custom.css
index 935c8c63604a06e1a2072cbd2c210303a8b9dfce..32aa42f8b2261699b6aa03acaadcf9fd1071efbe 100644 (file)
--- 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 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/bench.plot.dat b/docs/assets/benchmark/bench.plot.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/benchmark.sh.dat b/docs/assets/benchmark/benchmark.sh.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/book.toml.dat b/docs/assets/benchmark/book.toml.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/custom.css.dat b/docs/assets/benchmark/custom.css.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/docs.dat b/docs/assets/benchmark/docs.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/forloop0.gw.dat b/docs/assets/benchmark/forloop0.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/forloop2.gw.dat b/docs/assets/benchmark/forloop2.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/forloop3.gw.dat b/docs/assets/benchmark/forloop3.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/forloop4.gw.dat b/docs/assets/benchmark/forloop4.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/forloop5.gw.dat b/docs/assets/benchmark/forloop5.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/function0.gw.dat b/docs/assets/benchmark/function0.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/helloworld.gw.dat b/docs/assets/benchmark/helloworld.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/lambda_args0.gw.dat b/docs/assets/benchmark/lambda_args0.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/lambda_call0.gw.dat b/docs/assets/benchmark/lambda_call0.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/lambda_fptr0.gw.dat b/docs/assets/benchmark/lambda_fptr0.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/log.dat b/docs/assets/benchmark/log.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/repeat.gw.dat b/docs/assets/benchmark/repeat.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/repeat2.gw.dat b/docs/assets/benchmark/repeat2.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/scripts.dat b/docs/assets/benchmark/scripts.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/src.dat b/docs/assets/benchmark/src.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/variadic.gw.dat b/docs/assets/benchmark/variadic.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/while0.gw.dat b/docs/assets/benchmark/while0.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/assets/benchmark/while1.gw.dat b/docs/assets/benchmark/while1.gw.dat
new file mode 100644 (file)
index 0000000..e69de29
index 2a644ea62017f8d2b52cc55f7e7020b90625e116..461e5f8050be345d61a53913f9cebe319176b355 100644 (file)
@@ -4,7 +4,7 @@ cat <<EOF > 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 <<EOF > src/custom.css
+cat <<EOF > 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