forked from foreversmart/gopl-zh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (38 loc) · 1.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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
# https://github.com/GitbookIO
# https://github.com/GitbookIO/gitbook
# https://github.com/GitbookIO/plugin-katex
# https://github.com/wastemobile/gitbook
# http://www.imagemagick.org/
default:
gitbook build
zh2tw:
go run zh2tw.go . .md$$
tw2zh:
go run zh2tw.go . .md$$ tw2zh
loop:
go run zh2tw.go . .md$$ tw2zh
go run zh2tw.go . .md$$ zh2tw
review:
go run zh2tw.go . .md$$ tw2zh
gitbook build
go run zh2tw.go . .md$$ zh2tw
qrcode:
go run mkqrcode.go
fixlink:
go run fixlinks.go . .md$$
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
convert -resize 400x524! cover.jpg cover_middle.jpg
convert -quality 75% cover.jpg cover.jpg
convert -quality 75% cover_small.jpg cover_small.jpg
convert -quality 75% cover_middle.jpg cover_middle.jpg
convert -strip cover.jpg cover.jpg
convert -strip cover_small.jpg cover_small.jpg
convert -strip cover_middle.jpg cover_middle.jpg