gem install brite
gem install facets
git clone https://github.com/rubyworks/brite-site
cd brite-site
as3:~/brite-site# ls
2012 atom.page humans.txt README.md tags.page
assets brite.yml index.page robots.txt
as3:~/brite-site#
as3:~/brite-site# brite (这个就是生成/更新静态网站的命令)
write: 2012/01-01-example.html
write: index.html
write: atom.xml
write: tags.html
4 Files: 3 Pages, 1 Posts
as3:~/brite-site# ls
2012 atom.page brite.yml index.html README.md tags.html
assets atom.xml humans.txt index.page robots.txt tags.page
(可见~/brite-site/就是静态网站的根目录)
as3:~/brite-site# nohup Rwebserver 34581 > /dev/null
访问http://as3.brite.biz:34581/就可看到网站效果。
发贴方法:
as3:~/brite-site# mkdir 2014
as3:~/brite-site# cd 2014
as3:~/brite-site/2014# nano 04-09-test1.post
帖子的格式为:
title : test1
date : 2014-04-09
tags : misc
layout : post
--- markdown
这是测试1.
然后,
as3:~/brite-site/2014# cd ..
as3:~/brite-site# brite
演示站点:http://as3.brite.biz:34581,http://brt.brite.biz.st
rubyworks.github.com ( 程序作者的演示博客。其源码:https://github.com/rubyworks/rubyworks.github.com)
项目地址:https://github.com/rubyworks/brite,
https://github.com/rubyworks/brite/wiki/Getting-Started
http://rubydoc.info/gems/brite/frames,
http://rubydoc.info/gems/brite/
https://github.com/rubyworks/brite-site
https://github.com/rubyworks/ (作者写的东西不少)
gem install facets
git clone https://github.com/rubyworks/brite-site
cd brite-site
as3:~/brite-site# ls
2012 atom.page humans.txt README.md tags.page
assets brite.yml index.page robots.txt
as3:~/brite-site#
as3:~/brite-site# brite (这个就是生成/更新静态网站的命令)
write: 2012/01-01-example.html
write: index.html
write: atom.xml
write: tags.html
4 Files: 3 Pages, 1 Posts
as3:~/brite-site# ls
2012 atom.page brite.yml index.html README.md tags.html
assets atom.xml humans.txt index.page robots.txt tags.page
(可见~/brite-site/就是静态网站的根目录)
as3:~/brite-site# nohup Rwebserver 34581 > /dev/null
访问http://as3.brite.biz:34581/就可看到网站效果。
发贴方法:
as3:~/brite-site# mkdir 2014
as3:~/brite-site# cd 2014
as3:~/brite-site/2014# nano 04-09-test1.post
帖子的格式为:
title : test1
date : 2014-04-09
tags : misc
layout : post
--- markdown
这是测试1.
然后,
as3:~/brite-site/2014# cd ..
as3:~/brite-site# brite
演示站点:http://as3.brite.biz:34581,http://brt.brite.biz.st
rubyworks.github.com ( 程序作者的演示博客。其源码:https://github.com/rubyworks/rubyworks.github.com)
项目地址:https://github.com/rubyworks/brite,
https://github.com/rubyworks/brite/wiki/Getting-Started
http://rubydoc.info/gems/brite/frames,
http://rubydoc.info/gems/brite/
https://github.com/rubyworks/brite-site
https://github.com/rubyworks/ (作者写的东西不少)