Skip to content

Commit f344478

Browse files
committed
Initial commit
0 parents  commit f344478

File tree

5 files changed

+290
-0
lines changed

5 files changed

+290
-0
lines changed

.gitignore

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
######################
2+
# 解决java产生文件
3+
######################
4+
*.class
5+
6+
######################
7+
# 解决maven产生的文件
8+
######################
9+
target/
10+
**/target/
11+
pom.xml.tag
12+
pom.xml.releaseBackup
13+
pom.xml.versionsBackup
14+
pom.xml.next
15+
release.properties
16+
dependency-reduced-pom.xml
17+
buildNumber.properties
18+
.mvn/timing.properties
19+
20+
######################
21+
# jekyll
22+
######################
23+
.jekyll-cache
24+
_site
25+
26+
######################
27+
# 解决各类编辑器自动产生的文件
28+
######################
29+
*.iml
30+
.idea/
31+
/out/
32+
/target/
33+
.idea_modules/
34+
local.properties
35+
36+
######################
37+
# gradle
38+
######################
39+
.gradle
40+
41+
######################
42+
# android
43+
######################
44+
build
45+
captures
46+
gradle.properties
47+
.externalNativeBuild
48+
49+
######################
50+
# mac
51+
######################
52+
.DS_Store
53+
54+
######################
55+
# gitbook
56+
######################
57+
_book
58+
node_modules
59+
package-lock.json

README.md

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# 使用模板创建新书
2+
3+
## checkout 项目
4+
5+
- 命令
6+
7+
git clone https://github.com/bihe0832/gitbook.git
8+
9+
- 事例
10+
11+
➜ github git clone https://github.com/bihe0832/gitbook.git
12+
Cloning into 'gitbook'...
13+
14+
……
15+
16+
Unpacking objects: 100% (9/9), done.
17+
18+
## 安装依赖,推荐使用npm
19+
20+
- 命令
21+
22+
gitbook install
23+
24+
或者
25+
26+
npm install
27+
28+
- 事例
29+
30+
➜ gitbook git:(master) npm install
31+
32+
……
33+
34+
1 package is looking for funding
35+
run `npm fund` for details
36+
37+
## 初始化新书
38+
39+
- 命令
40+
41+
gitbook init
42+
43+
- 事例
44+
45+
➜ gitbook git:(master) gitbook init
46+
warn: no summary file in this book
47+
info: create SUMMARY.md
48+
info: initialization is finished
49+
50+
## 预览新书
51+
52+
- 命令
53+
54+
gitbook serve
55+
56+
- 事例
57+
58+
➜ gitbook git:(master) ✗ gitbook serve
59+
60+
Live reload server started on port: 35729
61+
Press CTRL+C to quit ...
62+
63+
……
64+
65+
Starting server ...
66+
Serving book on http://localhost:4000
67+
68+
## 生成新书
69+
70+
- 命令
71+
72+
gitbook build
73+
74+
- 事例
75+
76+
➜ gitbook git:(master) ✗ gitbook build
77+
info: 25 plugins are installed
78+
info: 20 explicitly listed
79+
80+
……
81+
82+
info: found 1 pages
83+
info: found 2 asset files
84+
warn: "options" property is deprecated, use config.get(key) instead
85+
warn: "options.generator" property is deprecated, use "output.name" instead
86+
info: >> generation finished with success in 0.8s !

SUMMARY.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Summary
2+
3+
* [使用简介](README.md)
4+

