git clone https://github.com/icebreaker/doxter
cd doxter
python setup.py install
as3:~/doxter# doxter
Doxterfile does not exists.
Invalid options. Run `doxter --help` for assistance.
as3:~/doxter# find . -name Doxterfile
./examples/blog/Doxterfile
./examples/book/Doxterfile
./examples/doc/Doxterfile
as3:~/doxter# cd examples/blog/
as3:~/doxter/examples/blog# ls
css favicon.ico _pages _posts _templates
Doxterfile images _plugins
as3:~/doxter/examples/blog# doxter -h
Doxter v0.2.0
usage: doxter [options]
Examples:
doxter -f MyDoxterFile
Options:
-f, --file specify non-standard Doxterfile
-s, --server start server
-p, --port specify server port (default port: 4000)
-v, --version shows version information
-h, --help shows help
as3:~/doxter/examples/blog# doxter --file Doxterfile (这个就是生成静态网站的命令)
11 registered processors
writing _site/2011/8/14/hiatus/index.html ...
writing _site/about/index.html ...
writing _site/atom.xml ...
writing _site/index.html ...
processed about 4 files in approximately 0.30 seconds ...
as3:~/doxter/examples/blog# ls
css favicon.ico _pages _posts _templates
Doxterfile images _plugins _site
(新出现了_site目录)
as3:~/doxter/examples/blog# cd _site
as3:~/doxter/examples/blog/_site# ls
2011 about atom.xml css favicon.ico images index.html
(可见~/doxter/examples/blog/_site/就是静态网站的根目录)
as3:~/doxter/examples/blog/_site# nohup Rwebserver 35672 > /dev/null &
访问http://as3.brite.biz:35672/就可看到网站效果。
发贴方法:
as3:~/doxter/examples/blog/_site# cd ..
as3:~/doxter/examples/blog# ls
css favicon.ico _pages _posts _templates
Doxterfile images _plugins _site
as3:~/doxter/examples/blog# cd _posts
as3:~/doxter/examples/blog/_posts# ls
2011-08-14-hiatus.markdown
as3:~/doxter/examples/blog/_posts# nano 2014-02-02-test1.markdown
按2011-08-14-hiatus.markdown的格式,新建帖子2014-02-02-test1.markdown,格式如下:
---
layout: post
title: 测试1
tags: [misc1, misc2]
---
这是测试1.
然后,
as3:~/doxter/examples/blog/_posts# cd ..
as3:~/doxter/examples/blog# ls
css favicon.ico _pages _posts _templates
Doxterfile images _plugins _site
as3:~/doxter/examples/blog# doxter --file Doxterfile (这个就是生成/更新静态网站的命令)
演示站点:http://as3.brite.biz:35672/,http://dt.brite.biz
项目地址:https://github.com/icebreaker/doxter
在上面我们查找Doxterfile时,发现了3个Doxterfile.
as3:~/doxter# find . -name Doxterfile
./examples/blog/Doxterfile
./examples/book/Doxterfile
./examples/doc/Doxterfile
as3:~/doxter# cd examples
as3:~/doxter/examples# ls
blog book doc
as3:~/doxter/examples# cd book
as3:~/doxter/examples/book# ls
css Doxterfile images _plugins _src _templates
as3:~/doxter/examples/book# ls ../blog/
css favicon.ico _pages _posts _templates
Doxterfile images _plugins _site
as3:~/doxter/examples/book# ls _src
00_intro.md 01_chapter.md 02_chapter.md 03_chapter.md 07_chapter.md
as3:~/doxter/examples/book# ls
css Doxterfile images _plugins _src _templates
as3:~/doxter/examples/book# doxter --file Doxterfile
10 registered processors
writing _site/index.html ...
processed about 5 files in approximately 0.11 seconds ...
as3:~/doxter/examples/book# ls
css Doxterfile images _plugins _site _src _templates
as3:~/doxter/examples/book# cd _site
as3:~/doxter/examples/book/_site# ls
css images index.html
as3:~/doxter/examples/book/_site# nohup Rwebserver 23543 > /dev/null &
访问http://as3.brite.biz:23543/就可看到电子书网站的效果。
新建章节方法:
as3:~/doxter/examples/book/_site# cd ../_src
as3:~/doxter/examples/book/_src# ls
00_intro.md 02_chapter.md 04_chapter.md
01_chapter.md 03_chapter.md
as3:~/doxter/examples/book/_src# nano 05_chapter.md
as3:~/doxter/examples/book/_src# cat 05_chapter.md
测试1
-----
这是测试1.
---
as3:~/doxter/examples/book/_src# cd ..
as3:~/doxter/examples/book# ls
css Doxterfile images _plugins _site _src _templates
as3:~/doxter/examples/book# doxter --file Doxterfile
还有一个doxterfile为./examples/doc/Doxterfile,可以自行进入~/doxter/examples/doc/去探究。
你也可克隆作者自己的博客的源码:https://github.com/icebreaker/icebreaker.github.com,
git clone https://github.com/icebreaker/icebreaker.github.com icebreaker.github.com-site
cd icebreaker.github.com-site
as3:~/icebreaker.github.com-site# ls
2007 2010 2013 about css fonts js _src
2008 2011 2014 atom.xml favicon.ico images lera3d
2009 2012 404.html CNAME files index.html README.md
as3:~/icebreaker.github.com-site# cd _src
as3:~/icebreaker.github.com-site/_src# ls
CNAME Doxterfile files images lera3d _plugins README.md
css favicon.ico fonts js _pages _posts _templates
as3:~/icebreaker.github.com-site/_src# nano _posts/2014-02-02-test1.markdown
as3:~/icebreaker.github.com-site/_src# doxter --file Doxterfile
as3:~/icebreaker.github.com-site/_src# cd ..
as3:~/icebreaker.github.com-site# ls
2007 2010 2013 about css fonts js _src
2008 2011 2014 atom.xml favicon.ico images lera3d
2009 2012 404.html CNAME files index.html README.md
(可见~/icebreaker.github.com-site/就是静态网站的根目录)
as3:~/icebreaker.github.com-site# nohup Rwebserver 32641 > /dev/null &
访问http://as3.brite.biz:32641/就可看到网站效果。
cd doxter
python setup.py install
as3:~/doxter# doxter
Doxterfile does not exists.
Invalid options. Run `doxter --help` for assistance.
as3:~/doxter# find . -name Doxterfile
./examples/blog/Doxterfile
./examples/book/Doxterfile
./examples/doc/Doxterfile
as3:~/doxter# cd examples/blog/
as3:~/doxter/examples/blog# ls
css favicon.ico _pages _posts _templates
Doxterfile images _plugins
as3:~/doxter/examples/blog# doxter -h
Doxter v0.2.0
usage: doxter [options]
Examples:
doxter -f MyDoxterFile
Options:
-f, --file specify non-standard Doxterfile
-s, --server start server
-p, --port specify server port (default port: 4000)
-v, --version shows version information
-h, --help shows help
as3:~/doxter/examples/blog# doxter --file Doxterfile (这个就是生成静态网站的命令)
11 registered processors
writing _site/2011/8/14/hiatus/index.html ...
writing _site/about/index.html ...
writing _site/atom.xml ...
writing _site/index.html ...
processed about 4 files in approximately 0.30 seconds ...
as3:~/doxter/examples/blog# ls
css favicon.ico _pages _posts _templates
Doxterfile images _plugins _site
(新出现了_site目录)
as3:~/doxter/examples/blog# cd _site
as3:~/doxter/examples/blog/_site# ls
2011 about atom.xml css favicon.ico images index.html
(可见~/doxter/examples/blog/_site/就是静态网站的根目录)
as3:~/doxter/examples/blog/_site# nohup Rwebserver 35672 > /dev/null &
访问http://as3.brite.biz:35672/就可看到网站效果。
发贴方法:
as3:~/doxter/examples/blog/_site# cd ..
as3:~/doxter/examples/blog# ls
css favicon.ico _pages _posts _templates
Doxterfile images _plugins _site
as3:~/doxter/examples/blog# cd _posts
as3:~/doxter/examples/blog/_posts# ls
2011-08-14-hiatus.markdown
as3:~/doxter/examples/blog/_posts# nano 2014-02-02-test1.markdown
按2011-08-14-hiatus.markdown的格式,新建帖子2014-02-02-test1.markdown,格式如下:
---
layout: post
title: 测试1
tags: [misc1, misc2]
---
这是测试1.
然后,
as3:~/doxter/examples/blog/_posts# cd ..
as3:~/doxter/examples/blog# ls
css favicon.ico _pages _posts _templates
Doxterfile images _plugins _site
as3:~/doxter/examples/blog# doxter --file Doxterfile (这个就是生成/更新静态网站的命令)
演示站点:http://as3.brite.biz:35672/,http://dt.brite.biz
项目地址:https://github.com/icebreaker/doxter
在上面我们查找Doxterfile时,发现了3个Doxterfile.
as3:~/doxter# find . -name Doxterfile
./examples/blog/Doxterfile
./examples/book/Doxterfile
./examples/doc/Doxterfile
as3:~/doxter# cd examples
as3:~/doxter/examples# ls
blog book doc
as3:~/doxter/examples# cd book
as3:~/doxter/examples/book# ls
css Doxterfile images _plugins _src _templates
as3:~/doxter/examples/book# ls ../blog/
css favicon.ico _pages _posts _templates
Doxterfile images _plugins _site
as3:~/doxter/examples/book# ls _src
00_intro.md 01_chapter.md 02_chapter.md 03_chapter.md 07_chapter.md
as3:~/doxter/examples/book# ls
css Doxterfile images _plugins _src _templates
as3:~/doxter/examples/book# doxter --file Doxterfile
10 registered processors
writing _site/index.html ...
processed about 5 files in approximately 0.11 seconds ...
as3:~/doxter/examples/book# ls
css Doxterfile images _plugins _site _src _templates
as3:~/doxter/examples/book# cd _site
as3:~/doxter/examples/book/_site# ls
css images index.html
as3:~/doxter/examples/book/_site# nohup Rwebserver 23543 > /dev/null &
访问http://as3.brite.biz:23543/就可看到电子书网站的效果。
新建章节方法:
as3:~/doxter/examples/book/_site# cd ../_src
as3:~/doxter/examples/book/_src# ls
00_intro.md 02_chapter.md 04_chapter.md
01_chapter.md 03_chapter.md
as3:~/doxter/examples/book/_src# nano 05_chapter.md
as3:~/doxter/examples/book/_src# cat 05_chapter.md
测试1
-----
这是测试1.
---
as3:~/doxter/examples/book/_src# cd ..
as3:~/doxter/examples/book# ls
css Doxterfile images _plugins _site _src _templates
as3:~/doxter/examples/book# doxter --file Doxterfile
还有一个doxterfile为./examples/doc/Doxterfile,可以自行进入~/doxter/examples/doc/去探究。
你也可克隆作者自己的博客的源码:https://github.com/icebreaker/icebreaker.github.com,
git clone https://github.com/icebreaker/icebreaker.github.com icebreaker.github.com-site
cd icebreaker.github.com-site
as3:~/icebreaker.github.com-site# ls
2007 2010 2013 about css fonts js _src
2008 2011 2014 atom.xml favicon.ico images lera3d
2009 2012 404.html CNAME files index.html README.md
as3:~/icebreaker.github.com-site# cd _src
as3:~/icebreaker.github.com-site/_src# ls
CNAME Doxterfile files images lera3d _plugins README.md
css favicon.ico fonts js _pages _posts _templates
as3:~/icebreaker.github.com-site/_src# nano _posts/2014-02-02-test1.markdown
as3:~/icebreaker.github.com-site/_src# doxter --file Doxterfile
as3:~/icebreaker.github.com-site/_src# cd ..
as3:~/icebreaker.github.com-site# ls
2007 2010 2013 about css fonts js _src
2008 2011 2014 atom.xml favicon.ico images lera3d
2009 2012 404.html CNAME files index.html README.md
(可见~/icebreaker.github.com-site/就是静态网站的根目录)
as3:~/icebreaker.github.com-site# nohup Rwebserver 32641 > /dev/null &
访问http://as3.brite.biz:32641/就可看到网站效果。