Skip to content

Commit

Permalink
update to gitbook v3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjikai committed Feb 26, 2017
1 parent e5c274e commit 6d79c73
Show file tree
Hide file tree
Showing 20 changed files with 680 additions and 242 deletions.
5 changes: 5 additions & 0 deletions GLOSSARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Git
分散式版本控制软件

## Markdown
Aaron Swartz 跟John Gruber共同设计的排版语言
9 changes: 6 additions & 3 deletions SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Summary

* [前言](README.md)
## 基本使用
* [前言](introduction.md)
* [安装](installation.md)
* [命令](commands.md)
* [目录结构](structure.md)
* [配置](settings.md)

## 扩展
* [插件](plugins.md)
* [主题](themes.md)
* [bookjson](bookjson.md)

1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions api.tag
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{% sample lang="js" %}
这里演示 JavaScript 如何输出信息到控制台

```js
console.log('Hello World');
```

{% sample lang="java" %}
这里演示 Java 如何输出信息到控制台

```java
System.out.println("Hello World");
```

{% common %}
这里是 JavaScript 和 Java 共同的信息

{% endmethod %}
Binary file added assets/images/api.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/comscore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/faq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/summary1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/summary2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
165 changes: 104 additions & 61 deletions book.json
Original file line number Diff line number Diff line change
@@ -1,91 +1,134 @@
{
"title" : "Gibook Use",
"description" : "记录Gitbook的配置和一些插件的使用",
"author" : "zhangjikai",
"generator": "site",
"language" : "zh-hans",
"gitbook" : "2.6.4",
"links" : {
"sidebar" : {
"Home" : "https://zhangjikai.com"
"title": "Gibook Use",
"description": "记录Gitbook的配置和一些插件的使用",
"author": "zhangjikai",
"output.name": "site",
"language": "zh-hans",
"gitbook": "3.2.2",
"root": ".",
"structure" : {
"readme": "introduction.md"
},
"links": {
"sidebar": {
"Home": "http://www.zhangjikai.com"
}
},
"plugins": [
"disqus",
"plugins": [
"-lunr",
"-search",
"[email protected]",
"[email protected]",
"github",
"ace",
"emphasize",
"katex",
"anchors",
"include-codeblock",
"mermaid",
"tbfed-pagefooter",
"sectionx",
"expandable-chapters",
"codeblock-filename",
"baidu",
"[email protected]",
"donate",
"local-video",
"toc",
"edit-link",
"[email protected]"

"-highlight",
"search-plus@^0.0.11",
"simple-page-toc@^0.1.1",
"github@^2.0.0",
"[email protected]",
"edit-link@^2.0.2",
"disqus@^0.1.0",
"prism@^2.1.0",
"prism-themes@^0.0.2",
"advanced-emoji@^0.2.1",
"anchors@^0.7.1",
"include-codeblock@^3.0.2",
"ace@^0.3.2",
"emphasize@^1.1.0",
"katex@^1.1.3",
"splitter@^0.0.8",
"mermaid@^0.0.9",
"tbfed-pagefooter@^0.0.1",
"expandable-chapters-small@^0.1.7",
"sectionx@^3.1.0",
"baidu@^0.1.0",
"donate@^1.0.2",
"local-video@^1.0.1",
"sitemap-general@^0.1.1",
"[email protected]",
"favicon@^0.0.2",
"todo@^0.1.3"
],
"pluginsConfig": {
"theme-default": {
"showLevel": true
},
"disqus": {
"shortName": "gitbookuse"
},
"prism": {
"css": [
"prism-themes/themes/prism-base16-ateliersulphurpool.light.css"
]
},
"github": {
"url": "https://github.com/zhangjikai/gitbook-use"
},
"search-pro": {
"cutWordLib": "nodejieba",
"defineWord": ["gitbook-use"]
},

"github-buttons": {
"repo": "zhangjikai/gitbook-use",
"types": [
"star"
],
"size": "small"
},
"include-codeblock": {
"template": "ace",
"unindent": true,
"edit": true

},
"sharing": {
"weibo": true,
"facebook": true,
"twitter": true,
"google": false,
"instapaper": false,
"vk": false,
"vk": false,
"all": [
"facebook", "google", "twitter",
"weibo", "instapaper"
"facebook",
"google",
"twitter",
"weibo",
"instapaper"
]
},

"tbfed-pagefooter": {
"copyright":"Copyright &copy zhangjikai.com 2017",
"copyright": "Copyright © zhangjikai.com 2017",
"modify_label": "该文件修订时间:",
"modify_format": "YYYY-MM-DD HH:mm:ss"
},

"baidu": {
"token" : "ff100361cdce95dd4c8fb96b4009f7bc"
"token": "ff100361cdce95dd4c8fb96b4009f7bc"
},
"sitemap": {
"hostname": "https://gitbook.zhangjikai.com"
},

"donate": {
"wechat": "https://zhangjikai.com/resource/weixin.png",
"alipay": "https://zhangjikai.com/resource/alipay.png",
"title": "",
"button": "",
"alipayText": "支付宝打赏",
"wechatText": "微信打赏"
"wechat": "https://zhangjikai.com/resource/weixin.png",
"alipay": "https://zhangjikai.com/resource/alipay.png",
"title": "",
"button": "",
"alipayText": "支付宝打赏",
"wechatText": "微信打赏"
},
"simple-page-toc": {
"maxDepth": 3,
"skipFirstH1": true
},
"edit-link": {
"base": "https://github.com/zhangjikai/gitbook-use/edit/master",
"label": "Edit This Page"
},

"edit-link": {
"base": "https://github.com/zhangjikai/gitbook-use/edit/master",
"label": "Edit This Page"
}

"sitemap-general": {
"prefix": "http://gitbook.zhangjikai.com"
},

"anchor-navigation-ex": {
"isRewritePageTitle": false,
"tocLevel1Icon":"fa fa-hand-o-right",
"tocLevel2Icon":"fa fa-hand-o-right",
"tocLevel3Icon":"fa fa-hand-o-right"
},
"sectionx": {
"tag": "b"
},
"favicon":{
"shortcut": "favicon.ico",
"bookmark": "favicon.ico"
}

}
}
}
4 changes: 2 additions & 2 deletions bookjson.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## book.json配置文件
# book.json配置文件

<!--email_off-->
[import](book.json)
<!--/email_off-->
<!--/email_off-->
3 changes: 2 additions & 1 deletion commands.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## 命令
# 命令

这里主要介绍一下 GitBook 的命令行工具 `gitbook-cli` 的一些命令, 首先说明两点:
* `gitbook-cli``gitbook` 是两个软件
* `gitbook-cli` 会将下载的 gitbook 的不同版本放到 `~/.gitbook`中, 可以通过设置`GITBOOK_DIR`环境变量来指定另外的文件夹
Expand Down
Binary file added favicon.ico
Binary file not shown.
14 changes: 8 additions & 6 deletions installation.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
## GitBook安装
# GitBook安装
下面介绍在本地如何安装 GitBook,如果不需要本地调试 & 不需要获得生成的 html 文件,可以直接使用 [官网](https://www.gitbook.com/) 提供的服务。
<!-- toc -->

### 环境要求
## 环境要求

* NodeJS(v4.0.0及以上)

### 通过NPM安装
## 通过NPM安装
运行下面的命令进行安装
```bash
npm install gitbook-cli -g
```
其中`gitbook-cli`是gitbook的一个命令行工具, 通过它可以在电脑上安装和管理gitbook的多个版本.

### 编辑书籍
gitbook 官方已经提供了一个本地的[编辑器](https://www.gitbook.com/editor/osx), 使用它可以方便的编写书籍(不需要手动的写SUMMARY.md), 并且支持windows、mac、linux 三种平台, 所以强烈建议使用编辑器编写书籍.
## 编辑书籍
gitbook 官方已经提供了一个本地的[编辑器](https://www.gitbook.com/editor/osx), 使用它可以方便的编写书籍(不需要手动的写SUMMARY.md), 并且支持windows、mac、linux 三种平台, 所以强烈建议使用编辑器编写书籍.

### 预览书籍
## 预览书籍
使用下列命令会运行一个服务器, 通过`http://localhost:4000/`可以预览书籍
```bash
gitbook serve
Expand Down
11 changes: 11 additions & 0 deletions introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 前言
主要记录GitBook的安装配置以及一些插件信息, 下面是GitBook的一些资源

* [GitBook主页](https://www.gitbook.com/)
* [Github地址](https://github.com/GitbookIO/)
* [GitBook编辑器](https://www.gitbook.com/editor/osx)
* [GitBook Toolchain Documentation](http://toolchain.gitbook.com/)
* [GitBook Documentation](http://help.gitbook.com/)

---
> 如若转载请标明出处.
Loading

0 comments on commit 6d79c73

Please sign in to comment.