FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
fe/Makefile at master · rockjava/fe · GitHub
rockjava
/
fe
Public
forked from
phodal/fe
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
fe
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
55 lines (47 loc) · 1.42 KB
Breadcrumbs
fe
/
Makefile
Copy path
File metadata and controls
executable file
·
55 lines (47 loc) · 1.42 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
51
52
53
54
55
include_dir
=build
source
=chapters/*.md
title
='我的职业是前端工程师'
filename
='ebook'
all
: html epub rtf pdf mobi
markdown
:
awk
'
FNR==1{print ""}{print}
'
$(
source
)
>
$(
filename
)
.md
sed -i
'
s@](../images@](images@g
'
$(
filename
)
.md
html
: markdown
pandoc -s
$(
filename
)
.md -t html5 -o index.html -c style.css
\
--include-in-header
$(
include_dir
)
/head.html
\
--include-before-body
$(
include_dir
)
/author.html
\
--include-before-body
$(
include_dir
)
/share.html
\
--include-after-body
$(
include_dir
)
/stats.html
\
--title-prefix
$(
title
)
\
--normalize
\
--smart
\
--toc
epub
: markdown
pandoc -s
$(
filename
)
.md --normalize --smart -t epub -o
$(
filename
)
.epub
\
--epub-metadata
$(
include_dir
)
/metadata.xml
\
--epub-stylesheet epub.css
\
--epub-cover-image img/cover.jpg
\
--title-prefix
$(
title
)
\
--normalize
\
--smart
\
--toc
rtf
: markdown
pandoc -s
$(
filename
)
.md -o
$(
filename
)
.rtf
\
--title-prefix
$(
title
)
\
--normalize
\
--smart
pdf
: markdown
#
OS X: http://www.tug.org/mactex/
#
Then find its path: find /usr/ -name "pdflatex"
#
Then symlink it: ln -s /path/to/pdflatex /usr/local/bin
pandoc -s
$(
filename
)
.md -o
$(
filename
)
.pdf
\
--title-prefix
$(
title
)
\
--listings -H listings-setup.tex
\
--template=template/template.tex
\
--normalize
\
--smart
\
--toc
\
--latex-engine=
`
which xelatex
`
mobi
: epub
#
Symlink bin: ln -s /path/to/kindlegen /usr/local/bin
kindlegen
$(
filename
)
.epub
Back
|
FazBrowse Home
|
New Git URL