book.json

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"title": "AndroidAppFactory",
3+
"description": "AndroidAppFactory Doc",
4+
"author": "zixie",
5+
"language": "zh-hans",
6+
"links": {
7+
"sidebar": {
8+
"子勰的博客": "https://blog.bihe0832.com/"
9+
}
10+
},
11+
"styles": {
12+
"website": "http://cdn.bihe0832.com/css/global.css"
13+
},
14+
"plugins": [
15+
"favicon",
16+
"insert-logo",
17+
"-lunr",
18+
"-search",
19+
"search-pro",
20+
"expandable-chapters",
21+
"chapter-fold",
22+
"splitter",
23+
"hide-element",
24+
"pageview-count",
25+
"-sharing",
26+
"sharing-plus",
27+
"github",
28+
29+
"code",
30+
"popup",
31+
"anchor-navigation-ex",
32+
"prism",
33+
"-highlight",
34+
"flexible-alerts",
35+
"tbfed-pagefooter",
36+
"donate"
37+
],
38+
"pluginsConfig": {
39+
"favicon": {
40+
"shortcut": "http://cdn.bihe0832.com/images/zixie_32.ico",
41+
"bookmark": "http://cdn.bihe0832.com/images/zixie_32.ico",
42+
"appleTouch": "http://cdn.bihe0832.com/images/zixie_32.ico",
43+
"appleTouchMore": {
44+
"120x120": "http://cdn.bihe0832.com/images/zixie_32.ico",
45+
"180x180": "http://cdn.bihe0832.com/images/zixie_32.ico"
46+
}
47+
},
48+
"insert-logo": {
49+
"url": "https://android.bihe0832.com/samples/img/logo.png",
50+
"style": "background: 'none'; max-height: 60px; min-height: 30px"
51+
},
52+
"hide-element": {
53+
"elements": [
54+
".gitbook-link"
55+
]
56+
},
57+
"github": {
58+
"url": "https://github.com/bihe0832"
59+
},
60+
"github-buttons": {
61+
"repo": "bihe0832/AndroidAppFactory",
62+
"types": [
63+
"star"
64+
],
65+
"size": "small"
66+
},
67+
"sharing": {
68+
"qq": true,
69+
"weibo": true,
70+
"all": [
71+
"facebook",
72+
"google",
73+
"instapaper",
74+
"linkedin",
75+
"twitter",
76+
"weibo",
77+
"messenger",
78+
"qq",
79+
"qzone"
80+
]
81+
},
82+
"prism": {
83+
"css": [
84+
"prismjs/themes/prism-okaidia.css"
85+
]
86+
},
87+
"tbfed-pagefooter": {
88+
"copyright": "Copyright &copy <a href='https://blog.bihe0832.com'>zixie</a>",
89+
"modify_label": "最后修改:",
90+
"modify_format": "YYYY-MM-DD HH:mm:ss"
91+
},
92+
"donate": {
93+
"wechat": "https://blog.bihe0832.com/public/img/wechat.jpeg",
94+
"alipay": "https://blog.bihe0832.com/public/img/wechat.jpeg",
95+
"title": "",
96+
"button": "赞赏",
97+
"wechatText": "潜心做精品",
98+
"alipayText": "努力学技术"
99+
}
100+
}
101+
}

package.json

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"requires": true,
3+
"dependencies": {
4+
"gitbook-plugin-anchor-navigation-ex": "^1.0.14",
5+
"gitbook-plugin-chapter-fold": "0.0.4",
6+
"gitbook-plugin-code": "^0.1.0",
7+
"gitbook-plugin-donate": "^1.0.2",
8+
"gitbook-plugin-expandable-chapters": "^0.2.0",
9+
"gitbook-plugin-favicon": "0.0.2",
10+
"gitbook-plugin-flexible-alerts": "^1.0.3",
11+
"gitbook-plugin-github": "2.0.0",
12+
"gitbook-plugin-github-buttons": "2.1.0",
13+
"gitbook-plugin-hide-element": "0.0.4",
14+
"gitbook-plugin-insert-logo": "^0.1.5",
15+
"gitbook-plugin-pageview-count": "^1.0.1",
16+
"gitbook-plugin-popup": "0.0.1",
17+
"gitbook-plugin-prism": "^2.4.0",
18+
"gitbook-plugin-search-pro": "^2.0.2",
19+
"gitbook-plugin-sharing-plus": "0.0.2",
20+
"gitbook-plugin-splitter": "0.0.8",
21+
"gitbook-plugin-tbfed-pagefooter": "0.0.1"
22+
},
23+
"name": "gitbook",
24+
"description": "##",
25+
"version": "1.0.0",
26+
"main": "index.js",
27+
"scripts": {
28+
"test": "echo \"Error: no test specified\" && exit 1"
29+
},
30+
"repository": {
31+
"type": "git",
32+
"url": "git+https://github.com/bihe0832/gitbook.git"
33+
},
34+
"author": "zixie",
35+
"license": "ISC",
36+
"bugs": {
37+
"url": "https://github.com/bihe0832/gitbook/issues"
38+
},
39+
"homepage": "https://github.com/bihe0832/gitbook#readme"
40+
}

0 commit comments

Comments
 (0)