A Node.js port of popular site generator Jekyll.
Works:
Will be working shortly, stay tuned:
Most of Jekyll special filters are implemented in Darko now. See
this list. But I've left out textilize
.
$ npm install darko -g
$ z thx.github.io # cd into a jekyll site.
$ darko serve
Now point your browser to http://localhost:4000.
If you're working on project repos and there's no CNAME used, there must be a
baseurl
set in your project's _config.yml file. In that case, say your project
name is my-project
, you'll need to point your browser to
http://localhost:4000/my-project.
Jekyll is an awesome tool. It is the de facto static site generator for it being the generator of github pages. I've been using it for long. Most of my web sites are developed with Jekyll, such as:
But when I tried introducing this wonderful tool to my colleagues I was a bit out of luck. Mac users were bothered by Ruby, Python, and Pygments installation. Windows users encountered more issues, mostly encoding related.
Hence I create Darko to address those issues. It should:
Windows 下安装、使用 Jekyll 诸多不便,尤其是不了解 Ruby 的同学。早前的版本还要人肉修补 编码问题,在随 github-pages gem 中指定的 jekyll 版本中已经修复,但目前仍有如下不便:
可以看到,有不少学习成本,为了写点文档竟然要装这么多东西,有点不好接受。
所以有了 Darko ,它有如下目标:
The name of this project, Darko, is a tribute to one of my favorite movies called Donnie Darko.
Darko 来自电影《Donnie Darko》, 我扮文艺青年的时候,喜欢说这是我最喜欢的电影,因为它够小众,剧情初看复杂实际简单,我的 英文名字就取自这部电影的主演 Jake Gyllenhaal。
我本想取名 Jekyll.js ,但是要做到 100% 与 Jekyll 保持一致太难了,而且对追求 100% 的人 来说,他们应该不介意直接用 Jekyll 本身。我搞定 80% 就好。
The markdown and syntax highlighting part of code are shamelessly copied from @lepture's static site generator, nico.
@lepture's one of my Node.js hero.
Without @sirlantis' liquid-node, darko won't be possible.
util.log
, util.error
, and util.fatal
are all improvised from
component the package manager by TJ.