summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorhaturatu <taro@eyes4you.org>2024-11-23 22:56:24 +0900
committerhaturatu <taro@eyes4you.org>2024-11-23 22:56:24 +0900
commit753d45541f95401e94df2c021fdf6381986d15da (patch)
treecdf93891efdfe1c5845bbcae6df950779b8a3306 /build.sh
first commit
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..f2d1a38
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+pwd | grep "src$" || cd src
+doctoc .
+sed -i "3d" ./*.md
+sed -i "/](\#/d" ./SUMMARY.md
+sed -i "8a`date`" ./update.md
+cd ..
+
+mdbook build
+git add .
+git commit -m "wip"
+git push