forked from actiontech/dble-docs-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (61 loc) · 2.4 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
default: pull_code gitbook_build publish gitbook_pdf
publish: publish_prepare publish_push
gitbook_preview:
docker run --rm -v "${PWD}":/gitbook -p 4000:4000 billryan/gitbook:zh-hans gitbook serve
gitbook_build:
docker run --rm -v "${PWD}":/gitbook -p 4000:4000 billryan/gitbook:zh-hans gitbook build
pull_code:
git pull origin master --rebase
gitbook_pdf:
docker run --rm -v "${PWD}":/gitbook -p 4000:4000 billryan/gitbook:zh-hans gitbook pdf ./ ./dble-manual.pdf
git add .
git commit -a -m "Update pdf"
git push
publish_prepare:
git checkout gh-pages
git pull origin gh-pages --rebase
cp -R _book/* .
git clean -fx _book
git add .
git commit -a -m "Update docs"
publish_push:
git push origin gh-pages
git checkout master
merge_book:
mkdir tmp
mkdir tmp/pic
#readme
cp README.md tmp/0.0.README.md
# charter0
cat 0.overview/*.md > tmp/0.overview.md
cp 0.overview/pic/* tmp/pic/
# charter1
cat 1.config_file/1.6_cache/*.md > 1.config_file/1.6_cache.md.detail.md
cat 1.config_file/1.7_global_sequence/*.md > 1.config_file/1.7_global_sequence.md.detail.md
cat 1.config_file/*.md > tmp/1.config_file.md
# charter2
cat 2.Function/2.1_manager_cmd/*.md > 2.Function/2.01_manager_cmd.md.detail.md
cat 2.Function/2.2_global_sequence/*.md > 2.Function/2.02_global_sequence.md.detail.md
cat 2.Function/2.5_distribute_transaction/*.md > 2.Function/2.05_distribute_transaction.md.detail.md
cat 2.Function/2.10_table_meta/*.md > 2.Function/2.10_table_meta.md.detail.md
cat 2.Function/2.11_statistics_manager/*.md > 2.Function/2.11_statistics_manager.md.detail.md
cat 2.Function/*.md > tmp/2.Function.md
cp 2.Function/pic/* tmp/pic/
cp 2.Function/2.5_distribute_transaction/pic/* tmp/pic/
cp 2.Function/2.10_table_meta/pic/* tmp/pic/
# charter3
cat 3.SQL_Syntax/3.1_DDL/*.md > 3.SQL_Syntax/3.1_DDL.md.detail.md
cat 3.SQL_Syntax/3.2_DML/*.md > 3.SQL_Syntax/3.2_DML.md.detail.md
cat 3.SQL_Syntax/3.4_Transactional_and_Locking_Statements/*.md > 3.SQL_Syntax/3.4_Transactional_and_Locking_Statements.md.detail.md
cat 3.SQL_Syntax/3.5_DAL/*.md > 3.SQL_Syntax/3.5_DAL.md.detail.md
cat 3.SQL_Syntax/*.md > tmp/3.SQL_Syntax.md
# charter4
cat 4.Protocol/*.md > tmp/4.Protocol.md
# charter5
cat 5.Limit/*.md > tmp/5.Limit.md
# charter6
cat 6.Differernce_from_MySQL_Server/*.md > tmp/6.Differernce_from_MySQL_Server.md
# charter7
cat 7.Developer_Notice/*.md > tmp/7.Developer_Notice.md
# all
cat tmp/*.md > tmp/dble-doc-cn.md