2017-09-27 17:20:50 +08:00
|
|
|
# Kobol Offical Wiki
|
2017-10-10 16:03:56 +00:00
|
|
|
|
|
|
|
Powered by mkdocs : http://www.mkdocs.org/
|
|
|
|
|
2017-12-21 14:20:45 +08:00
|
|
|
### Template
|
|
|
|
Material : http://squidfunk.github.io/mkdocs-material/
|
2017-12-19 19:05:07 +08:00
|
|
|
|
2017-12-21 14:20:45 +08:00
|
|
|
### Extension
|
|
|
|
Lightgallery : https://github.com/g-provost/lightgallery-markdown
|
|
|
|
|
|
|
|
## How to run this wiki locally
|
|
|
|
|
|
|
|
1. Install mkdocs
|
|
|
|
|
|
|
|
```bash
|
2019-07-17 14:05:17 +08:00
|
|
|
$ pip3 install mkdocs
|
2017-12-21 14:20:45 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
2. Install Material Template
|
|
|
|
|
|
|
|
```bash
|
2019-07-17 14:05:17 +08:00
|
|
|
$ pip3 install mkdocs-material
|
2017-12-21 14:20:45 +08:00
|
|
|
```
|
|
|
|
|
2020-04-20 16:06:24 +08:00
|
|
|
3. Install git-revision plugin
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pip3 install mkdocs-git-revision-date-localized-plugin
|
|
|
|
```
|
|
|
|
|
|
|
|
4. Install Lightgallery Extension
|
2017-12-21 14:20:45 +08:00
|
|
|
|
|
|
|
```bash
|
|
|
|
$ git clone https://github.com/g-provost/lightgallery-markdown.git
|
|
|
|
|
|
|
|
$ cd lightgallery-markdown
|
|
|
|
|
2019-07-17 14:05:17 +08:00
|
|
|
$ python3 setup.py install
|
2017-12-21 14:20:45 +08:00
|
|
|
```
|
|
|
|
|
2019-07-17 14:05:17 +08:00
|
|
|
5. Download and serve wiki
|
2017-12-21 14:20:45 +08:00
|
|
|
|
|
|
|
```bash
|
2020-04-21 12:12:14 +08:00
|
|
|
$ git clone https://github.com/kobol-io/wiki.git
|
2017-12-25 00:56:49 +08:00
|
|
|
|
|
|
|
$ cd wiki
|
2017-12-21 14:34:43 +08:00
|
|
|
|
2017-12-21 14:20:45 +08:00
|
|
|
$ mkdocs serve
|
|
|
|
```
|