File tree Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 1
1
language : rust
2
2
script :
3
3
- (cargo install mdbook --git https://github.com/azerupi/mdBook.git --force || true)
4
- - mkdir src
5
- - echo "[Introduction](introduction.md)\n" >> src/SUMMARY.md
6
- - |
7
- for f in $(ls text/* | sort)
8
- do
9
- echo "- [$(basename $f ".md")]($(basename $f))" >> src/SUMMARY.md
10
- mv $f src
11
- done
12
- - cp README.md src/introduction.md
13
- - mdbook build -d .
4
+ - ./generate-book.sh
5
+ - mv book/* .
14
6
deploy :
15
7
provider : pages
16
8
skip_cleanup : true
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -e
4
+
5
+ if [ ! -d src ]; then
6
+ mkdir src
7
+ fi
8
+
9
+ echo " [Introduction](introduction.md)\n" > src/SUMMARY.md
10
+
11
+ for f in $( ls text/* | sort)
12
+ do
13
+ echo " - [$( basename $f " .md" ) ]($( basename $f ) )" >> src/SUMMARY.md
14
+ cp $f src
15
+ done
16
+
17
+ cp README.md src/introduction.md
18
+
19
+ mdbook build
You can’t perform that action at this time.
0 commit comments