Skip to content

Commit 4b61bc1

Browse files
committed
增加本地编译部分
1 parent cec0947 commit 4b61bc1

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,21 @@ Bob Nystrom同时在Github上无私地提供原本:[munificent/game-programmin
2222
- 删除英文特殊字体(完成)。
2323
- 压缩图片(完成)。
2424
- 使用更适合中文的CSS设置(完成)。
25+
26+
# 编译本书
27+
28+
这本书使用Markdown写就(book/)。使用了一些Python脚本(script/format.py)、SASS文件(asset/style.scss)及HTML模板(asset/template.html)转换为最终的HTML文件(html/)。想要自行编译,需要安装Python 2.7,以及Python Markdown, Pygments,和SmartyPants:
29+
30+
$ pip install markdown
31+
$ pip install pygments
32+
$ pip install smartypants
33+
34+
可能需要使用sudo指令或者管理员权限。在此之后,使用:
35+
36+
$ python script/format.py
37+
38+
请从本项目的根目录运行该脚本,本脚本也可以以监视模式运行:
39+
40+
$ python script/format.py --watch
41+
42+
这会监视对markdown文件,SASS文件或HTML模板的修改,并生成必要的文件。

0 commit comments

Comments
 (0)