/
document.glyph
324 lines (324 loc) · 6.18 KB
/
document.glyph
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
book[
@head[
?[not/output?[h3rald]|
style[default.css]
?[output?[pdf]|style[pagination.css]]
?[eq[$[filters.highlighter]|coderay]|style[coderay.css]]
?[eq[$[filters.highlighter]|ultraviolet]|style[ultraviolet/lazy.css]]
]
]
@pre-title[
?[and[
output?[pdf]|
eq[$[output.pdf.generator]|prince]]|
image[@width[20%]@height[20%]glyph/glyph.svg]|
image[glyph/glyph.png]]
]
@frontmatter[
include[snippets]
toc[3]
introduction[
@title[Introduction]
@src[introduction]
section[
@title[License]
@src[license]
]
]
acknowledgement[
@title[Acknowledgements]
@src[acknowledgements]
]
]
@bodymatter[
chapter[
@title[Getting Started]
section[
@title[Creating your first Glyph Project]
@src[getting_started/create_project]
]
section[
@title[Document Structure]
@id[struct]
@src[getting_started/structure]
]
section[
@title[Project Configuration]
@id[cfg]
@src[getting_started/configuration]
]
]
chapter[
@title[Authoring Documents]
section[
@title[code[.glyph] files]
@src[text_editing/glyph_files]
]
section[
@title[Introducing &[macros]]
@id[macro_intro]
@src[text_editing/macro_intro]
]
section[
@title[Macro attributes]
@id[attribute_intro]
@src[text_editing/attribute_intro]
]
section[
@title[Macro Composition]
@id[composition]
@src[text_editing/macro_composition]
]
section[
@title[Escaping and Quoting]
@id[esc_quot]
@src[text_editing/esc_quot]
]
section[
@title[Sections and Headers]
@id[sec_head]
@src[text_editing/sections]
section[
@title[Section Aliases]
@src[text_editing/section_aliases]
]
section[
@title[Topics]
@id[topics]
@src[text_editing/topics]
]
]
section[
@title[Links and Bookmarks]
@id[links]
@src[text_editing/links]
]
section[
@title[Images and Figures]
@id[img_fig]
@src[text_editing/images]
]
section[
@title[Source Code]
@id[source_code]
@src[text_editing/code]
]
section[
@title[Other HTML Elements]
@id[other_elements]
section[
@title[&[markups]]
@src[text_editing/raw_html]
]
section[
@title[XML Fallback]
@src[text_editing/xml_fallback]
]
]
section[
@title[Adding Stylesheets]
@id[stylesheets]
@src[text_editing/stylesheets]
]
section[
@title[Content Reuse]
@id[incl]
@src[text_editing/inclusions]
]
section[
@title[Conditional Macros]
@id[cond_macros]
@src[text_editing/conditionals]
]
section[
@title[Simple Programming and Code Evaluation]
@src[text_editing/evaluation]
]
]
chapter[
@title[Generating Output Files]
section[
@title[Compiling a project]
@id[compile]
@src[compiling/compiling]
]
section[
@title[Compiling single Glyph files]
@id[lite_mode]
@src[compiling/lite_mode]
]
section[
@title[Using Glyph programmatically]
@src[compiling/programmatic_usage]
]
]
chapter[
@title[Document Statistics]
@id[stats]
section[
@title[Using the stats command]
@src[stats/stats]
]
section[
@title[Macro Statistics]
@src[stats/macros]
@id[stats_macros]
]
section[
@title[Snippet Statistics]
@src[stats/snippets]
@id[stats_snippets]
]
section[
@title[Bookmark Statistics]
@src[stats/bookmarks]
@id[stats_bookmarks]
]
section[
@title[Link Statistics]
@src[stats/links]
@id[stats_links]
]
]
chapter[
@title[Extending Glyph]
@id[extending]
section[
@title[A quick look at Glyph's internals]
@src[extending/internals]
]
section[
@title[Defining Custom Macros]
@id[macro_def]
@src[extending/macro_def]
section[
@title[Parameters and Attributes]
@src[extending/params_attrs]
]
section[
@title[Bookmarks and Headers]
@src[extending/bookmarks_headers]
]
section[
@title[Using Placeholders]
@src[extending/placeholders]
]
section[
@title[Using Validators]
@src[extending/validators]
]
section[
@title[Interpreting Glyph Code]
@id[interpreting]
@src[extending/interpreting]
]
section[
@title[Layouts]
@id[layouts]
@src[extending/layouts]
]
section[
@title[Further Reading]
@src[extending/further_reading]
]
]
section[
@title[Defining Custom Commands and Tasks]
@src[extending/commands_tasks]
section[
@title[Defining Custom Tasks]
@src[extending/task]
@id[custom_task]
section[
@title[Custom Output Formats]
@src[extending/output_format]
]
]
section[
@title[Defining Custom Commands]
@src[extending/command]
@id[custom_command]
]
]
]
chapter[
@title[Troubleshooting]
section[
@title[Generic Errors]
@src[troubleshooting/errors_generic]
]
section[
@title[Parsing Errors]
@src[troubleshooting/errors_parser]
]
section[
@title[Command Errors]
@src[troubleshooting/errors_command]
]
section[
@title[Macro Errors]
@src[troubleshooting/errors_macro]
]
]
]
@backmatter[
appendix[
@title[Command Reference]
@id[cmd_ref]
@src[ref_commands]
]
appendix[
@title[Macro Reference]
@id[macro_ref]
section[
@title[Core Macros]
@src[macros/macros_core]
]
section[
@title[Block Macros]
@src[macros/macros_block]
]
section[
@title[Inline Macros]
@src[macros/macros_inline]
]
section[
@title[Filter Macros]
@id[f_macros]
@src[macros/macros_filters]
]
section[
@title[Structure Macros]
@src[macros/macros_structure]
]
]
appendix[
@title[Configuration Reference]
@id[cfg_ref]
section[
@title[code[document.*]]
@id[cfg_document]
@src[config/document]
]
section[
@title[code[filters.*]]
@id[cfg_filters]
@src[config/filters]
]
section[
@title[code[options.*]]
@id[cfg_options]
@src[config/options]
]
section[
@title[code[output.*]]
@id[cfg_output]
@src[config/output]
]
]
appendix[
@title[Changelog]
@src[changelog]
]
]
]