Build Github Wiki

具体步骤是按照官网教程,有些地方还需要注意。
当前工作环境:
MacBook Pro 10.10.2
Homebrew 0.9.5
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

首先安装gollum

sudo brew install icu4c
# On Yosemite (10.10), there seem to be additional problems installing nokogiri.
 Working fix seems to be:
sudo gem install nokogiri -v '1.6.6.2' -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib
sudo gem install charlock_holmes -- --with-icu-dir=/usr/local/opt/icu4c
sudo gem install gollum

** Note**:安装过程可能会出现问题(GFW导致):

Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/specs.4.8.gz)  wiki

解决办法:

sudo gem sources --remove https://rubygems.org/
sudo gem sources -a https://ruby.taobao.org/
sudo gem sources -l
*** CURRENT SOURCES ***

https://ruby.taobao.org

开通wiki

登陆Github,找到你所开通的Github项目的Settings栏目,开通Wikis,如果只希望别人可读不可写,勾选:Restrictedits to Collaborators only。

进入到你的本地仓库:

cd mywiki

运行gollum:

gollum

大功告成啦,在浏览器里输入http://0.0.0.0:4567 就可以尽情编辑了。
提交方式和正常的git项目提交一样。

你可能感兴趣的:(Build Github Wiki)