summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--.travis.yml26
-rw-r--r--book.toml6
-rw-r--r--src/SUMMARY.md3
-rw-r--r--src/chapter_1.md1
5 files changed, 37 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/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..5817b59
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,26 @@
+language: rust
+sudo: false
+
+cache:
+ - cargo
+
+rust:
+ - stable
+
+before_script:
+ - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
+ - (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.3" mdbook)
+ - cargo install-update -a
+
+script:
+ - mdbook build && mdbook test # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook
+
+deploy:
+ provider: pages
+ skip-cleanup: true
+ github-token: $GITHUB_TOKEN
+ local-dir: book # In case of custom book path: path/to/mybook/book
+ keep-history: false
+ on:
+ branch: master
+
diff --git a/book.toml b/book.toml
new file mode 100644
index 0000000..b378c00
--- /dev/null
+++ b/book.toml
@@ -0,0 +1,6 @@
+[book]
+authors = ["tradam"]
+language = "en"
+multilingual = false
+src = "src"
+title = "pttrpg"
diff --git a/src/SUMMARY.md b/src/SUMMARY.md
new file mode 100644
index 0000000..7390c82
--- /dev/null
+++ b/src/SUMMARY.md
@@ -0,0 +1,3 @@
+# Summary
+
+- [Chapter 1](./chapter_1.md)
diff --git a/src/chapter_1.md b/src/chapter_1.md
new file mode 100644
index 0000000..b743fda
--- /dev/null
+++ b/src/chapter_1.md
@@ -0,0 +1 @@
+# Chapter 1