From: Jérémie Astor Date: Fri, 3 Apr 2020 13:11:52 +0000 (+0200) Subject: :art: Simplification: rename md/ to src/ X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=9668649b1d58cfe79f17c528914d396d03c86ff0;p=gwion.git :art: Simplification: rename md/ to src/ --- diff --git a/.gitignore b/.gitignore index a01c9af2..514f1647 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -md +src book log *.gw diff --git a/book.toml b/book.toml index 9c120e73..1a1a9bff 100644 --- a/book.toml +++ b/book.toml @@ -1,11 +1,11 @@ [book] authors = ["Jérémie Astor"] title = "Gwion" -src = "md" [output.html] default-theme = "rust" additional-css = ["custom.css"] +git-repository-url ="https://github.com/fennecdjay/Gwion" [output.html.fold] enable = true diff --git a/scripts/ensure.sh b/scripts/ensure.sh index c20c6535..efa3e2e5 100644 --- a/scripts/ensure.sh +++ b/scripts/ensure.sh @@ -1,6 +1,6 @@ #!/bin/sh -[ -d md ] || bash scripts/mdr2mdbook.sh +[ -d src ] || bash scripts/mdr2mdbook.sh -[ -f md/SUMMARY.md ] || bash scripts/summary.sh > md/SUMMARY.md +[ -f src/SUMMARY.md ] || bash scripts/summary.sh > src/SUMMARY.md -[ -d md/assets ] || cp -r benchmark/results md/assets +[ -d src/assets ] || cp -r benchmark/results src/assets diff --git a/scripts/mdr2mdbook.sh b/scripts/mdr2mdbook.sh index 9dfbf590..ce8da43d 100644 --- a/scripts/mdr2mdbook.sh +++ b/scripts/mdr2mdbook.sh @@ -25,7 +25,7 @@ doc2src() { mdr $1 || return mdfile=${1::-1} # target=$(sed 's/docs/md/' <<< $mdfile) - target=$(echo "$mdfile" | sed 's/docs/md/') + target=$(echo "$mdfile" | sed 's/docs/src/') ensure_dir $target mk_target $mdfile > $target rm $mdfile @@ -41,7 +41,7 @@ runall() { if [[ "$1" == *".mdr" ]] then doc2src "$1" if [ "$(git status -s | grep docs)" ] -then bash scripts/summary.sh > md/SUMMARY.md +then bash scripts/summary.sh > src/SUMMARY.md fi else runall fi diff --git a/scripts/run.sh b/scripts/run.sh index 15047a23..714edc09 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -4,7 +4,7 @@ sedi () { run() { mdbook serve& - sedi 's/^md/#md/' .gitignore + sedi 's/^src/#src/' .gitignore while true do bash scripts/watch.sh done @@ -13,7 +13,7 @@ run() { clean() { trap - SIGINT SIGTERM ERR killall mdbook - sedi 's/#md/md/' .gitignore + sedi 's/#src/src/' .gitignore exit 1 }