summaryrefslogtreecommitdiff
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
first commit
-rw-r--r--.gitignore1
-rw-r--r--README.md1
-rw-r--r--book.toml6
-rwxr-xr-xbuild.sh13
-rw-r--r--src/SUMMARY.md13
-rw-r--r--src/chapter_1.md9
-rw-r--r--src/update.md10
7 files changed, 53 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7585238
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+book
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..98335b9
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+# lets-mdbook
diff --git a/book.toml b/book.toml
new file mode 100644
index 0000000..b47220f
--- /dev/null
+++ b/book.toml
@@ -0,0 +1,6 @@
+[book]
+authors = ["haturatu"]
+language = "en"
+multilingual = false
+src = "src"
+title = "test"
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
diff --git a/src/SUMMARY.md b/src/SUMMARY.md
new file mode 100644
index 0000000..bb2d605
--- /dev/null
+++ b/src/SUMMARY.md
@@ -0,0 +1,13 @@
+<!-- START doctoc generated TOC please keep comment here to allow auto update -->
+<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
+**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
+
+
+<!-- END doctoc generated TOC please keep comment here to allow auto update -->
+
+# Summary
+
+- [Chapter 1](./chapter_1.md)
+
+# Update Log
+- [Log](./update.md)
diff --git a/src/chapter_1.md b/src/chapter_1.md
new file mode 100644
index 0000000..50af2c0
--- /dev/null
+++ b/src/chapter_1.md
@@ -0,0 +1,9 @@
+<!-- START doctoc generated TOC please keep comment here to allow auto update -->
+<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
+**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
+
+- [Chapter 1](#chapter-1)
+
+<!-- END doctoc generated TOC please keep comment here to allow auto update -->
+
+# Chapter 1
diff --git a/src/update.md b/src/update.md
new file mode 100644
index 0000000..08ade94
--- /dev/null
+++ b/src/update.md
@@ -0,0 +1,10 @@
+<!-- START doctoc generated TOC please keep comment here to allow auto update -->
+<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
+
+- [Update Log](#update-log)
+
+<!-- END doctoc generated TOC please keep comment here to allow auto update -->
+
+# Update Log
+2024年 11月 23日 土曜日 22:39:24 JST
+