2018-11-21 16:19:53 +08:00
|
|
|
# Kobol 官方 Wiki
|
2017-10-10 16:03:56 +00:00
|
|
|
|
|
|
|
Powered by mkdocs : http://www.mkdocs.org/
|
|
|
|
|
2018-11-21 16:19:53 +08:00
|
|
|
### 模板
|
2017-12-21 14:20:45 +08:00
|
|
|
Material : http://squidfunk.github.io/mkdocs-material/
|
2017-12-19 19:05:07 +08:00
|
|
|
|
2018-11-21 16:19:53 +08:00
|
|
|
### 扩展
|
2017-12-21 14:20:45 +08:00
|
|
|
Lightgallery : https://github.com/g-provost/lightgallery-markdown
|
|
|
|
|
2018-11-21 16:19:53 +08:00
|
|
|
## 如何在本地运行此 wiki
|
2017-12-21 14:20:45 +08:00
|
|
|
|
2018-11-21 16:19:53 +08:00
|
|
|
1. 安装 mkdocs
|
2017-12-21 14:20:45 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ pip install mkdocs
|
|
|
|
```
|
|
|
|
|
2018-11-21 16:19:53 +08:00
|
|
|
2. 安装 Material 模板
|
2017-12-21 14:20:45 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ pip install mkdocs-material
|
|
|
|
```
|
|
|
|
|
2018-11-21 16:19:53 +08:00
|
|
|
3. 安装 Lightgallery 扩展
|
2017-12-21 14:20:45 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ git clone https://github.com/g-provost/lightgallery-markdown.git
|
|
|
|
|
|
|
|
$ cd lightgallery-markdown
|
|
|
|
|
|
|
|
$ python setup.py install
|
|
|
|
```
|
|
|
|
|
2018-11-21 16:19:53 +08:00
|
|
|
4. 下载和运行 wiki
|
2017-12-21 14:20:45 +08:00
|
|
|
|
|
|
|
```bash
|
2017-12-25 00:56:49 +08:00
|
|
|
$ git clone https://github.com/helios-4/wiki.git
|
|
|
|
|
|
|
|
$ cd wiki
|
2017-12-21 14:34:43 +08:00
|
|
|
|
2017-12-21 14:20:45 +08:00
|
|
|
$ mkdocs serve
|
|
|
|
```
|