forked from dlang/dlang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
html.ddoc
431 lines (411 loc) · 8.59 KB
/
html.ddoc
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
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
_=General macros for HTML generation. Even predefined macros are present
here for completeness. Macros defer wherever possible to style classes.
_=Simple tags, ordered alphabetically
A = <a href="$1">$+</a>
ADEF = <a name="$0"></a>
AHTTP = <a href="http://$1">$+</a>
AHTTPS = <a class="https" href="https://$1">$+</a>
ALOCAL = <a href="#$1">$+</a>
BIG = $(EMC big, $0)
BR = <br>
CAPTION = $(T caption, $0)
CHECKMARK = ✔
DD = $(T dd, $0)
DIV = <div $1>$+</div>
DIVC = $(TC div, $1, $+)
DIVCID = $(DIV class="$1" id="$2", $3)
DIVID = $(DIV id="$1", $+)
DL = $(T dl, $0)
DOUBLEQUOTE = $(LDQUO)$0$(RDQUO)
DT = $(T dt, $0)
EMC = $(TC em, $1, $+)
ENUMERATE = $(OL $(ITEMS_HELPER $1, $+))
GREATER = >
ITEMIZE = $(UL $(ITEMS_HELPER $1, $+))
ITEMS_HELPER = $(LI $1)$(ITEMS_HELPER $+)
H1 = $(T h1, $0)
H2 = $(T h2, $0)
H3 = $(T h3, $0)
H4 = $(T h4, $0)
H5 = $(T h5, $0)
HR = <hr>
I = $(T i, $0)
LI = $(T li, $0)
LESS = <
OL = $(T ol, $0)
P = $(T p, $0)
PRE = $(T pre, $0)
SCRIPT = <script type="text/javascript">$0</script>
SINGLEQUOTE = $(LSQUO)$0$(RSQUO)
SMALL = $(T small, $0)
SPAN = <span $1>$+</span>
SPANC = $(TC span, $1, $+)
SPANID = $(SPAN id="$1", $+)
SUBSCRIPT = $(T sub, $0)
SUPERSCRIPT = $(T sup, $0)
TABLE = $(T table, $0)
TABLEC = $(TC table, $1, $+)
T=<$1>$+</$1>
TC=<$1 class="$2">$(TAIL $+)</$1>
TD = $(T td, $0)
TD_HELPER = $(TD $1)$(TD_HELPER $+)
TH_HELPER = $(TH $1)$(TH_HELPER $+)
THEAD = $(TR $(TH_HELPER $1, $+))
TR = $(T tr, $0)
TT = $(EMC tt, $0)
U = $(EMC u, $0)
UL = $(T ul, $0)
_=
_=Defining anchors and linking
LINK = $(A $0, $0)
LINK2 = $(A $1, $+)
HTTP = $(LINK2 http://$1,$2)
HTTPS = $(LINK2 https://$1,$2)
WEB = $(HTTP $1,$2)
_=
_=Colors
RED = $(SPAN style="color:red", $0)
GREEN = $(SPAN style="color:green", $0)
BLUE = $(SPAN style="color:blue", $0)
YELLOW = $(SPAN style="color:yellow", $0)
BLACK = $(SPAN style="color:black", $0)
WHITE = $(SPAN style="color:white", $0)
_=
_=Explanatory stuff of the kind "Throws: blah" or "Returns:
blah". Note that if you want to make a SPAN-like (brief) explanation,
you can do it with the DIV block using "display: inline-block;", see
e.g. http://stackoverflow.com/questions/1611065/span-vs-div-inline-block
DDOC_EXPLANATORY=$(DIVC explanatory, $(SPANC explanation_item, $1:) $(DIVC $1, $+))
_=
_=Predefined D-related stuff
D_CODE = $(TC pre, d_code, $0)
D_COMMENT = $(SPANC d_comment, $0)
D_STRING = $(SPANC d_string, $0)
D_KEYWORD = $(SPANC d_keyword, $0)
D_PSYMBOL = $(SPANC d_psymbol, $0)
D_PARAM = $(SPANC d_param, $0)
_=
_=Main entry point
DDOC = $(T html,
$(T head,
<META http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="css/html.css" />
$(T title, $(TITLE))
)
$(T body, $(H1 $(TITLE))$(BODY)))
_=
_=DDoc-related stuff
DDOC_COMMENT = <!--$0-->
DDOC_DECL = $(DT $(BIG $0))
DDOC_DECL_DD = $(DD $0)
DDOC_DITTO = $(BR)$0
DDOC_SECTIONS = $0
DDOC_SUMMARY = $0$(BR)$(BR)
DDOC_DESCRIPTION = $0$(BR)$(BR)
DDOC_AUTHORS = $(B Authors:)$(BR)
$0$(BR)$(BR)
DDOC_BUGS = $(RED BUGS:)$(BR)
$0$(BR)$(BR)
DDOC_COPYRIGHT = $(B Copyright:)$(BR)
$0$(BR)$(BR)
DDOC_DATE = $(B Date:)$(BR)
$0$(BR)$(BR)
DDOC_DEPRECATED = $(RED Deprecated:)$(BR)
$0$(BR)$(BR)
DDOC_EXAMPLES = $(B Examples:)$(BR)
$0$(BR)$(BR)
DDOC_HISTORY = $(B History:)$(BR)
$0$(BR)$(BR)
DDOC_LICENSE = $(B License:)$(BR)
$0$(BR)$(BR)
DDOC_RETURNS = $(B Returns:)$(BR)
$0$(BR)$(BR)
DDOC_SEE_ALSO = $(B See Also:)$(BR)
$0$(BR)$(BR)
DDOC_STANDARDS = $(B Standards:)$(BR)
$0$(BR)$(BR)
DDOC_THROWS = $(B Throws:)$(BR)
$0$(BR)$(BR)
DDOC_VERSION = $(B Version:)$(BR)
$0$(BR)$(BR)
DDOC_SECTION_H = $(B $0)$(BR)$(BR)
DDOC_SECTION = $0$(BR)$(BR)
DDOC_MEMBERS = $(DL $0)
DDOC_MODULE_MEMBERS = $(DDOC_MEMBERS $0)
DDOC_CLASS_MEMBERS = $(DDOC_MEMBERS $0)
DDOC_STRUCT_MEMBERS = $(DDOC_MEMBERS $0)
DDOC_ENUM_MEMBERS = $(DDOC_MEMBERS $0)
DDOC_TEMPLATE_MEMBERS = $(DDOC_MEMBERS $0)
DDOC_PARAMS = $(B Params:)$(BR)
$(TABLE $0)$(BR)
DDOC_PARAM_ROW = $(TR $0)
DDOC_PARAM_ID = $(TD $0)
DDOC_PARAM_DESC = $(TD $0)
DDOC_BLANKLINE = $(BR)$(BR)
_=
DDOC_ANCHOR = $(ADEF $1)
DDOC_PSYMBOL = $(U $0)
DDOC_KEYWORD = $(B $0)
DDOC_PARAM = $(I $0)
_=
_=Generic blurb to describe C header bindings
C_HEADER_DESCRIPTION = This module contains bindings to selected types and
functions from the standard C header $(HTTP $1, $(D $(LESS)$2$(GREATER))). Note that this
is not automatically generated, and may omit some types/functions from the
original C header.
_=
_=HTML named entities, ordered approximately as in http://dlang.org/entity.html
QUOT = "
AMP = &
PERCENT = %
_=
OELIG_CAP = Œ
OELIG = œ
SCARON_CAP = Š
SCARON = š
YUML = Ÿ
CIRC = ˆ
TILDE = ˜
ENSP =  
EMSP =  
THINSP =  
ZWNJ = ‌
ZWJ = ‍
LRM = ‎
RLM = ‏
NDASH = –
MDASH = —
LSQUO = ‘
RSQUO = ’
SBQUO = ‚
LDQUO = “
RDQUO = ”
BDQUO = „
DAGGER = †
DAGGER_CAP = ‡
PERMIL = ‰
LSAQUO = ‹
RSAQUO = ›
EURO = €
NBSP =
IEXCL = ¡
CENT = ¢
POUND = £
CURREN = ¤
YEN = ¥
BRVBAR = ¦
SECT = §
UML = ¨
COPY = ©
REG = ®
ORDF = ª
LAQUO = «
NOT = ¬
SHY = ­
REG = ®
MACR = ¯
DEG = °
PLUSMN = ±
SUP2 = ²
SUP3 = ³
ACUTE = ´
MICRO = µ
PARA = ¶
MIDDOT = ·
CEDIL = ¸
SUP1 = ¹
ORDM = º
RAQUO = »
FRAC14 = ¼
FRAC12 = ½
FRAC34 = ¾
IQUEST = ¿
AGRAVE_CAP = À
AACUTE_CAP = Á
ACIRC_CAP = Â
ATILDE_CAP = Ã
AUML_CAP = Ä
ARING_CAP = Å
AELIG_CAP = Æ
CCEDIL_CAP = Ç
EGRAVE_CAP = È
EACUTE_CAP = É
ECIRC_CAP = Ê
EUML_CAP = Ë
IGRAVE_CAP = Ì
IACUTE_CAP = Í
ICIRC_CAP = Î
IUML_CAP = Ï
ETH_CAP = Ð
NTILDE_CAP = Ñ
OGRAVE_CAP = Ò
OACUTE_CAP = Ó
OCIRC_CAP = Ô
OTILDE_CAP = Õ
OUML_CAP = Ö
TIMES = ×
OSLASH_CAP = Ø
UGRAVE_CAP = Ù
UACUTE_CAP = Ú
UCIRC_CAP = Û
UUML_CAP = Ü
YACUTE_CAP = Ý
THORN_CAP = Þ
SZLIG = ß
AGRAVE = à
AACUTE = á
ACIRC = â
ATILDE = ã
AUML = ä
ARING = å
AELIG = æ
CCEDIL = ç
EGRAVE = è
EACUTE = é
ECIRC = ê
EUML = ë
IGRAVE = ì
IACUTE = í
ICIRC = î
IUML = ï
ETH = ð
NTILDE = ñ
OGRAVE = ò
OACUTE = ó
OCIRC = ô
OTILDE = õ
OUML = ö
DIVIDE = ÷
OSLASH = ø
UGRAVE = ù
UACUTE = ú
UCIRC = û
UUML = ü
YACUTE = ý
THORN = þ
YUML = ÿ
FNOF = ƒ
ALPHA_CAP = Α
BETA_CAP = Β
GAMMA_CAP = Γ
DELTA_CAP = Δ
EPSILON_CAP = Ε
ZETA_CAP = Ζ
ETA_CAP = Η
THETA_CAP = Θ
IOTA_CAP = Ι
KAPPA_CAP = Κ
LAMBDA_CAP = Λ
MU_CAP = Μ
NU_CAP = Ν
XI_CAP = Ξ
OMICRON_CAP = Ο
PI_CAP = Π
RHO_CAP = Ρ
SIGMA_CAP = Σ
TAU_CAP = Τ
UPSILON_CAP = Υ
PHI_CAP = Φ
CHI_CAP = Χ
PSI_CAP = Ψ
OMEGA_CAP = Ω
ALPHA = α
BETA = β
GAMMA = γ
DELTA = δ
EPSILON = ε
ZETA = ζ
ETA = η
THETA = θ
IOTA = ι
KAPPA = κ
LAMBDA = λ
MU = μ
NU = ν
XI = ξ
OMICRON = ο
PI = π
RHO = ρ
SIGMAF = ς
SIGMA = σ
TAU = τ
UPSILON = υ
PHI = φ
CHI = χ
PSI = ψ
OMEGA = ω
THETASYM = ϑ
UPSIH = ϒ
PIV = ϖ
BULL = •
HELLIP = …
PRIME = ′
PRIME_CAP = ″
OLINE = ‾
FRASL = ⁄
WEIERP = ℘
IMAGE = ℑ
REAL = ℜ
TRADE = ™
ALEFSYM = ℵ
LARR = ←
UARR = ↑
RARR = →
DARR = ↓
HARR = ↔
CRARR = ↵
LARR_CAP = ⇐
UARR_CAP = ⇑
RARR_CAP = ⇒
DARR_CAP = ⇓
HARR_CAP = ⇔
FORALL = ∀
PART = ∂
EXIST = ∃
EMPTY = ∅
NABLA = ∇
ISIN = ∈
NOTIN = ∉
NI = ∋
PROD = ∏
SUM = ∑
MINUS = −
LOWAST = ∗
RADIC = √
PROP = ∝
INFIN = ∞
ANG = ∠
AND = ∧
OR = ∨
CAP = ∩
CUP = ∪
INT = ∫
THERE4 = ∴
SIM = ∼
CONG = ≅
ASYMP = ≈
NE = ≠
EQUIV = ≡
LE = ≤
GE = ≥
SUB = ⊂
SUP = ⊃
NSUB = ⊄
SUBE = ⊆
SUPE = ⊇
OPLUS = ⊕
OTIMES = ⊗
PERP = ⊥
SDOT = ⋅
LCEIL = ⌈
RCEIL = ⌉
LFLOOR = ⌊
RFLOOR = ⌋
LOZ = ◊
SPADES = ♠
CLUBS = ♣
HEARTS = ♥
DIAMS = ♦
LANG = ⟨
RANG = ⟩
_=