File tree 3 files changed +27
-1
lines changed 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 30
30
* .cps
31
31
* .log
32
32
* .pdf
33
+ * .epub
33
34
* .html
34
35
* .pg
35
36
* .toc
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ clean-misc:
53
53
$(Q)rm -Rf tmp/*
54
54
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
55
55
$(Q)rm -Rf $(foreach ext, \
56
- html aux cp fn ky log pdf pg toc tp vr cps, \
56
+ html aux cp fn ky log pdf pg toc tp vr cps epub , \
57
57
$(wildcard doc/*.$(ext)))
58
58
$(Q)find doc/std doc/extra -mindepth 1 | xargs rm -Rf
59
59
$(Q)rm -Rf doc/version.md
Original file line number Diff line number Diff line change @@ -64,6 +64,20 @@ doc/rust.tex: rust.md doc/version.md
64
64
--from=markdown --to=latex \
65
65
--output=$@
66
66
67
+ DOCS += doc/rust.epub
68
+ doc/rust.epub : rust.md doc/version_info.html doc/rust.css doc/manual.inc
69
+ @$(call E, pandoc: $@ )
70
+ $(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
71
+ " $( CFG_PANDOC) " \
72
+ --standalone --toc \
73
+ --section-divs \
74
+ --number-sections \
75
+ --from =markdown --to=epub \
76
+ --css=rust.css --include-in-header=doc/manual.inc \
77
+ --include-before-body=doc/version_info.html \
78
+ --output=$@
79
+
80
+
67
81
DOCS += doc/tutorial.tex
68
82
doc/tutorial.tex : tutorial.md doc/version.md
69
83
@$(call E, pandoc: $@ )
@@ -98,6 +112,17 @@ doc/tutorial.html: tutorial.md doc/version_info.html doc/rust.css
98
112
--include-before-body=doc/version_info.html \
99
113
--output=$@
100
114
115
+ DOCS += doc/tutorial.epub
116
+ doc/tutorial.epub : tutorial.md doc/version_info.html doc/rust.css
117
+ @$(call E, pandoc: $@ )
118
+ $(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
119
+ $(CFG_PANDOC) --standalone --toc \
120
+ --section-divs --number-sections \
121
+ --from =markdown --to=epub --css=rust.css \
122
+ --include-before-body=doc/version_info.html \
123
+ --output=$@
124
+
125
+
101
126
DOCS_L10N += doc/l10n/ja/tutorial.html
102
127
doc/l10n/ja/tutorial.html : doc/l10n/ja/tutorial.md doc/version_info.html doc/rust.css
103
128
@$(call E, pandoc: $@ )
You can’t perform that action at this time.
0 commit comments