GitPages+Simiki 个人wiki搭建
官方网站:http://simiki.org/zh-docs/
安装:
主机: 阿里云 Centos 7.4
搭建命令:
Install
pip install simiki
Update
pip install -U simiki
simiki update
Initialize
mkdir mywiki && cd mywiki
simiki init
Generate
simiki g
Preview
simiki p
部署
目录:
_config.yml配置
url: guoyujian111.github.io
title: GC的个人WiKi
keywords:
description:
author: GC
deploy:
- type: git
remote: origin
branch: master
root: /
source: content
destination: output
themes_dir: themes
theme: simple2
category:
- name: linux # 目录名
label: Linux/运维 # 目录的别名, 生成首页时可以使用
- name: database
label: 数据库
default_ext: md
pygments: true
debug: false
注意:
本wiki 搭建在github上,关于gitpages部署, simiki官网有相关文档可参照。
部署命令:fab deploy (先pip安装ghp-import)
生成一篇新wiki命令:
simiki n -t “ansible”(标题) -c Linux(分类)
修改提交命令:
fab commit
部署完成后,访问https://guoyujian111.github.io/,可看到页面:
设置自定义域名:
https://help.github.com/articles/setting-up-a-custom-subdomain/