From c1ecb7e68860a294a18554c86ff195d59ddef2d2 Mon Sep 17 00:00:00 2001
From: hotoo
Date: Sun, 7 Aug 2011 00:24:16 +0800
Subject: [PATCH 01/11] UPDATE: pages
---
TODO.html | 52 +++++++++++++++++++++++++++++++++++
css/style.css | 24 +++++++++++++++++
index.html | 60 +++++++++++------------------------------
spec.html | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++
usage.html | 45 +++++++++++++++++++++++++++++++
5 files changed, 212 insertions(+), 44 deletions(-)
create mode 100644 TODO.html
create mode 100644 css/style.css
create mode 100644 spec.html
create mode 100644 usage.html
diff --git a/TODO.html b/TODO.html
new file mode 100644
index 0000000..f548c55
--- /dev/null
+++ b/TODO.html
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+翻译计划
+
+
+
+
翻译计划
+
+
+ 待整理...,欢迎来函补充。
+
+
+
+
+
diff --git a/css/style.css b/css/style.css
new file mode 100644
index 0000000..ce0f3fe
--- /dev/null
+++ b/css/style.css
@@ -0,0 +1,24 @@
+@charset "utf-8";
+
+/**
+ * style.css
+ *
+ * @author 闲耘™ (hotoo.cn[AT]gmail.com)
+ * @version 2011/08/06
+ */
+html,body{margin:0; padding:0;}
+h1{border-bottom:1px solid #ccc;}
+h2,h3{border-bottom:1px solid #eee;}
+#wrapper{width:800px; margin:0 auto;}
+address{display:inline-block; padding:1px 4px; border:1px dashed #ccc;}
+code{border:1px dashed #ccc; display:inline-block; padding:1px 3px;}
+ol,ul{border-width:1px 0; border-style:dashed; border-color:#ccc; padding:8px 3em; background:#f8f8f8;}
+pre{border-left:3px solid #666; padding:5px 8px; background:#f0f0f0;}
+a{text-decoration:none;}
+a:hover{text-decoration:underline;}
+table{border-collapse:collapse;}
+th,td{border:1px solid #ccc; padding:2px 8px;}
+th{background:#eee none;}
+
+#github-projects{border-width:1px 0; border-style:dashed; border-color:#ccc; padding:8px 2em; background:#f8f8f8;}
+#footer{border-top:1px solid #ccc; text-align:center; padding:5px; margin:3em 0; font-size:.8em; color:#999;}
diff --git a/index.html b/index.html
index 13dff66..1a2b8db 100644
--- a/index.html
+++ b/index.html
@@ -8,60 +8,32 @@
-
-Index
+
+Vim 文档中文计划
-
Vim 中文团队
-
+
Vim Script 文档中文计划
-
Vim Script 即 Vim 脚本,又称 Vim 插件(Plugin),以下统称“脚本”。
-
-
这是个业余的兴趣项目,主要是由各个成员翻译自己熟悉、推荐的优秀脚本的帮助文档,介绍,并附上一些小技巧之类。
-
-
欢迎有兴趣的朋友加入翻译或推荐脚本。参加方法:(建议使用自己的Gmail) 邮件你的 github id 到 hotoo.cn[AT]gmail.com
+
这是个业余的兴趣项目,主要是由各个成员翻译自己熟悉、喜爱推荐的优秀脚本的帮助文档,
+ 也可以附上介绍,和一些小技巧之类。
+
欢迎有兴趣的朋友加入翻译或推荐脚本。参加方法:(建议使用自己的Gmail)
+ 邮件你的 github id 到 hotoo.cn+vimdocs[AT]gmail.com
+
Vim Script 即 Vim 脚本,又称 Vim 插件(Plugin),以下统称“脚本”。
+
广告:欢迎加入 Vim 的 Gtalk 群
-
-
0. 项目
ref
-
1. 预览
-
-
- 帮助文档
- 官方介绍
- Vim 资料收集
- 翻译计划:PLAN
-
-
-
-
2. 翻译方法及约定
-
2.1. 帮助文档
-
-
注:使用文档:即脚本附带的使用说明,一般要放置到 vimfiles/doc 目录中。
-
-
- 翻译的文件与原始文档同名,后缀改为 .cnx
- 文件放置到 trunk/doc/ 目录中。
- 翻译完成后,在 Vim 中执行一下命令生成 tag:
-
-
-Windows:
-
-:helptags $VIM/vimfiles/doc
-
-
-Linux:
-
-:helptags ~/.vim/doc
-
+
diff --git a/spec.html b/spec.html
new file mode 100644
index 0000000..6abe817
--- /dev/null
+++ b/spec.html
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
+
+
+文档翻译方法,规范及约定 - Vim 文档中文计划
+
+
+
+
文档翻译规范 & 约定
+
+ 为了规范文档,提高文档质量和一致性,文档格式建议如下:
+
+
翻译方法
+
+ 翻译的文档与原始文档同名,后缀改为 .cnx
+ 保留(一般是英文)原始文档 .txt 文件。
+ 文件放置到 /doc 目录中(如 /doc/vimwiki.cnx)。
+
+
规范 & 约定
+
+ 每行不超过 80 列。
+ 中文与英文之间用英文空格间隔。
+ 恰当的使用中文标点,如逗号(,),句号(。),引号(“”)。
+ 使用空格而不是 <Tab>
+ 尽量保持原始文档的风格。
+
+
文档相关
+
Vim 文档由 tags 来链接各个相关的帮助信息,tags 是包含在两个星号之间的关键字,
+ 在 Vim 中使用 `:helptags` 命令会根据这些信息生成 tags:
+
+*help-tags*
+
+
+
要链接到这些 tags,则将关键字放置在两条竖线之间:
+
+|help-tags|
+
+
+
Vim 文档中如果有代码,可以放置在两个相对的尖括号间,起始括号之后不能有其他字符,
+每行代码也需要有空白开始。
+
+下面是实例代码: >
+this is code.
+more codes.
+<
+
+
+
除代码外,标点符号建议使用全角的中文标点,如“,”,“。”等。
+
+
署名
+
建议在自己参与的文档上署名。署名一般是留下自己的真实姓名或者虚拟的昵称,和自己
+常用的邮箱地址。这一个是对自己所作付出的认可,也是对自己的工作负责,另外如果其
+他人有问题,可以方便和你联系。一般格式为:
+
+闲耘™ (hotoo.cn[AT]gmail.com)
+
+或者:
+
+闲耘™ <hotoo.cn[AT]gmail.com>
+
+
中间的 `[AT]` 是为了防止垃圾邮件,你也可以直接使用 `@` 或者其他容易识别的字符。
+
+ 如果你有建议,请联系
hotoo.cn[AT]gmail.com
+
+
+
+
+
diff --git a/usage.html b/usage.html
new file mode 100644
index 0000000..143802e
--- /dev/null
+++ b/usage.html
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+安装 & 使用 - Vim 文档中文计划
+
+
+
+
安装 & 使用
+
+ 下载(或 git clone) Vim script 中文文档(*.cnx)
+ 放至 Vim 用户目录下的 doc 目录中
+ for Windows: $VIM/vimfiles/doc
+ for Unix-like(Linux, Mac OSX): ~/.vim/doc
+ 以下统称 $VIM/vimfiles 和 ~/.vim 目录为 runtime 目录。
+
+ 在 Vim 环境中运行 helptags 命令生成 tags:
+for Windows:
+
+:helptags $Vim/vimfiles/doc
+
+for Unix-like:
+
+:helptags ~/.vim/doc
+
+
+ 设置 Vim 使用的文档语言,默认是英文。
+
+:set helplang=cn
+
+ 如果在 vimrc 设置无效,可以查看并修改 runtime/plugin/vimcdoc.vim
+ 中的设置,之前安装有 Vim 中文帮助则可以忽略这步。
+
+
+
+
+
+
From b4d0e6557794c86859b7946970833e718ee86eda Mon Sep 17 00:00:00 2001
From: hotoo
Date: Thu, 13 Dec 2012 09:30:01 +0800
Subject: [PATCH 02/11] D: CNAME
---
CNAME | 1 -
1 file changed, 1 deletion(-)
delete mode 100644 CNAME
diff --git a/CNAME b/CNAME
deleted file mode 100644
index fcee80a..0000000
--- a/CNAME
+++ /dev/null
@@ -1 +0,0 @@
-docs.vimcn.org
From 28558bae2f7197ff3cbab4a981318c5609bef7bc Mon Sep 17 00:00:00 2001
From: hotoo
Date: Thu, 24 Jan 2013 07:50:49 +0800
Subject: [PATCH 03/11] =?UTF-8?q?U:=20=E6=96=B0=E5=A2=9E=20Vundle=20?=
=?UTF-8?q?=E5=AE=89=E8=A3=85=E6=96=B9=E5=BC=8F=EF=BC=8C=E5=8F=8A=E5=85=B6?=
=?UTF-8?q?=E4=BB=96=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
css/style.css | 10 +++++++++-
spec.html | 11 +++++++++--
usage.html | 6 ++++++
3 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/css/style.css b/css/style.css
index ce0f3fe..1f021bf 100644
--- a/css/style.css
+++ b/css/style.css
@@ -10,7 +10,10 @@ html,body{margin:0; padding:0;}
h1{border-bottom:1px solid #ccc;}
h2,h3{border-bottom:1px solid #eee;}
#wrapper{width:800px; margin:0 auto;}
-address{display:inline-block; padding:1px 4px; border:1px dashed #ccc;}
+address{
+ display:inline-block; padding:1px 4px; border:1px dashed #ccc;
+ -moz-border-radius:4px; -khtml-border-radius:4px; -webkit-border-radius:4px; border-radius:4px;
+}
code{border:1px dashed #ccc; display:inline-block; padding:1px 3px;}
ol,ul{border-width:1px 0; border-style:dashed; border-color:#ccc; padding:8px 3em; background:#f8f8f8;}
pre{border-left:3px solid #666; padding:5px 8px; background:#f0f0f0;}
@@ -19,6 +22,11 @@ a:hover{text-decoration:underline;}
table{border-collapse:collapse;}
th,td{border:1px solid #ccc; padding:2px 8px;}
th{background:#eee none;}
+code{
+ border:1px dashed #ccc; display:inline-block; padding:1px 3px;
+ background:#efefef;
+ -moz-border-radius:4px; -khtml-border-radius:4px; -webkit-border-radius:4px; border-radius:4px;
+}
#github-projects{border-width:1px 0; border-style:dashed; border-color:#ccc; padding:8px 2em; background:#f8f8f8;}
#footer{border-top:1px solid #ccc; text-align:center; padding:5px; margin:3em 0; font-size:.8em; color:#999;}
diff --git a/spec.html b/spec.html
index 6abe817..09c62e1 100644
--- a/spec.html
+++ b/spec.html
@@ -18,6 +18,13 @@ 文档翻译规范 & 约定
为了规范文档,提高文档质量和一致性,文档格式建议如下:
翻译方法
+ 文件结构:
+
++- /doc
+| +- {script_name}.cnx
+| `- {script_name}.txt
+`- /README.md
+
翻译的文档与原始文档同名,后缀改为 .cnx
保留(一般是英文)原始文档 .txt 文件。
@@ -33,7 +40,7 @@ 规范 & 约定
文档相关
Vim 文档由 tags 来链接各个相关的帮助信息,tags 是包含在两个星号之间的关键字,
- 在 Vim 中使用 `:helptags` 命令会根据这些信息生成 tags:
+ 在 Vim 中使用 :helptags 命令会根据这些信息生成 tags:
*help-tags*
@@ -65,7 +72,7 @@ 署名
闲耘™ <hotoo.cn[AT]gmail.com>
-中间的 `[AT]` 是为了防止垃圾邮件,你也可以直接使用 `@` 或者其他容易识别的字符。
+中间的 [AT] 是为了防止垃圾邮件,你也可以直接使用 @ 或者其他容易识别的字符。
如果你有建议,请联系
hotoo.cn[AT]gmail.com
diff --git a/usage.html b/usage.html
index 143802e..b29dabf 100644
--- a/usage.html
+++ b/usage.html
@@ -14,6 +14,12 @@
安装 & 使用
+
如果安装了 Vundle
+
+ 在 vimrc 中写入 Bundle "vimcn/{script_name}.cnx"。
+ 执行 :BundleInstall 命令即可。
+
+
手工方式:
下载(或 git clone) Vim script 中文文档(*.cnx)
放至 Vim 用户目录下的 doc 目录中
From 4e95da3a816c3763facff2b676f3977243bf1836 Mon Sep 17 00:00:00 2001
From: hotoo
Date: Tue, 22 Jul 2014 07:09:51 +0800
Subject: [PATCH 04/11] Add readme.
---
README.md | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 README.md
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a17b4dd
--- /dev/null
+++ b/README.md
@@ -0,0 +1,20 @@
+
+# Vim 中文计划
+
+----
+
+Vim 中文文档计划旨在翻译 Vim 软件及其优秀插件的文档,为中文用户提供些许便利。
+
+## 如何贡献
+
+1. fork 有兴趣的仓库,并提交 Pull Request.
+1. 提交 Issues
+1. Code Review 并给出建议。
+1. 如果翻译新的插件,请提交 [Issues](https://github.com/vimcn/vimcn.github.com/issues)
+ 申请创建新仓库,我将会尽快准备好新的仓库,并授权给你。申请格式:
+
+ ```
+ 插件名称:
+ 插件地址:
+ 贡献者列表:默认只添加提交 Issues 者。
+ ```
From 9bde1cb62b9054563c55fb388ffc3c22c29d3a5d Mon Sep 17 00:00:00 2001
From: hotoo
Date: Tue, 22 Jul 2014 09:44:01 +0800
Subject: [PATCH 05/11] Update via nico.
---
.gitignore | 2 +
Makefile | 10 +
content/index.md | 67 +++++
content/spec.md | 76 +++++
content/todo.md | 9 +
content/usage.md | 40 +++
nico.js | 32 +++
theme/Makefile | 2 +
theme/README.md | 70 +++++
theme/static/one.css | 510 ++++++++++++++++++++++++++++++++++
theme/static/one.js | 17 ++
theme/static/site.css | 222 +++++++++++++++
theme/static/syntax.css | 117 ++++++++
theme/static/yue.css | 171 ++++++++++++
theme/templates/_disqus.html | 10 +
theme/templates/_duoshuo.html | 12 +
theme/templates/archive.html | 41 +++
theme/templates/feed.html | 20 ++
theme/templates/layout.html | 66 +++++
theme/templates/page.html | 17 ++
theme/templates/post.html | 32 +++
theme/templates/tagcloud.html | 33 +++
theme/theme.js | 10 +
23 files changed, 1586 insertions(+)
create mode 100644 .gitignore
create mode 100644 Makefile
create mode 100644 content/index.md
create mode 100644 content/spec.md
create mode 100644 content/todo.md
create mode 100644 content/usage.md
create mode 100644 nico.js
create mode 100644 theme/Makefile
create mode 100644 theme/README.md
create mode 100644 theme/static/one.css
create mode 100644 theme/static/one.js
create mode 100644 theme/static/site.css
create mode 100644 theme/static/syntax.css
create mode 100644 theme/static/yue.css
create mode 100644 theme/templates/_disqus.html
create mode 100644 theme/templates/_duoshuo.html
create mode 100644 theme/templates/archive.html
create mode 100644 theme/templates/feed.html
create mode 100644 theme/templates/layout.html
create mode 100644 theme/templates/page.html
create mode 100644 theme/templates/post.html
create mode 100644 theme/templates/tagcloud.html
create mode 100644 theme/theme.js
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..33232bc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.DS_Store
+_site/
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4df16c6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+
+watch:
+ @nico server --watch
+build:
+ @nico build
+publish: clear build
+ @ghp-import _site
+ @git push origin gh-pages
+clear:
+ @rm -rf _site
diff --git a/content/index.md b/content/index.md
new file mode 100644
index 0000000..3397892
--- /dev/null
+++ b/content/index.md
@@ -0,0 +1,67 @@
+
+# Vim 中文计划
+
+----
+
+这是个业余的兴趣项目,主要是由各个成员翻译自己熟悉、喜爱推荐的优秀脚本的帮助文档,
+也可以附上介绍,和一些小技巧之类。
+
+欢迎有兴趣的朋友加入翻译或推荐脚本。参加方法:(建议使用自己的Gmail)
+邮件你的 github id 到 `hotoo.cn+vimdocs[AT]gmail.com`
+
+Vim Script 即 Vim 脚本,又称 Vim 插件(Plugin),以下统称“脚本”。
+
+* [项目源码](https://github.com/vimcn)
+* [翻译规范 & 约定](spec.md)
+* [安装 & 使用](usage.md)
+* [翻译计划](https://github.com/vimcn/vimcn.github.com/wiki/PLAN)
+
+## 广告
+
+* [Vim 资料收集](http://wiki.hotoo.me/Vim.html)
+* [欢迎加入 Vim 的 Gtalk 群](http://blog.hotoo.me/Gtalk-group-for-Vim.html)
+
+
+## 项目
+
+
+
+
+
+
+
diff --git a/content/spec.md b/content/spec.md
new file mode 100644
index 0000000..21dbec1
--- /dev/null
+++ b/content/spec.md
@@ -0,0 +1,76 @@
+
+# 文档翻译规范 & 约定
+
+----
+
+为了规范文档,提高文档质量和一致性,文档格式建议如下:
+
+## 翻译方法
+
+文件结构:
+
+```
++- /doc
+| +- {script_name}.cnx
+| `- {script_name}.txt
+`- /README.md
+```
+
+* 翻译的文档与原始文档同名,后缀改为 `.cnx`
+* 保留(一般是英文)原始文档 `.txt` 文件。
+* 文件放置到 `/doc` 目录中(如 `/doc/vimwiki.cnx`)。
+
+## 规范 & 约定
+
+* 每行不超过 80 列。
+* 中文与英文之间用英文空格间隔。
+* 恰当的使用中文标点,如逗号(,),句号(。),引号(“”)。
+* 使用空格而不是 <Tab>
+* 尽量保持原始文档的风格。
+
+## 文档相关
+
+Vim 文档由 tags 来链接各个相关的帮助信息,tags 是包含在两个星号之间的关键字,
+在 Vim 中使用 :helptags 命令会根据这些信息生成 tags:
+
+```
+*help-tags*
+```
+
+要链接到这些 tags,则将关键字放置在两条竖线之间:
+
+```
+|help-tags|
+```
+
+Vim 文档中如果有代码,可以放置在两个相对的尖括号间,起始括号之后不能有其他字符,
+每行代码也需要有空白开始。
+
+```
+下面是实例代码: >
+this is code.
+more codes.
+<
+```
+
+除代码外,标点符号建议使用全角的中文标点,如“,”,“。”等。
+
+## 署名
+
+建议在自己参与的文档上署名。署名一般是留下自己的真实姓名或者虚拟的昵称,和自己
+常用的邮箱地址。这一个是对自己所作付出的认可,也是对自己的工作负责,另外如果其
+他人有问题,可以方便和你联系。一般格式为:
+
+```
+闲耘™ (hotoo.cn[AT]gmail.com)
+```
+
+或者:
+
+```
+闲耘™
+```
+
+中间的 `[AT]` 是为了防止垃圾邮件,你也可以直接使用 `@` 或者其他容易识别的字符。
+
+如果你有建议,请联系 `hotoo.cn[AT]gmail.com`
diff --git a/content/todo.md b/content/todo.md
new file mode 100644
index 0000000..37b06f8
--- /dev/null
+++ b/content/todo.md
@@ -0,0 +1,9 @@
+
+# 翻译计划
+
+----
+
+| 状态 | 脚本 | 文档 | 贡献者 |
+|------|---------------------------------------------------------|-------------------------------------------------------|--------|
+| 100% | [Vimwiki](http://code.google.com/p/vimwiki/) | [vimwiki.vim](https://github.com/vimcn/vimwiki.vim) | @hotoo |
+| 100% | [snipMate.vim](http://github.com/msanders/snipmate.vim) | [snipMate.vim](https://github.com/vimcn/snipMate.vim) | @hotoo |
diff --git a/content/usage.md b/content/usage.md
new file mode 100644
index 0000000..78d0e23
--- /dev/null
+++ b/content/usage.md
@@ -0,0 +1,40 @@
+
+# 安装 & 使用
+
+----
+
+## 如果安装了 Vundle
+
+* 在 vimrc 中写入 Bundle "vimcn/{script_name}.cnx"。
+* 执行 :BundleInstall 命令即可。
+
+## 手工方式
+
+* 下载(或 git clone) [Vim script 中文文档(*.cnx)](https://github.com/vimcn)
+* 放至 Vim 用户目录下的 doc 目录中
+
+ * for Windows: `$VIM/vimfiles/doc`
+ * for Unix-like(Linux, Mac OSX): `~/.vim/doc`
+ > 以下统称 `$VIM/vimfiles` 和 `~/.vim` 目录为 `runtime` 目录。
+* 在 Vim 环境中运行 `helptags` 命令生成 tags:
+
+ for Windows:
+
+ ```
+ :helptags $Vim/vimfiles/doc
+ ```
+
+ for Unix-like:
+
+ ```
+ :helptags ~/.vim/doc
+ ```
+
+* 设置 Vim 使用的文档语言,默认是英文。
+
+ ```
+ :set helplang=cn
+ ```
+
+ 如果在 vimrc 设置无效,可以查看并修改 `runtime/plugin/vimcdoc.vim`
+ 中的设置,之前安装有 Vim 中文帮助则可以忽略这步。
diff --git a/nico.js b/nico.js
new file mode 100644
index 0000000..0cfd554
--- /dev/null
+++ b/nico.js
@@ -0,0 +1,32 @@
+exports = module.exports = {
+ "sitename": "Vim 中文计划",
+ "source": "content",
+ "output": "_site",
+ "theme": "theme",
+ "permalink": "{{directory}}/{{filename}}",
+ "navigation":[
+ { "link":"/spec.html", "title":"翻译规范 & 约定" },
+ { "link":"/usage.html", "title":"安装 & 使用" },
+ { "link":"https://github.com/vimcn/vimcn.github.com/wiki/PLAN", "title":"翻译计划" }
+ ],
+ "google": {
+ "id": "UA-15922433-1",
+ "domain": "vimcn.github.io"
+ },
+ "github": "https://github.com/vimcn",
+ "writers": [
+ "nico.PageWriter",
+ "nico.PostWriter",
+ "nico.FileWriter",
+ "nico.StaticWriter"
+ ]
+}
+
+
+exports.filters = {
+ fixlink: function(html) {
+ // format permalink, ends without .html
+ html = html.replace(/(href="[^"]+)\.md(">)/ig, "$1$2");
+ return html;
+ }
+}
diff --git a/theme/Makefile b/theme/Makefile
new file mode 100644
index 0000000..38aa22a
--- /dev/null
+++ b/theme/Makefile
@@ -0,0 +1,2 @@
+build-css:
+ @cat static/yue.css static/syntax.css static/site.css > static/one.css
diff --git a/theme/README.md b/theme/README.md
new file mode 100644
index 0000000..514c3e1
--- /dev/null
+++ b/theme/README.md
@@ -0,0 +1,70 @@
+# One Theme
+
+The One Theme for [nico](http://lab.lepture.com/nico/)
+
+This theme requires nico 0.4.6+ now.
+
+## Configuration
+
+The basic configuration for a blog:
+
+```
+{
+ "source": "content",
+ "output": "_site",
+ "theme": "_themes/one",
+ "sitename": "Nico",
+ "siteurl": "http://lab.lepture.com/nico/",
+ "permalink": "{{directory}}/{{filename}}.html",
+ "writers": [
+ "nico.PostWriter",
+ "nico.PageWriter",
+ "nico.FileWriter",
+ "nico.StaticWriter",
+ "nico.ArchiveWriter",
+ "nico.YearWriter",
+ "nico.TagWriter",
+ "nico.DirectoryWriter",
+ "nico.FeedWriter"
+ ]
+}
+```
+
+Additional configuration this theme:
+
+- tagline: A description of your site.
+- touchIcon: Link of Apple Touch Icon.
+- hideNico: Hide nico copyright at bottom.
+- github: Github link, a github fork badge will display.
+- navigation: A array of items of navigation.
+
+Navigation example:
+
+```
+{
+ "navigation": [
+ {"title": "Life", "link": "/life/"},
+ {"title": "Work", "link": "/work/"}
+ ]
+}
+```
+
+## Comment
+
+Comment is available for posts. This theme support disqus and duoshuo.
+
+Configure a disqus short name:
+
+```
+{
+ "disqus": "short name"
+}
+```
+
+If you prefer duoshuo:
+
+```
+{
+ "duoshuo": "short name"
+}
+```
diff --git a/theme/static/one.css b/theme/static/one.css
new file mode 100644
index 0000000..0d01c99
--- /dev/null
+++ b/theme/static/one.css
@@ -0,0 +1,510 @@
+/**
+ * yue.css
+ *
+ * yue.css is designed for readable content.
+ *
+ * Copyright (c) 2013 by Hsiaoming Yang.
+ */
+
+.yue {
+ font: 400 18px/1.62 "Georgia", "Xin Gothic", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft YaHei", "SimSun", sans-serif;
+ color: #333332;
+}
+.yue ::selection {
+ background-color: rgba(0,0,0,0.2);
+}
+.yue h1,
+.yue h2,
+.yue h3,
+.yue h4,
+.yue h5,
+.yue h6 {
+ color: #222223;
+}
+.yue h1 {
+ font-size: 1.8em;
+ margin: 0.67em 0;
+}
+.yue > h1 {
+ margin-top: 0;
+ font-size: 2em;
+}
+.yue h2 {
+ font-size: 1.5em;
+ margin: 0.83em 0;
+}
+.yue h3 {
+ font-size: 1.17em;
+ margin: 1em 0;
+}
+.yue h4,
+.yue h5,
+.yue h6 {
+ font-size: 1em;
+ margin: 1.6em 0 1em 0;
+}
+.yue h6 {
+ font-weight: 500;
+}
+.yue p {
+ margin-top: 0;
+ margin-bottom: 1.64em;
+}
+.yue a {
+ color: #111;
+ word-wrap: break-word;
+}
+.yue a:hover {
+ color: #555;
+}
+.yue strong,
+.yue b {
+ font-weight: 700;
+ color: #222;
+}
+.yue em,
+.yue i {
+ font-style: italic;
+ color: #222;
+}
+.yue img {
+ max-width: 98%;
+ margin: 0.2em 0;
+}
+.yue hr {
+ border: 0 none;
+ margin-bottom: 1em;
+}
+.yue hr:after {
+ color: #9f9f95;
+ font-size: 1.1em;
+ display: block;
+ content: "* * *";
+ text-align: center;
+ letter-spacing: 0.6em;
+}
+.yue blockquote {
+ padding-left: 20px;
+ border-left: 4px solid #dadada;
+ margin: 0 0 1.64em -24px;
+ color: #666664;
+}
+.yue ul,
+.yue ol {
+ margin: 0 0 24px 6px;
+ padding-left: 16px;
+}
+.yue ul {
+ list-style-type: square;
+}
+.yue ol {
+ list-style-type: decimal;
+}
+.yue li {
+ margin-bottom: 0.2em;
+}
+.yue li ul,
+.yue li ol {
+ margin-top: 0;
+ margin-bottom: 0;
+ margin-left: 14px;
+}
+.yue li ul {
+ list-style-type: disc;
+}
+.yue li ul ul {
+ list-style-type: circle;
+}
+.yue li p {
+ margin: 0.4em 0 0.6em;
+}
+.yue .unstyled {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+}
+.yue code,
+.yue tt {
+ color: #808080;
+ font-size: 0.96em;
+ background-color: #f9f9f7;
+ padding: 1px 2px;
+ border: 1px solid #dadada;
+ border-radius: 3px;
+ font-family: "Inconsolata", "Menlo", monospace;
+}
+.yue pre {
+ padding: 7px;
+ border: 1px solid #dadada;
+ border-radius: 4px;
+ overflow: auto;
+ line-height: 1.5;
+ font-size: 0.96em;
+ font-family: "Inconsolata", "Menlo", monospace;
+ color: #4c4c4c;
+ background-color: #f9f9f7;
+}
+.yue pre code,
+.yue pre tt {
+ color: #4c4c4c;
+ border: none;
+ background-color: none;
+ padding: auto;
+}
+.yue table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ margin-bottom: 1.5em;
+ font-size: 0.96em;
+}
+.yue th,
+.yue td {
+ text-align: left;
+ padding: 4px 8px 4px 10px;
+ border: 1px solid #dadada;
+}
+.yue td {
+ vertical-align: top;
+}
+.yue tr:nth-child(even) {
+ background-color: #efefee;
+}
+/* syntax browed from github */
+
+pre .comment,
+pre .template_comment,
+pre .diff .header,
+pre .javadoc {
+ color: #998;
+ font-style: italic
+}
+
+pre .keyword,
+pre .css .rule .keyword,
+pre .winutils,
+pre .javascript .title,
+pre .nginx .title,
+pre .subst,
+pre .request,
+pre .status {
+ color: #333;
+ font-weight: bold
+}
+
+pre .number,
+pre .hexcolor,
+pre .ruby .constant {
+ color: #099;
+}
+
+pre .string,
+pre .tag .value,
+pre .phpdoc,
+pre .tex .formula {
+ color: #d14
+}
+
+pre .title,
+pre .id {
+ color: #900;
+ font-weight: bold
+}
+
+pre .javascript .title,
+pre .lisp .title,
+pre .clojure .title,
+pre .subst {
+ font-weight: normal
+}
+
+pre .class .title,
+pre .haskell .type,
+pre .vhdl .literal,
+pre .tex .command {
+ color: #458;
+ font-weight: bold
+}
+
+pre .tag,
+pre .tag .title,
+pre .rules .property,
+pre .django .tag .keyword {
+ color: #000080;
+ font-weight: normal
+}
+
+pre .attribute,
+pre .variable,
+pre .lisp .body {
+ color: #008080
+}
+
+pre .regexp {
+ color: #009926
+}
+
+pre .class {
+ color: #458;
+ font-weight: bold
+}
+
+pre .symbol,
+pre .ruby .symbol .string,
+pre .lisp .keyword,
+pre .tex .special,
+pre .prompt {
+ color: #990073
+}
+
+pre .built_in,
+pre .lisp .title,
+pre .clojure .built_in {
+ color: #0086b3
+}
+
+pre .preprocessor,
+pre .pi,
+pre .doctype,
+pre .shebang,
+pre .cdata {
+ color: #999;
+ font-weight: bold
+}
+
+pre .deletion {
+ background: #fdd
+}
+
+pre .addition {
+ background: #dfd
+}
+
+pre .diff .change {
+ background: #0086b3
+}
+
+pre .chunk {
+ color: #aaa
+}
+html, body {
+ padding: 0;
+ margin: 0;
+}
+
+.sep {
+ margin: 0 18px;
+}
+/* layout */
+.header {
+ font-size: 16px;
+ font-family: "Optima", "Avenir", "Helvetica Neue", sans-serif;
+ padding: 20px 10px;
+}
+.header a {
+ color: #323233;
+}
+.header a:hover {
+ opacity: 0.6;
+}
+.header .menu {
+ text-align: right;
+}
+.header .brand {
+ float: left;
+ margin-right: 30px;
+ text-transform: uppercase;
+}
+.brand:before {
+ content: '»';
+}
+.brand a {
+ text-decoration: none;
+}
+.menu a {
+ margin-left: 14px;
+}
+.container {
+ max-width: 640px;
+ *width: 650px;
+ margin: 0 auto;
+ zoom: 1;
+}
+.container:after {
+ content: " ";
+ display: block;
+ visibility: none;
+ clear: both;
+}
+.document {
+ max-width: 640px;
+ *width: 650px;
+ margin: 0 auto;
+ padding: 30px 10px;
+}
+.footer {
+ margin: 0 auto;
+ max-width: 500px;
+ *width: 500px;
+ color: #555;
+ color: rgba(0, 0, 0, 0.5);
+ font-size: 15px;
+ line-height: 1.3;
+ padding: 20px 20px 30px;
+}
+.copyright {
+ text-align: center;
+ color: #ddd;
+}
+.copyright a {
+ color: #ddd;
+}
+@media (max-width: 650px) {
+ .footer {
+ padding-bottom: 10px;
+ }
+}
+
+/* entry */
+.entry-meta {
+ border-top: 1px solid #eee;
+ padding-top: 10px;
+ color: #565655;
+ font-size: smaller;
+}
+.entry-description {
+ color: #676867;
+ font-size: larger;
+}
+.entry-tags a:before {
+ content: '#';
+ color: #ccc;
+}
+.entry-list .item {
+ margin-bottom: 1em;
+}
+.entry-list .item-title {
+ font-size: 16px;
+ margin-bottom: 0;
+}
+.entry-list .item-description {
+ color: #565655;
+ font-size: 16px;
+ padding-left: 84px;
+}
+.entry-list .item-description p {
+ margin: 0;
+}
+.entry-list .item time {
+ display: inline-block;
+ width: 80px;
+ font: normal 12px monospace;
+ color: #999;
+}
+
+.document a.title-permalink {
+ margin-left: 4px;
+ padding: 0 4px;
+ text-decoration: none;
+ color: #f0f0f2;
+}
+.document a.title-permalink:hover {
+ color: #5784bf;
+ background-color: #eee;
+}
+
+/* pagination */
+.pagination {
+ position: relative;
+ margin-top: 40px;
+ font-size: 12px;
+ text-transform: uppercase;
+ font-weight: 700;
+ font-family: "Optima", "Avenir", "Helvetica Neue", sans-serif;
+}
+.pagination .newer {
+ position: absolute;
+ text-decoration: none;
+ left: 0;
+}
+.pagination .older {
+ position: absolute;
+ text-decoration: none;
+ right: 0;
+}
+.pagination .newer:before {
+ content: "«";
+}
+.pagination .older:after {
+ content: "»"
+}
+
+/* extra widget */
+.github {
+ position: fixed;
+ top: 40px;
+ right: -50px;
+ border: 2px solid #121622;
+ box-shadow: 0 0 8px #555;
+ -webkit-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ transform: rotate(45deg);
+}
+.github:hover {
+ box-shadow: 0 0 12px #444;
+}
+.github .github-link {
+ display: block;
+ font-family: "Lato", sans-serif;
+ font-size: 14px;
+ padding: 2px 0;
+ width: 200px;
+ border: 1px dotted #383C46;
+ background-color: #121622;
+ color: #ECEDEE;
+ text-decoration: none;
+ text-align: center;
+}
+@media (max-width: 890px) {
+ .github {
+ display: none;
+ }
+}
+
+.document a.button {
+ display: inline-block;
+ padding: 1em;
+ margin: 0;
+ background-color: #222223;
+ color: #fcfcfd;
+ text-transform: uppercase;
+ border: none;
+ text-decoration: none;
+ outline: none;
+ border-radius: 3px;
+ text-align: center;
+ letter-spacing: 0.1em;
+ font: bold 0.7em/1 "Arial", sans-serif;
+ cursor: pointer;
+ vertical-align: middle;
+}
+.document a.button:hover {
+ opacity: 0.9;
+ color: white;
+}
+
+.tagcloud {
+ margin-bottom: 2em;
+}
+.tagcloud .count {
+ font-size: 12px;
+}
+.tagcloud a {
+ display: inline-block;
+ margin: 0.2em 0.4em;
+ opacity: 0.6;
+}
+.tagcloud a:hover {
+ opacity: 1;
+}
diff --git a/theme/static/one.js b/theme/static/one.js
new file mode 100644
index 0000000..1bfa540
--- /dev/null
+++ b/theme/static/one.js
@@ -0,0 +1,17 @@
+function permalink() {
+ if (!document.querySelectorAll) {
+ return;
+ }
+ var hs = document.querySelectorAll('.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5');
+ for (var i=0; i < hs.length; i++) {
+ (function(item) {
+ var link = document.createElement('a');
+ link.className = 'title-permalink';
+ link.title = 'Permalink to this title';
+ link.href = '#' + item.id;
+ link.innerHTML = '¶';
+ item.appendChild(link);
+ })(hs[i]);
+ }
+}
+permalink();
diff --git a/theme/static/site.css b/theme/static/site.css
new file mode 100644
index 0000000..90d1ed2
--- /dev/null
+++ b/theme/static/site.css
@@ -0,0 +1,222 @@
+html, body {
+ padding: 0;
+ margin: 0;
+}
+
+.sep {
+ margin: 0 18px;
+}
+/* layout */
+.header {
+ font-size: 16px;
+ font-family: "Optima", "Avenir", "Helvetica Neue", sans-serif;
+ padding: 20px 10px;
+}
+.header a {
+ color: #323233;
+}
+.header a:hover {
+ opacity: 0.6;
+}
+.header .menu {
+ text-align: right;
+}
+.header .brand {
+ float: left;
+ margin-right: 30px;
+ text-transform: uppercase;
+}
+.brand:before {
+ content: '»';
+}
+.brand a {
+ text-decoration: none;
+}
+.menu a {
+ margin-left: 14px;
+}
+.container {
+ max-width: 640px;
+ *width: 650px;
+ margin: 0 auto;
+ zoom: 1;
+}
+.container:after {
+ content: " ";
+ display: block;
+ visibility: none;
+ clear: both;
+}
+.document {
+ max-width: 640px;
+ *width: 650px;
+ margin: 0 auto;
+ padding: 30px 10px;
+}
+.footer {
+ margin: 0 auto;
+ max-width: 500px;
+ *width: 500px;
+ color: #555;
+ color: rgba(0, 0, 0, 0.5);
+ font-size: 15px;
+ line-height: 1.3;
+ padding: 20px 20px 30px;
+}
+.copyright {
+ text-align: center;
+ color: #ddd;
+}
+.copyright a {
+ color: #ddd;
+}
+@media (max-width: 650px) {
+ .footer {
+ padding-bottom: 10px;
+ }
+}
+
+/* entry */
+.entry-meta {
+ border-top: 1px solid #eee;
+ padding-top: 10px;
+ color: #565655;
+ font-size: smaller;
+}
+.entry-description {
+ color: #676867;
+ font-size: larger;
+}
+.entry-tags a:before {
+ content: '#';
+ color: #ccc;
+}
+.entry-list .item {
+ margin-bottom: 1em;
+}
+.entry-list .item-title {
+ font-size: 16px;
+ margin-bottom: 0;
+}
+.entry-list .item-description {
+ color: #565655;
+ font-size: 16px;
+ padding-left: 84px;
+}
+.entry-list .item-description p {
+ margin: 0;
+}
+.entry-list .item time {
+ display: inline-block;
+ width: 80px;
+ font: normal 12px monospace;
+ color: #999;
+}
+
+.document a.title-permalink {
+ margin-left: 4px;
+ padding: 0 4px;
+ text-decoration: none;
+ color: #f0f0f2;
+}
+.document a.title-permalink:hover {
+ color: #5784bf;
+ background-color: #eee;
+}
+
+/* pagination */
+.pagination {
+ position: relative;
+ margin-top: 40px;
+ font-size: 12px;
+ text-transform: uppercase;
+ font-weight: 700;
+ font-family: "Optima", "Avenir", "Helvetica Neue", sans-serif;
+}
+.pagination .newer {
+ position: absolute;
+ text-decoration: none;
+ left: 0;
+}
+.pagination .older {
+ position: absolute;
+ text-decoration: none;
+ right: 0;
+}
+.pagination .newer:before {
+ content: "«";
+}
+.pagination .older:after {
+ content: "»"
+}
+
+/* extra widget */
+.github {
+ position: fixed;
+ top: 40px;
+ right: -50px;
+ border: 2px solid #121622;
+ box-shadow: 0 0 8px #555;
+ -webkit-transform: rotate(45deg);
+ -moz-transform: rotate(45deg);
+ -o-transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ transform: rotate(45deg);
+}
+.github:hover {
+ box-shadow: 0 0 12px #444;
+}
+.github .github-link {
+ display: block;
+ font-family: "Lato", sans-serif;
+ font-size: 14px;
+ padding: 2px 0;
+ width: 200px;
+ border: 1px dotted #383C46;
+ background-color: #121622;
+ color: #ECEDEE;
+ text-decoration: none;
+ text-align: center;
+}
+@media (max-width: 890px) {
+ .github {
+ display: none;
+ }
+}
+
+.document a.button {
+ display: inline-block;
+ padding: 1em;
+ margin: 0;
+ background-color: #222223;
+ color: #fcfcfd;
+ text-transform: uppercase;
+ border: none;
+ text-decoration: none;
+ outline: none;
+ border-radius: 3px;
+ text-align: center;
+ letter-spacing: 0.1em;
+ font: bold 0.7em/1 "Arial", sans-serif;
+ cursor: pointer;
+ vertical-align: middle;
+}
+.document a.button:hover {
+ opacity: 0.9;
+ color: white;
+}
+
+.tagcloud {
+ margin-bottom: 2em;
+}
+.tagcloud .count {
+ font-size: 12px;
+}
+.tagcloud a {
+ display: inline-block;
+ margin: 0.2em 0.4em;
+ opacity: 0.6;
+}
+.tagcloud a:hover {
+ opacity: 1;
+}
diff --git a/theme/static/syntax.css b/theme/static/syntax.css
new file mode 100644
index 0000000..5f6d5a3
--- /dev/null
+++ b/theme/static/syntax.css
@@ -0,0 +1,117 @@
+/* syntax browed from github */
+
+pre .comment,
+pre .template_comment,
+pre .diff .header,
+pre .javadoc {
+ color: #998;
+ font-style: italic
+}
+
+pre .keyword,
+pre .css .rule .keyword,
+pre .winutils,
+pre .javascript .title,
+pre .nginx .title,
+pre .subst,
+pre .request,
+pre .status {
+ color: #333;
+ font-weight: bold
+}
+
+pre .number,
+pre .hexcolor,
+pre .ruby .constant {
+ color: #099;
+}
+
+pre .string,
+pre .tag .value,
+pre .phpdoc,
+pre .tex .formula {
+ color: #d14
+}
+
+pre .title,
+pre .id {
+ color: #900;
+ font-weight: bold
+}
+
+pre .javascript .title,
+pre .lisp .title,
+pre .clojure .title,
+pre .subst {
+ font-weight: normal
+}
+
+pre .class .title,
+pre .haskell .type,
+pre .vhdl .literal,
+pre .tex .command {
+ color: #458;
+ font-weight: bold
+}
+
+pre .tag,
+pre .tag .title,
+pre .rules .property,
+pre .django .tag .keyword {
+ color: #000080;
+ font-weight: normal
+}
+
+pre .attribute,
+pre .variable,
+pre .lisp .body {
+ color: #008080
+}
+
+pre .regexp {
+ color: #009926
+}
+
+pre .class {
+ color: #458;
+ font-weight: bold
+}
+
+pre .symbol,
+pre .ruby .symbol .string,
+pre .lisp .keyword,
+pre .tex .special,
+pre .prompt {
+ color: #990073
+}
+
+pre .built_in,
+pre .lisp .title,
+pre .clojure .built_in {
+ color: #0086b3
+}
+
+pre .preprocessor,
+pre .pi,
+pre .doctype,
+pre .shebang,
+pre .cdata {
+ color: #999;
+ font-weight: bold
+}
+
+pre .deletion {
+ background: #fdd
+}
+
+pre .addition {
+ background: #dfd
+}
+
+pre .diff .change {
+ background: #0086b3
+}
+
+pre .chunk {
+ color: #aaa
+}
diff --git a/theme/static/yue.css b/theme/static/yue.css
new file mode 100644
index 0000000..c37a870
--- /dev/null
+++ b/theme/static/yue.css
@@ -0,0 +1,171 @@
+/**
+ * yue.css
+ *
+ * yue.css is designed for readable content.
+ *
+ * Copyright (c) 2013 by Hsiaoming Yang.
+ */
+
+.yue {
+ font: 400 18px/1.62 "Georgia", "Xin Gothic", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft YaHei", "SimSun", sans-serif;
+ color: #333332;
+}
+.yue ::selection {
+ background-color: rgba(0,0,0,0.2);
+}
+.yue h1,
+.yue h2,
+.yue h3,
+.yue h4,
+.yue h5,
+.yue h6 {
+ color: #222223;
+}
+.yue h1 {
+ font-size: 1.8em;
+ margin: 0.67em 0;
+}
+.yue > h1 {
+ margin-top: 0;
+ font-size: 2em;
+}
+.yue h2 {
+ font-size: 1.5em;
+ margin: 0.83em 0;
+}
+.yue h3 {
+ font-size: 1.17em;
+ margin: 1em 0;
+}
+.yue h4,
+.yue h5,
+.yue h6 {
+ font-size: 1em;
+ margin: 1.6em 0 1em 0;
+}
+.yue h6 {
+ font-weight: 500;
+}
+.yue p {
+ margin-top: 0;
+ margin-bottom: 1.64em;
+}
+.yue a {
+ color: #111;
+ word-wrap: break-word;
+}
+.yue a:hover {
+ color: #555;
+}
+.yue strong,
+.yue b {
+ font-weight: 700;
+ color: #222;
+}
+.yue em,
+.yue i {
+ font-style: italic;
+ color: #222;
+}
+.yue img {
+ max-width: 98%;
+ margin: 0.2em 0;
+}
+.yue hr {
+ border: 0 none;
+ margin-bottom: 1em;
+}
+.yue hr:after {
+ color: #9f9f95;
+ font-size: 1.1em;
+ display: block;
+ content: "* * *";
+ text-align: center;
+ letter-spacing: 0.6em;
+}
+.yue blockquote {
+ padding-left: 20px;
+ border-left: 4px solid #dadada;
+ margin: 0 0 1.64em -24px;
+ color: #666664;
+}
+.yue ul,
+.yue ol {
+ margin: 0 0 24px 6px;
+ padding-left: 16px;
+}
+.yue ul {
+ list-style-type: square;
+}
+.yue ol {
+ list-style-type: decimal;
+}
+.yue li {
+ margin-bottom: 0.2em;
+}
+.yue li ul,
+.yue li ol {
+ margin-top: 0;
+ margin-bottom: 0;
+ margin-left: 14px;
+}
+.yue li ul {
+ list-style-type: disc;
+}
+.yue li ul ul {
+ list-style-type: circle;
+}
+.yue li p {
+ margin: 0.4em 0 0.6em;
+}
+.yue .unstyled {
+ list-style-type: none;
+ margin: 0;
+ padding: 0;
+}
+.yue code,
+.yue tt {
+ color: #808080;
+ font-size: 0.96em;
+ background-color: #f9f9f7;
+ padding: 1px 2px;
+ border: 1px solid #dadada;
+ border-radius: 3px;
+ font-family: "Inconsolata", "Menlo", monospace;
+}
+.yue pre {
+ padding: 7px;
+ border: 1px solid #dadada;
+ border-radius: 4px;
+ overflow: auto;
+ line-height: 1.5;
+ font-size: 0.96em;
+ font-family: "Inconsolata", "Menlo", monospace;
+ color: #4c4c4c;
+ background-color: #f9f9f7;
+}
+.yue pre code,
+.yue pre tt {
+ color: #4c4c4c;
+ border: none;
+ background-color: none;
+ padding: auto;
+}
+.yue table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ margin-bottom: 1.5em;
+ font-size: 0.96em;
+}
+.yue th,
+.yue td {
+ text-align: left;
+ padding: 4px 8px 4px 10px;
+ border: 1px solid #dadada;
+}
+.yue td {
+ vertical-align: top;
+}
+.yue tr:nth-child(even) {
+ background-color: #efefee;
+}
diff --git a/theme/templates/_disqus.html b/theme/templates/_disqus.html
new file mode 100644
index 0000000..ea44796
--- /dev/null
+++ b/theme/templates/_disqus.html
@@ -0,0 +1,10 @@
+
+
diff --git a/theme/templates/_duoshuo.html b/theme/templates/_duoshuo.html
new file mode 100644
index 0000000..88f0c0e
--- /dev/null
+++ b/theme/templates/_duoshuo.html
@@ -0,0 +1,12 @@
+
+
diff --git a/theme/templates/archive.html b/theme/templates/archive.html
new file mode 100644
index 0000000..9e6792c
--- /dev/null
+++ b/theme/templates/archive.html
@@ -0,0 +1,41 @@
+{%- extends "layout.html" -%}
+{%- block title %}{{pagination.title}}{% endblock %}
+
+{%- block document %}
+{{pagination.title}}
+
+ {%- set year = 0 %}
+
+ {%- for item in pagination.items %}
+
+ {%- if config.writers|enabled('YearWriter') %}
+ {%- if year != item.pubdate.year %}
+ {%- set year = item.pubdate.year %}
+
{{ year }}
+ {%- endif %}
+ {%- endif %}
+
+
+
+ {{item.pubdate|date('Y-m-d')}}
+ {{item.title}}
+
+ {% if item.meta.description %}
+
+ {{ item.meta.description }}
+
+ {% endif %}
+
+ {%- endfor %}
+
+
+
+{% endblock -%}
diff --git a/theme/templates/feed.html b/theme/templates/feed.html
new file mode 100644
index 0000000..85e7289
--- /dev/null
+++ b/theme/templates/feed.html
@@ -0,0 +1,20 @@
+
+
+ {{ config.sitename }}
+
+
+ {{ content_url(config.siteurl, feed.filepath) }}
+ {% for post in feed.posts -%}
+
+
+ {%- set permalink = permalink_url(post) %}
+
+ {{ post.pubdate|xmldatetime }}
+ {{ post.pubdate|xmldatetime }}
+ {{ content_url(config.siteurl, permalink) }}
+
+
+
+
+ {%- endfor %}
+
diff --git a/theme/templates/layout.html b/theme/templates/layout.html
new file mode 100644
index 0000000..580f837
--- /dev/null
+++ b/theme/templates/layout.html
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+ {% block title%}{% endblock %}
+ {%- if config.touchIcon %}
+
+ {%- endif %}
+ {%- if config.feedurl %}
+
+ {%- endif %}
+
+ {%- block afterstyle %}{% endblock %}
+ {%- if config.google %}
+
+ {%- endif %}
+
+
+
+
+ {%- block document %}
+ {%- endblock %}
+
+
+ {%- if config.github %}
+
+ {%- endif %}
+
+
+
diff --git a/theme/templates/page.html b/theme/templates/page.html
new file mode 100644
index 0000000..4071171
--- /dev/null
+++ b/theme/templates/page.html
@@ -0,0 +1,17 @@
+{%- extends "layout.html" -%}
+{%- block title %}{{post.title}}{% endblock %}
+
+{%- block document %}
+
+
{{post.title}}
+ {%- if post.description %}
+
{{post.description}}
+ {%- endif %}
+
{{post.html | fixlink}}
+ {%- if post.meta.source %}
+
+ {%- endif %}
+
+{% endblock -%}
diff --git a/theme/templates/post.html b/theme/templates/post.html
new file mode 100644
index 0000000..b681fff
--- /dev/null
+++ b/theme/templates/post.html
@@ -0,0 +1,32 @@
+{%- extends "layout.html" -%}
+{%- block title %}{{post.title}}{% endblock %}
+
+{%- block document %}
+
+
{{post.title}}
+ {%- if post.meta.description %}
+
{{post.meta.description}}
+ {%- endif %}
+
{{post.html | fixlink}}
+
+
+
{{post.pubdate|date('l, M jS, Y')}}
+ {%- if post.tags|length and config.writers|enabled('TagWriter') %}
+ in
+ {% for tag in post.tags %}
+ {{tag}}
+ {% endfor %}
+
+ {%- endif %}
+ {%- if post.meta.source %}
+
{{ post.meta.source }}
+ {%- endif %}
+
+ {%- if config.disqus %}
+ {%- include "_disqus.html" %}
+ {%- endif %}
+ {%- if config.duoshuo %}
+ {%- include "_duoshuo.html" %}
+ {%- endif %}
+
+{% endblock -%}
diff --git a/theme/templates/tagcloud.html b/theme/templates/tagcloud.html
new file mode 100644
index 0000000..429286e
--- /dev/null
+++ b/theme/templates/tagcloud.html
@@ -0,0 +1,33 @@
+{%- extends "layout.html" -%}
+{%- block title %}{{title}}{% endblock %}
+
+{%- block document %}
+{{ title }}
+
+
+
+
+ {%- for items in tags %}
+
{{ loop.key }}
+
+ {%- for item in items %}
+
+
+ {{item.pubdate|date('Y-m-d')}}
+ {{item.title}}
+
+ {% if item.meta.description %}
+
+ {{ item.meta.description }}
+
+ {% endif %}
+
+ {%- endfor %}
+ {%- endfor %}
+
+
+{% endblock -%}
diff --git a/theme/theme.js b/theme/theme.js
new file mode 100644
index 0000000..c4f55f5
--- /dev/null
+++ b/theme/theme.js
@@ -0,0 +1,10 @@
+exports.name = 'one';
+exports.version = '0.2';
+
+exports.filters = {
+ enabled: function(writers, name) {
+ return writers.filter(function(writer) {
+ return ~writer.indexOf(name)
+ }).length;
+ }
+};
From e5ba96574236777a4c8d012ccd8f15f86139252a Mon Sep 17 00:00:00 2001
From: hotoo
Date: Tue, 22 Jul 2014 09:46:15 +0800
Subject: [PATCH 06/11] Fixed instal via new vundle, thanks @Cupen.
---
content/usage.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/content/usage.md b/content/usage.md
index 78d0e23..dce4f1b 100644
--- a/content/usage.md
+++ b/content/usage.md
@@ -5,8 +5,8 @@
## 如果安装了 Vundle
-* 在 vimrc 中写入 Bundle "vimcn/{script_name}.cnx"。
-* 执行 :BundleInstall 命令即可。
+* 在 vimrc 中写入 `Plugin "vimcn/{script_name}.cnx"`。
+* 执行 `:PluginInstall` 命令即可。
## 手工方式
From 529ff96994593ac02bfebb899ca0bbe004d10313 Mon Sep 17 00:00:00 2001
From: hotoo
Date: Tue, 22 Jul 2014 09:57:26 +0800
Subject: [PATCH 07/11] Delete old pages.
---
TODO.html | 52 --------------------------------
css/style.css | 32 --------------------
index.html | 73 ---------------------------------------------
spec.html | 82 ---------------------------------------------------
usage.html | 51 --------------------------------
5 files changed, 290 deletions(-)
delete mode 100644 TODO.html
delete mode 100644 css/style.css
delete mode 100644 index.html
delete mode 100644 spec.html
delete mode 100644 usage.html
diff --git a/TODO.html b/TODO.html
deleted file mode 100644
index f548c55..0000000
--- a/TODO.html
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-翻译计划
-
-
-
-
翻译计划
-
-
- 待整理...,欢迎来函补充。
-
-
-
-
-
diff --git a/css/style.css b/css/style.css
deleted file mode 100644
index 1f021bf..0000000
--- a/css/style.css
+++ /dev/null
@@ -1,32 +0,0 @@
-@charset "utf-8";
-
-/**
- * style.css
- *
- * @author 闲耘™ (hotoo.cn[AT]gmail.com)
- * @version 2011/08/06
- */
-html,body{margin:0; padding:0;}
-h1{border-bottom:1px solid #ccc;}
-h2,h3{border-bottom:1px solid #eee;}
-#wrapper{width:800px; margin:0 auto;}
-address{
- display:inline-block; padding:1px 4px; border:1px dashed #ccc;
- -moz-border-radius:4px; -khtml-border-radius:4px; -webkit-border-radius:4px; border-radius:4px;
-}
-code{border:1px dashed #ccc; display:inline-block; padding:1px 3px;}
-ol,ul{border-width:1px 0; border-style:dashed; border-color:#ccc; padding:8px 3em; background:#f8f8f8;}
-pre{border-left:3px solid #666; padding:5px 8px; background:#f0f0f0;}
-a{text-decoration:none;}
-a:hover{text-decoration:underline;}
-table{border-collapse:collapse;}
-th,td{border:1px solid #ccc; padding:2px 8px;}
-th{background:#eee none;}
-code{
- border:1px dashed #ccc; display:inline-block; padding:1px 3px;
- background:#efefef;
- -moz-border-radius:4px; -khtml-border-radius:4px; -webkit-border-radius:4px; border-radius:4px;
-}
-
-#github-projects{border-width:1px 0; border-style:dashed; border-color:#ccc; padding:8px 2em; background:#f8f8f8;}
-#footer{border-top:1px solid #ccc; text-align:center; padding:5px; margin:3em 0; font-size:.8em; color:#999;}
diff --git a/index.html b/index.html
deleted file mode 100644
index 1a2b8db..0000000
--- a/index.html
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-Vim 文档中文计划
-
-
-
-
-
Vim Script 文档中文计划
-
-
这是个业余的兴趣项目,主要是由各个成员翻译自己熟悉、喜爱推荐的优秀脚本的帮助文档,
- 也可以附上介绍,和一些小技巧之类。
-
-
欢迎有兴趣的朋友加入翻译或推荐脚本。参加方法:(建议使用自己的Gmail)
- 邮件你的 github id 到 hotoo.cn+vimdocs[AT]gmail.com
-
Vim Script 即 Vim 脚本,又称 Vim 插件(Plugin),以下统称“脚本”。
-
-
广告:欢迎加入 Vim 的 Gtalk 群
-
-
ref
-
-
-
-
-
-
-
-
diff --git a/spec.html b/spec.html
deleted file mode 100644
index 09c62e1..0000000
--- a/spec.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-文档翻译方法,规范及约定 - Vim 文档中文计划
-
-
-
-
文档翻译规范 & 约定
-
- 为了规范文档,提高文档质量和一致性,文档格式建议如下:
-
-
翻译方法
- 文件结构:
-
-+- /doc
-| +- {script_name}.cnx
-| `- {script_name}.txt
-`- /README.md
-
-
- 翻译的文档与原始文档同名,后缀改为 .cnx
- 保留(一般是英文)原始文档 .txt 文件。
- 文件放置到 /doc 目录中(如 /doc/vimwiki.cnx)。
-
-
规范 & 约定
-
- 每行不超过 80 列。
- 中文与英文之间用英文空格间隔。
- 恰当的使用中文标点,如逗号(,),句号(。),引号(“”)。
- 使用空格而不是 <Tab>
- 尽量保持原始文档的风格。
-
-
文档相关
-
Vim 文档由 tags 来链接各个相关的帮助信息,tags 是包含在两个星号之间的关键字,
- 在 Vim 中使用 :helptags 命令会根据这些信息生成 tags:
-
-*help-tags*
-
-
-
要链接到这些 tags,则将关键字放置在两条竖线之间:
-
-|help-tags|
-
-
-
Vim 文档中如果有代码,可以放置在两个相对的尖括号间,起始括号之后不能有其他字符,
-每行代码也需要有空白开始。
-
-下面是实例代码: >
-this is code.
-more codes.
-<
-
-
-
除代码外,标点符号建议使用全角的中文标点,如“,”,“。”等。
-
-
署名
-
建议在自己参与的文档上署名。署名一般是留下自己的真实姓名或者虚拟的昵称,和自己
-常用的邮箱地址。这一个是对自己所作付出的认可,也是对自己的工作负责,另外如果其
-他人有问题,可以方便和你联系。一般格式为:
-
-闲耘™ (hotoo.cn[AT]gmail.com)
-
-或者:
-
-闲耘™ <hotoo.cn[AT]gmail.com>
-
-
中间的 [AT] 是为了防止垃圾邮件,你也可以直接使用 @ 或者其他容易识别的字符。
-
- 如果你有建议,请联系
hotoo.cn[AT]gmail.com
-
-
-
-
-
diff --git a/usage.html b/usage.html
deleted file mode 100644
index b29dabf..0000000
--- a/usage.html
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-安装 & 使用 - Vim 文档中文计划
-
-
-
-
安装 & 使用
-
如果安装了 Vundle
-
- 在 vimrc 中写入 Bundle "vimcn/{script_name}.cnx"。
- 执行 :BundleInstall 命令即可。
-
-
手工方式:
-
- 下载(或 git clone) Vim script 中文文档(*.cnx)
- 放至 Vim 用户目录下的 doc 目录中
- for Windows: $VIM/vimfiles/doc
- for Unix-like(Linux, Mac OSX): ~/.vim/doc
- 以下统称 $VIM/vimfiles 和 ~/.vim 目录为 runtime 目录。
-
- 在 Vim 环境中运行 helptags 命令生成 tags:
-for Windows:
-
-:helptags $Vim/vimfiles/doc
-
-for Unix-like:
-
-:helptags ~/.vim/doc
-
-
- 设置 Vim 使用的文档语言,默认是英文。
-
-:set helplang=cn
-
- 如果在 vimrc 设置无效,可以查看并修改 runtime/plugin/vimcdoc.vim
- 中的设置,之前安装有 Vim 中文帮助则可以忽略这步。
-
-
-
-
-
-
From 7caed7ce114b6c9afb7b17f1fd04054287c1aa15 Mon Sep 17 00:00:00 2001
From: hotoo
Date: Tue, 22 Jul 2014 09:59:39 +0800
Subject: [PATCH 08/11] Delte todo page, link to wiki.
---
content/todo.md | 9 ---------
1 file changed, 9 deletions(-)
delete mode 100644 content/todo.md
diff --git a/content/todo.md b/content/todo.md
deleted file mode 100644
index 37b06f8..0000000
--- a/content/todo.md
+++ /dev/null
@@ -1,9 +0,0 @@
-
-# 翻译计划
-
-----
-
-| 状态 | 脚本 | 文档 | 贡献者 |
-|------|---------------------------------------------------------|-------------------------------------------------------|--------|
-| 100% | [Vimwiki](http://code.google.com/p/vimwiki/) | [vimwiki.vim](https://github.com/vimcn/vimwiki.vim) | @hotoo |
-| 100% | [snipMate.vim](http://github.com/msanders/snipmate.vim) | [snipMate.vim](https://github.com/vimcn/snipMate.vim) | @hotoo |
From 467f9187fd95ff156551eada03a373c2a29cebec Mon Sep 17 00:00:00 2001
From: hotoo
Date: Mon, 21 Jul 2014 18:08:51 -0800
Subject: [PATCH 09/11] Update documentation
---
.gitignore | 2 -
Makefile | 10 ---
README.md | 20 ------
content/index.md | 67 ------------------
content/spec.md | 76 --------------------
content/usage.md | 40 -----------
index.html | 103 ++++++++++++++++++++++++++++
nico.js | 32 ---------
spec.html | 79 +++++++++++++++++++++
{theme/static => static}/one.css | 0
{theme/static => static}/one.js | 0
{theme/static => static}/site.css | 0
{theme/static => static}/syntax.css | 0
{theme/static => static}/yue.css | 0
theme/Makefile | 2 -
theme/README.md | 70 -------------------
theme/templates/_disqus.html | 10 ---
theme/templates/_duoshuo.html | 12 ----
theme/templates/archive.html | 41 -----------
theme/templates/feed.html | 20 ------
theme/templates/layout.html | 66 ------------------
theme/templates/page.html | 17 -----
theme/templates/post.html | 32 ---------
theme/templates/tagcloud.html | 33 ---------
theme/theme.js | 10 ---
usage.html | 71 +++++++++++++++++++
26 files changed, 253 insertions(+), 560 deletions(-)
delete mode 100644 .gitignore
delete mode 100644 Makefile
delete mode 100644 README.md
delete mode 100644 content/index.md
delete mode 100644 content/spec.md
delete mode 100644 content/usage.md
create mode 100644 index.html
delete mode 100644 nico.js
create mode 100644 spec.html
rename {theme/static => static}/one.css (100%)
rename {theme/static => static}/one.js (100%)
rename {theme/static => static}/site.css (100%)
rename {theme/static => static}/syntax.css (100%)
rename {theme/static => static}/yue.css (100%)
delete mode 100644 theme/Makefile
delete mode 100644 theme/README.md
delete mode 100644 theme/templates/_disqus.html
delete mode 100644 theme/templates/_duoshuo.html
delete mode 100644 theme/templates/archive.html
delete mode 100644 theme/templates/feed.html
delete mode 100644 theme/templates/layout.html
delete mode 100644 theme/templates/page.html
delete mode 100644 theme/templates/post.html
delete mode 100644 theme/templates/tagcloud.html
delete mode 100644 theme/theme.js
create mode 100644 usage.html
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 33232bc..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-.DS_Store
-_site/
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 4df16c6..0000000
--- a/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-
-watch:
- @nico server --watch
-build:
- @nico build
-publish: clear build
- @ghp-import _site
- @git push origin gh-pages
-clear:
- @rm -rf _site
diff --git a/README.md b/README.md
deleted file mode 100644
index a17b4dd..0000000
--- a/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-# Vim 中文计划
-
-----
-
-Vim 中文文档计划旨在翻译 Vim 软件及其优秀插件的文档,为中文用户提供些许便利。
-
-## 如何贡献
-
-1. fork 有兴趣的仓库,并提交 Pull Request.
-1. 提交 Issues
-1. Code Review 并给出建议。
-1. 如果翻译新的插件,请提交 [Issues](https://github.com/vimcn/vimcn.github.com/issues)
- 申请创建新仓库,我将会尽快准备好新的仓库,并授权给你。申请格式:
-
- ```
- 插件名称:
- 插件地址:
- 贡献者列表:默认只添加提交 Issues 者。
- ```
diff --git a/content/index.md b/content/index.md
deleted file mode 100644
index 3397892..0000000
--- a/content/index.md
+++ /dev/null
@@ -1,67 +0,0 @@
-
-# Vim 中文计划
-
-----
-
-这是个业余的兴趣项目,主要是由各个成员翻译自己熟悉、喜爱推荐的优秀脚本的帮助文档,
-也可以附上介绍,和一些小技巧之类。
-
-欢迎有兴趣的朋友加入翻译或推荐脚本。参加方法:(建议使用自己的Gmail)
-邮件你的 github id 到 `hotoo.cn+vimdocs[AT]gmail.com`
-
-Vim Script 即 Vim 脚本,又称 Vim 插件(Plugin),以下统称“脚本”。
-
-* [项目源码](https://github.com/vimcn)
-* [翻译规范 & 约定](spec.md)
-* [安装 & 使用](usage.md)
-* [翻译计划](https://github.com/vimcn/vimcn.github.com/wiki/PLAN)
-
-## 广告
-
-* [Vim 资料收集](http://wiki.hotoo.me/Vim.html)
-* [欢迎加入 Vim 的 Gtalk 群](http://blog.hotoo.me/Gtalk-group-for-Vim.html)
-
-
-## 项目
-
-
-
-
-
-
-
diff --git a/content/spec.md b/content/spec.md
deleted file mode 100644
index 21dbec1..0000000
--- a/content/spec.md
+++ /dev/null
@@ -1,76 +0,0 @@
-
-# 文档翻译规范 & 约定
-
-----
-
-为了规范文档,提高文档质量和一致性,文档格式建议如下:
-
-## 翻译方法
-
-文件结构:
-
-```
-+- /doc
-| +- {script_name}.cnx
-| `- {script_name}.txt
-`- /README.md
-```
-
-* 翻译的文档与原始文档同名,后缀改为 `.cnx`
-* 保留(一般是英文)原始文档 `.txt` 文件。
-* 文件放置到 `/doc` 目录中(如 `/doc/vimwiki.cnx`)。
-
-## 规范 & 约定
-
-* 每行不超过 80 列。
-* 中文与英文之间用英文空格间隔。
-* 恰当的使用中文标点,如逗号(,),句号(。),引号(“”)。
-* 使用空格而不是 <Tab>
-* 尽量保持原始文档的风格。
-
-## 文档相关
-
-Vim 文档由 tags 来链接各个相关的帮助信息,tags 是包含在两个星号之间的关键字,
-在 Vim 中使用 :helptags 命令会根据这些信息生成 tags:
-
-```
-*help-tags*
-```
-
-要链接到这些 tags,则将关键字放置在两条竖线之间:
-
-```
-|help-tags|
-```
-
-Vim 文档中如果有代码,可以放置在两个相对的尖括号间,起始括号之后不能有其他字符,
-每行代码也需要有空白开始。
-
-```
-下面是实例代码: >
-this is code.
-more codes.
-<
-```
-
-除代码外,标点符号建议使用全角的中文标点,如“,”,“。”等。
-
-## 署名
-
-建议在自己参与的文档上署名。署名一般是留下自己的真实姓名或者虚拟的昵称,和自己
-常用的邮箱地址。这一个是对自己所作付出的认可,也是对自己的工作负责,另外如果其
-他人有问题,可以方便和你联系。一般格式为:
-
-```
-闲耘™ (hotoo.cn[AT]gmail.com)
-```
-
-或者:
-
-```
-闲耘™
-```
-
-中间的 `[AT]` 是为了防止垃圾邮件,你也可以直接使用 `@` 或者其他容易识别的字符。
-
-如果你有建议,请联系 `hotoo.cn[AT]gmail.com`
diff --git a/content/usage.md b/content/usage.md
deleted file mode 100644
index dce4f1b..0000000
--- a/content/usage.md
+++ /dev/null
@@ -1,40 +0,0 @@
-
-# 安装 & 使用
-
-----
-
-## 如果安装了 Vundle
-
-* 在 vimrc 中写入 `Plugin "vimcn/{script_name}.cnx"`。
-* 执行 `:PluginInstall` 命令即可。
-
-## 手工方式
-
-* 下载(或 git clone) [Vim script 中文文档(*.cnx)](https://github.com/vimcn)
-* 放至 Vim 用户目录下的 doc 目录中
-
- * for Windows: `$VIM/vimfiles/doc`
- * for Unix-like(Linux, Mac OSX): `~/.vim/doc`
- > 以下统称 `$VIM/vimfiles` 和 `~/.vim` 目录为 `runtime` 目录。
-* 在 Vim 环境中运行 `helptags` 命令生成 tags:
-
- for Windows:
-
- ```
- :helptags $Vim/vimfiles/doc
- ```
-
- for Unix-like:
-
- ```
- :helptags ~/.vim/doc
- ```
-
-* 设置 Vim 使用的文档语言,默认是英文。
-
- ```
- :set helplang=cn
- ```
-
- 如果在 vimrc 设置无效,可以查看并修改 `runtime/plugin/vimcdoc.vim`
- 中的设置,之前安装有 Vim 中文帮助则可以忽略这步。
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..274beb2
--- /dev/null
+++ b/index.html
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+ Vim 中文计划
+
+
+
+
+
+
+
+
Vim 中文计划
+
这是个业余的兴趣项目,主要是由各个成员翻译自己熟悉、喜爱推荐的优秀脚本的帮助文档,
+也可以附上介绍,和一些小技巧之类。
+
欢迎有兴趣的朋友加入翻译或推荐脚本。参加方法:(建议使用自己的Gmail)
+邮件你的 github id 到 hotoo.cn+vimdocs[AT]gmail.com
+
Vim Script 即 Vim 脚本,又称 Vim 插件(Plugin),以下统称“脚本”。
+
+
广告
+
项目
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/nico.js b/nico.js
deleted file mode 100644
index 0cfd554..0000000
--- a/nico.js
+++ /dev/null
@@ -1,32 +0,0 @@
-exports = module.exports = {
- "sitename": "Vim 中文计划",
- "source": "content",
- "output": "_site",
- "theme": "theme",
- "permalink": "{{directory}}/{{filename}}",
- "navigation":[
- { "link":"/spec.html", "title":"翻译规范 & 约定" },
- { "link":"/usage.html", "title":"安装 & 使用" },
- { "link":"https://github.com/vimcn/vimcn.github.com/wiki/PLAN", "title":"翻译计划" }
- ],
- "google": {
- "id": "UA-15922433-1",
- "domain": "vimcn.github.io"
- },
- "github": "https://github.com/vimcn",
- "writers": [
- "nico.PageWriter",
- "nico.PostWriter",
- "nico.FileWriter",
- "nico.StaticWriter"
- ]
-}
-
-
-exports.filters = {
- fixlink: function(html) {
- // format permalink, ends without .html
- html = html.replace(/(href="[^"]+)\.md(">)/ig, "$1$2");
- return html;
- }
-}
diff --git a/spec.html b/spec.html
new file mode 100644
index 0000000..5ec8a11
--- /dev/null
+++ b/spec.html
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+ 文档翻译规范 & 约定
+
+
+
+
+
+
+
+
文档翻译规范 & 约定
+
为了规范文档,提高文档质量和一致性,文档格式建议如下:
+
翻译方法 文件结构:
+
+- /doc
+| +- {script_name}.cnx
+| `- {script_name}.txt
+`- /README.md
+翻译的文档与原始文档同名,后缀改为 .cnx
+保留(一般是英文)原始文档 .txt 文件。
+文件放置到 /doc 目录中(如 /doc/vimwiki.cnx)。
+
+
规范 & 约定
+每行不超过 80 列。
+中文与英文之间用英文空格间隔。
+恰当的使用中文标点,如逗号(,),句号(。),引号(“”)。
+使用空格而不是 <Tab>
+尽量保持原始文档的风格。
+
+
文档相关 Vim 文档由 tags 来链接各个相关的帮助信息,tags 是包含在两个星号之间的关键字,
+在 Vim 中使用 :helptags 命令会根据这些信息生成 tags:
+
*help-tags* 要链接到这些 tags,则将关键字放置在两条竖线之间:
+
|help-tags| Vim 文档中如果有代码,可以放置在两个相对的尖括号间,起始括号之后不能有其他字符,
+每行代码也需要有空白开始。
+
下面是实例代码: >
+this is code.
+more codes.
+< 除代码外,标点符号建议使用全角的中文标点,如“,”,“。”等。
+
署名 建议在自己参与的文档上署名。署名一般是留下自己的真实姓名或者虚拟的昵称,和自己
+常用的邮箱地址。这一个是对自己所作付出的认可,也是对自己的工作负责,另外如果其
+他人有问题,可以方便和你联系。一般格式为:
+
闲耘™ (hotoo.cn[AT]gmail.com) 或者:
+
闲耘™ <hotoo.cn[AT]gmail.com> 中间的 [AT] 是为了防止垃圾邮件,你也可以直接使用 @ 或者其他容易识别的字符。
+
如果你有建议,请联系 hotoo.cn[AT]gmail.com
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/theme/static/one.css b/static/one.css
similarity index 100%
rename from theme/static/one.css
rename to static/one.css
diff --git a/theme/static/one.js b/static/one.js
similarity index 100%
rename from theme/static/one.js
rename to static/one.js
diff --git a/theme/static/site.css b/static/site.css
similarity index 100%
rename from theme/static/site.css
rename to static/site.css
diff --git a/theme/static/syntax.css b/static/syntax.css
similarity index 100%
rename from theme/static/syntax.css
rename to static/syntax.css
diff --git a/theme/static/yue.css b/static/yue.css
similarity index 100%
rename from theme/static/yue.css
rename to static/yue.css
diff --git a/theme/Makefile b/theme/Makefile
deleted file mode 100644
index 38aa22a..0000000
--- a/theme/Makefile
+++ /dev/null
@@ -1,2 +0,0 @@
-build-css:
- @cat static/yue.css static/syntax.css static/site.css > static/one.css
diff --git a/theme/README.md b/theme/README.md
deleted file mode 100644
index 514c3e1..0000000
--- a/theme/README.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# One Theme
-
-The One Theme for [nico](http://lab.lepture.com/nico/)
-
-This theme requires nico 0.4.6+ now.
-
-## Configuration
-
-The basic configuration for a blog:
-
-```
-{
- "source": "content",
- "output": "_site",
- "theme": "_themes/one",
- "sitename": "Nico",
- "siteurl": "http://lab.lepture.com/nico/",
- "permalink": "{{directory}}/{{filename}}.html",
- "writers": [
- "nico.PostWriter",
- "nico.PageWriter",
- "nico.FileWriter",
- "nico.StaticWriter",
- "nico.ArchiveWriter",
- "nico.YearWriter",
- "nico.TagWriter",
- "nico.DirectoryWriter",
- "nico.FeedWriter"
- ]
-}
-```
-
-Additional configuration this theme:
-
-- tagline: A description of your site.
-- touchIcon: Link of Apple Touch Icon.
-- hideNico: Hide nico copyright at bottom.
-- github: Github link, a github fork badge will display.
-- navigation: A array of items of navigation.
-
-Navigation example:
-
-```
-{
- "navigation": [
- {"title": "Life", "link": "/life/"},
- {"title": "Work", "link": "/work/"}
- ]
-}
-```
-
-## Comment
-
-Comment is available for posts. This theme support disqus and duoshuo.
-
-Configure a disqus short name:
-
-```
-{
- "disqus": "short name"
-}
-```
-
-If you prefer duoshuo:
-
-```
-{
- "duoshuo": "short name"
-}
-```
diff --git a/theme/templates/_disqus.html b/theme/templates/_disqus.html
deleted file mode 100644
index ea44796..0000000
--- a/theme/templates/_disqus.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
diff --git a/theme/templates/_duoshuo.html b/theme/templates/_duoshuo.html
deleted file mode 100644
index 88f0c0e..0000000
--- a/theme/templates/_duoshuo.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
diff --git a/theme/templates/archive.html b/theme/templates/archive.html
deleted file mode 100644
index 9e6792c..0000000
--- a/theme/templates/archive.html
+++ /dev/null
@@ -1,41 +0,0 @@
-{%- extends "layout.html" -%}
-{%- block title %}{{pagination.title}}{% endblock %}
-
-{%- block document %}
-{{pagination.title}}
-
- {%- set year = 0 %}
-
- {%- for item in pagination.items %}
-
- {%- if config.writers|enabled('YearWriter') %}
- {%- if year != item.pubdate.year %}
- {%- set year = item.pubdate.year %}
-
{{ year }}
- {%- endif %}
- {%- endif %}
-
-
-
- {{item.pubdate|date('Y-m-d')}}
- {{item.title}}
-
- {% if item.meta.description %}
-
- {{ item.meta.description }}
-
- {% endif %}
-
- {%- endfor %}
-
-
-
-{% endblock -%}
diff --git a/theme/templates/feed.html b/theme/templates/feed.html
deleted file mode 100644
index 85e7289..0000000
--- a/theme/templates/feed.html
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
- {{ config.sitename }}
-
-
- {{ content_url(config.siteurl, feed.filepath) }}
- {% for post in feed.posts -%}
-
-
- {%- set permalink = permalink_url(post) %}
-
- {{ post.pubdate|xmldatetime }}
- {{ post.pubdate|xmldatetime }}
- {{ content_url(config.siteurl, permalink) }}
-
-
-
-
- {%- endfor %}
-
diff --git a/theme/templates/layout.html b/theme/templates/layout.html
deleted file mode 100644
index 580f837..0000000
--- a/theme/templates/layout.html
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
-
- {% block title%}{% endblock %}
- {%- if config.touchIcon %}
-
- {%- endif %}
- {%- if config.feedurl %}
-
- {%- endif %}
-
- {%- block afterstyle %}{% endblock %}
- {%- if config.google %}
-
- {%- endif %}
-
-
-
-
- {%- block document %}
- {%- endblock %}
-
-
- {%- if config.github %}
-
- {%- endif %}
-
-
-
diff --git a/theme/templates/page.html b/theme/templates/page.html
deleted file mode 100644
index 4071171..0000000
--- a/theme/templates/page.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{%- extends "layout.html" -%}
-{%- block title %}{{post.title}}{% endblock %}
-
-{%- block document %}
-
-
{{post.title}}
- {%- if post.description %}
-
{{post.description}}
- {%- endif %}
-
{{post.html | fixlink}}
- {%- if post.meta.source %}
-
- {%- endif %}
-
-{% endblock -%}
diff --git a/theme/templates/post.html b/theme/templates/post.html
deleted file mode 100644
index b681fff..0000000
--- a/theme/templates/post.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{%- extends "layout.html" -%}
-{%- block title %}{{post.title}}{% endblock %}
-
-{%- block document %}
-
-
{{post.title}}
- {%- if post.meta.description %}
-
{{post.meta.description}}
- {%- endif %}
-
{{post.html | fixlink}}
-
-
-
{{post.pubdate|date('l, M jS, Y')}}
- {%- if post.tags|length and config.writers|enabled('TagWriter') %}
- in
- {% for tag in post.tags %}
- {{tag}}
- {% endfor %}
-
- {%- endif %}
- {%- if post.meta.source %}
-
{{ post.meta.source }}
- {%- endif %}
-
- {%- if config.disqus %}
- {%- include "_disqus.html" %}
- {%- endif %}
- {%- if config.duoshuo %}
- {%- include "_duoshuo.html" %}
- {%- endif %}
-
-{% endblock -%}
diff --git a/theme/templates/tagcloud.html b/theme/templates/tagcloud.html
deleted file mode 100644
index 429286e..0000000
--- a/theme/templates/tagcloud.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{%- extends "layout.html" -%}
-{%- block title %}{{title}}{% endblock %}
-
-{%- block document %}
-{{ title }}
-
-
-
-
- {%- for items in tags %}
-
{{ loop.key }}
-
- {%- for item in items %}
-
-
- {{item.pubdate|date('Y-m-d')}}
- {{item.title}}
-
- {% if item.meta.description %}
-
- {{ item.meta.description }}
-
- {% endif %}
-
- {%- endfor %}
- {%- endfor %}
-
-
-{% endblock -%}
diff --git a/theme/theme.js b/theme/theme.js
deleted file mode 100644
index c4f55f5..0000000
--- a/theme/theme.js
+++ /dev/null
@@ -1,10 +0,0 @@
-exports.name = 'one';
-exports.version = '0.2';
-
-exports.filters = {
- enabled: function(writers, name) {
- return writers.filter(function(writer) {
- return ~writer.indexOf(name)
- }).length;
- }
-};
diff --git a/usage.html b/usage.html
new file mode 100644
index 0000000..21eee0c
--- /dev/null
+++ b/usage.html
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+ 安装 & 使用
+
+
+
+
+
+
+
+
安装 & 使用
+
如果安装了 Vundle
+在 vimrc 中写入 Plugin "vimcn/{script_name}.cnx"。
+执行 :PluginInstall 命令即可。
+
+
手工方式
+下载(或 git clone) Vim script 中文文档(*.cnx)
+放至 Vim 用户目录下的 doc 目录中
+
+for Windows: $VIM/vimfiles/doc
+for Unix-like(Linux, Mac OSX): ~/.vim/doc
+以下统称 $VIM/vimfiles 和 ~/.vim 目录为 runtime 目录。
+
+
+
+
+在 Vim 环境中运行 helptags 命令生成 tags:
+for Windows:
+:helptags $Vim/vimfiles/doc for Unix-like:
+:helptags ~/.vim/doc
+设置 Vim 使用的文档语言,默认是英文。
+:set helplang=cn 如果在 vimrc 设置无效,可以查看并修改 runtime/plugin/vimcdoc.vim
+中的设置,之前安装有 Vim 中文帮助则可以忽略这步。
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From dc5542a767bbacdf5a5fcba3412aff52046953a1 Mon Sep 17 00:00:00 2001
From: hotoo
Date: Mon, 21 Jul 2014 18:12:26 -0800
Subject: [PATCH 10/11] Update documentation
---
index.html | 2 +-
spec.html | 2 +-
usage.html | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.html b/index.html
index 274beb2..493a373 100644
--- a/index.html
+++ b/index.html
@@ -95,7 +95,7 @@ 项目