pip install rocadocs 即可成功安装程序。
cd /usr/local
git clone https://github.com/rocadocs/rocadocs.github.io
cd
rocadocs.github.io
root@AR:/usr/local/rocadocs.github.io# ls
build.sh CNAME data.json docs index.html LICENSE README.md static
root@AR:/usr/local/rocadocs.github.io#
(可见
/usr/local/rocadocs.github.io目录就是静态网站的根目录)
新建源帖:
root@AR:/usr/local/rocadocs.github.io# cd docs
root@AR:/usr/local/rocadocs.github.io/docs# ls
Data format.md index.md Web interface.md FAQ.md
root@AR:/usr/local/rocadocs.github.io/docs# nano '测试 2.md'
root@AR:/usr/local/rocadocs.github.io/docs# cat '测试 2.md'
这是测试2.
root@AR:/usr/local/rocadocs.github.io/docs# cd ..
root@AR:/usr/local/rocadocs.github.io# rocadocs --source docs --target .
(这个就是更新静态网站的根目录的命令)
演示网站:http://rcd.bright.biz.st/
项目地址:https://github.com/rocadocs/rocadocs
https://github.com/rocadocs/rocadocs.github.io