@@ -17,7 +17,11 @@ CDOCS :=
17
17
DOCS_L10N :=
18
18
19
19
BASE_DOC_OPTS := --from=markdown --standalone --toc --number-sections
20
- HTML_OPTS = $(BASE_DOC_OPTS ) --to=html5 --section-divs --css=rust.css --include-before-body=doc/version_info.html --include-in-header=doc/favicon.inc
20
+
21
+ HTML_OPTS = $(BASE_DOC_OPTS ) --to=html5 --section-divs --css=rust.css \
22
+ --include-before-body=doc/version_info.html \
23
+ --include-in-header=doc/favicon.inc
24
+
21
25
TEX_OPTS = $(BASE_DOC_OPTS ) --to=latex
22
26
EPUB_OPTS = $(BASE_DOC_OPTS ) --to=epub
23
27
@@ -112,57 +116,59 @@ doc/l10n/ja/tutorial.html: doc/l10n/ja/tutorial.md doc/version_info.html doc/rus
112
116
--include-before-body=doc/version_info.html \
113
117
--output=$@
114
118
115
- DOCS += doc/tutorial-macros.html
116
- doc/tutorial-macros.html : tutorial-macros.md doc/version_info.html doc/rust.css \
119
+ # Guides
120
+
121
+ DOCS += doc/guide-macros.html
122
+ doc/guide-macros.html : $(S ) doc/guide-macros.md doc/version_info.html doc/rust.css \
117
123
doc/favicon.inc
118
124
@$(call E, pandoc: $@ )
119
125
$(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
120
126
$(CFG_PANDOC ) $(HTML_OPTS ) --output=$@
121
127
122
- DOCS += doc/tutorial -container.html
123
- doc/tutorial -container.html : tutorial -container.md doc/version_info.html doc/rust.css \
128
+ DOCS += doc/guide -container.html
129
+ doc/guide -container.html : $( S ) doc/guide -container.md doc/version_info.html doc/rust.css \
124
130
doc/favicon.inc
125
131
@$(call E, pandoc: $@ )
126
132
$(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
127
133
$(CFG_PANDOC ) $(HTML_OPTS ) --output=$@
128
134
129
- DOCS += doc/tutorial -ffi.html
130
- doc/tutorial -ffi.html : tutorial -ffi.md doc/version_info.html doc/rust.css \
135
+ DOCS += doc/guide -ffi.html
136
+ doc/guide -ffi.html : $( S ) doc/guide -ffi.md doc/version_info.html doc/rust.css \
131
137
doc/favicon.inc
132
138
@$(call E, pandoc: $@ )
133
139
$(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
134
140
$(CFG_PANDOC ) $(HTML_OPTS ) --output=$@
135
141
136
- DOCS += doc/tutorial -testing.html
137
- doc/tutorial -testing.html : tutorial -testing.md doc/version_info.html doc/rust.css \
142
+ DOCS += doc/guide -testing.html
143
+ doc/guide -testing.html : $( S ) doc/guide -testing.md doc/version_info.html doc/rust.css \
138
144
doc/favicon.inc
139
145
@$(call E, pandoc: $@ )
140
146
$(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
141
147
$(CFG_PANDOC ) $(HTML_OPTS ) --output=$@
142
148
143
- DOCS += doc/tutorial -borrowed-ptr.html
144
- doc/tutorial -borrowed-ptr.html : tutorial -borrowed-ptr.md doc/version_info.html doc/rust.css \
149
+ DOCS += doc/guide -borrowed-ptr.html
150
+ doc/guide -borrowed-ptr.html : $( S ) doc/guide -borrowed-ptr.md doc/version_info.html doc/rust.css \
145
151
doc/favicon.inc
146
152
@$(call E, pandoc: $@ )
147
153
$(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
148
154
$(CFG_PANDOC ) $(HTML_OPTS ) --output=$@
149
155
150
- DOCS += doc/tutorial -tasks.html
151
- doc/tutorial -tasks.html : tutorial -tasks.md doc/version_info.html doc/rust.css \
156
+ DOCS += doc/guide -tasks.html
157
+ doc/guide -tasks.html : $( S ) doc/guide -tasks.md doc/version_info.html doc/rust.css \
152
158
doc/favicon.inc
153
159
@$(call E, pandoc: $@ )
154
160
$(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
155
161
$(CFG_PANDOC ) $(HTML_OPTS ) --output=$@
156
162
157
- DOCS += doc/tutorial -conditions.html
158
- doc/tutorial -conditions.html : tutorial -conditions.md doc/version_info.html doc/rust.css \
163
+ DOCS += doc/guide -conditions.html
164
+ doc/guide -conditions.html : $( S ) doc/guide -conditions.md doc/version_info.html doc/rust.css \
159
165
doc/favicon.inc
160
166
@$(call E, pandoc: $@ )
161
167
$(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
162
168
$(CFG_PANDOC ) $(HTML_OPTS ) --output=$@
163
169
164
- DOCS += doc/tutorial -rustpkg.html
165
- doc/tutorial -rustpkg.html : tutorial -rustpkg.md doc/version_info.html doc/rust.css \
170
+ DOCS += doc/guide -rustpkg.html
171
+ doc/guide -rustpkg.html : $( S ) doc/guide -rustpkg.md doc/version_info.html doc/rust.css \
166
172
doc/favicon.inc
167
173
@$(call E, pandoc: $@ )
168
174
$(Q )$(CFG_NODE ) $(S ) doc/prep.js --highlight $< | \
0 commit comments