as3:~# git clone git://github.com/sunaku/readably.git
as3:~# cd readably
as3:~/readably# bundle install
as3:~/readably# ls
content Gemfile Rakefile
EXAMPLE.config.yaml Gemfile.lock README.markdown
EXAMPLE.entry.readably LICENSE template
as3:~/readably# ls content
feed-icon-28x28.png js
as3:~/readably# cp -vb EXAMPLE.entry.readably content/
`EXAMPLE.entry.readably' -> `content/EXAMPLE.entry.readably'
as3:~/readably# ls content
EXAMPLE.entry.readably feed-icon-28x28.png js
as3:~/readably# cp -vb EXAMPLE.config.yaml config.yaml
`EXAMPLE.config.yaml' -> `config.yaml'
as3:~/readably# bundle exec rake (这个就是生成/更新静态网站的命令)
load config.yaml
load content/**/*.readably
Bad entry file name: "content/EXAMPLE.entry.readably"
Please rename it to: "content/example.entry.readably"
entry content/EXAMPLE.entry.readably
index template/index.atom.slim
style template/style.css.sass
index template/index.html.slim
as3:~/readably# mv content/EXAMPLE.entry.readably content/example.entry.readably
as3:~/readably# ls
config.yaml EXAMPLE.config.yaml Gemfile LICENSE README.markdown
content EXAMPLE.entry.readably Gemfile.lock Rakefile template
as3:~/readably# ls content
example.entry.html feed-icon-28x28.png index.html style.css
example.entry.readably index.atom js
as3:~/readably# cd content
as3:~/readably/content# ls
example.entry.html feed-icon-28x28.png index.html style.css
example.entry.readably index.atom js
(可见~/readably/content/就是静态网站的根目录。可绑定一个域名到该目录。)
as3:~/readably/content# nohup Rwebserver 5048 > /dev/null &
发贴方法:
as3:~/readably/content# nano test1.readably
格式如下:
访问http://as3.brite.biz:5048/,即可看到效果。
演示站点:http://rdb.brite.biz/
项目地址: https://github.com/sunaku/readably
写帖子的格式时老是出错,严重不推荐使用本程序。
as3:~# cd readably
as3:~/readably# bundle install
as3:~/readably# ls
content Gemfile Rakefile
EXAMPLE.config.yaml Gemfile.lock README.markdown
EXAMPLE.entry.readably LICENSE template
as3:~/readably# ls content
feed-icon-28x28.png js
as3:~/readably# cp -vb EXAMPLE.entry.readably content/
`EXAMPLE.entry.readably' -> `content/EXAMPLE.entry.readably'
as3:~/readably# ls content
EXAMPLE.entry.readably feed-icon-28x28.png js
as3:~/readably# cp -vb EXAMPLE.config.yaml config.yaml
`EXAMPLE.config.yaml' -> `config.yaml'
as3:~/readably# bundle exec rake (这个就是生成/更新静态网站的命令)
load config.yaml
load content/**/*.readably
Bad entry file name: "content/EXAMPLE.entry.readably"
Please rename it to: "content/example.entry.readably"
entry content/EXAMPLE.entry.readably
index template/index.atom.slim
style template/style.css.sass
index template/index.html.slim
as3:~/readably# mv content/EXAMPLE.entry.readably content/example.entry.readably
as3:~/readably# ls
config.yaml EXAMPLE.config.yaml Gemfile LICENSE README.markdown
content EXAMPLE.entry.readably Gemfile.lock Rakefile template
as3:~/readably# ls content
example.entry.html feed-icon-28x28.png index.html style.css
example.entry.readably index.atom js
as3:~/readably# cd content
as3:~/readably/content# ls
example.entry.html feed-icon-28x28.png index.html style.css
example.entry.readably index.atom js
(可见~/readably/content/就是静态网站的根目录。可绑定一个域名到该目录。)
as3:~/readably/content# nohup Rwebserver 5048 > /dev/null &
发贴方法:
as3:~/readably/content# nano test1.readably
格式如下:
title: test1 category: misc content: | p (这里从左边算起,空2格写p) |this is test1. (这里从左边算起,空4格写|,然后|的右边写正文。)
访问http://as3.brite.biz:5048/,即可看到效果。
演示站点:http://rdb.brite.biz/
项目地址: https://github.com/sunaku/readably
写帖子的格式时老是出错,严重不推荐使用本程序。