2015-12-09 07:45:11 +00:00
|
|
|
# Copyright 2015 Golang-China. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
# install gitbook
|
|
|
|
# npm install gitbook-cli -g
|
|
|
|
|
2015-12-27 07:13:12 +00:00
|
|
|
# https://github.com/GitbookIO
|
2015-12-09 07:45:11 +00:00
|
|
|
# https://github.com/GitbookIO/gitbook
|
2015-12-27 07:13:12 +00:00
|
|
|
# https://github.com/GitbookIO/plugin-katex
|
2015-12-09 07:45:11 +00:00
|
|
|
# https://github.com/wastemobile/gitbook
|
|
|
|
|
2015-12-22 07:17:55 +00:00
|
|
|
# http://www.imagemagick.org/
|
|
|
|
|
2015-12-18 06:02:22 +00:00
|
|
|
default:
|
2015-12-09 07:45:11 +00:00
|
|
|
gitbook build
|
|
|
|
|
|
|
|
zh2tw:
|
|
|
|
go run zh2tw.go . .md$$
|
|
|
|
|
|
|
|
tw2zh:
|
|
|
|
go run zh2tw.go . .md$$ tw2zh
|
2015-12-18 06:26:55 +00:00
|
|
|
|
|
|
|
loop:
|
|
|
|
go run zh2tw.go . .md$$ tw2zh
|
|
|
|
go run zh2tw.go . .md$$ zh2tw
|
|
|
|
|
2015-12-21 09:25:03 +00:00
|
|
|
review:
|
|
|
|
go run zh2tw.go . .md$$ tw2zh
|
|
|
|
gitbook build
|
|
|
|
go run zh2tw.go . .md$$ zh2tw
|
|
|
|
|
2016-01-12 05:52:13 +00:00
|
|
|
qrcode:
|
|
|
|
go run mkqrcode.go
|
|
|
|
|
2015-12-22 07:17:55 +00:00
|
|
|
cover:
|
|
|
|
composite cover_patch.png cover_bgd.png cover.jpg
|
|
|
|
convert -resize 1800x2360! cover.jpg cover.jpg
|
|
|
|
convert -resize 200x262! cover.jpg cover_small.jpg
|
2016-01-07 03:25:05 +00:00
|
|
|
convert -resize 400x524! cover.jpg cover_middle.jpg
|
2015-12-22 07:19:01 +00:00
|
|
|
convert -quality 75% cover.jpg cover.jpg
|
|
|
|
convert -quality 75% cover_small.jpg cover_small.jpg
|
2016-01-07 03:25:05 +00:00
|
|
|
convert -quality 75% cover_middle.jpg cover_middle.jpg
|
2015-12-22 07:19:01 +00:00
|
|
|
convert -strip cover.jpg cover.jpg
|
|
|
|
convert -strip cover_small.jpg cover_small.jpg
|
2016-01-07 03:25:05 +00:00
|
|
|
convert -strip cover_middle.jpg cover_middle.jpg
|