forked from infotexture/dita-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
executable file
·393 lines (392 loc) · 10.8 KB
/
plugin.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://www.dita-ot.org/rng/plugin.rnc" type="application/relax-ng-compact-syntax"?>
<!-- Copyright © 2017 · infotexture · Roger W. Fienhold Sheen -->
<!-- See the accompanying LICENSE file for applicable license -->
<plugin id="net.infotexture.dita-bootstrap">
<feature extension="package.version" value="5.3.4"/>
<require plugin="org.dita.html5"/>
<require plugin="fox.jason.extend.css"/>
<!-- extension points -->
<extension-point
id="dita.xsl.html5-bootstrap"
name="HTML5 Bootstrap XSLT import"
/>
<transtype
name="html5-bootstrap"
extends="html5"
desc="HTML5 with extensible Bootstrap style"
>
<param
name="args.breadcrumbs"
desc="Specifies whether to generate breadcrumb links."
type="enum"
>
<val>yes</val>
<val default="true">no</val>
</param>
<param
name="bootstrap.breadcrumb.divider"
type="string"
desc="Divider for bootstrap breadcrumbs"
/>
<param
name="nav-toc"
type="enum"
desc="Specifies whether to generate a navigation TOC in topic pages."
>
<val desc="No TOC">none</val>
<val
default="true"
desc="Partial TOC that shows the current topic"
>partial</val>
<val desc="Full TOC">full</val>
<val
desc="Bootstrap styled partial TOC with descendents in a list-group"
>list-group-partial</val>
<val
desc="Bootstrap styled full TOC using a list-group"
>list-group-full</val>
<val
desc="Bootstrap styled partial TOC with descendents in nav-pills"
>nav-pill-partial</val>
<val
desc="Bootstrap styled full ToC using indented nav-pills"
>nav-pill-full</val>
<val desc="Bootstrap styled collapsible menu">collapsible</val>
</param>
<param
name="icons.cdn.path"
type="file"
desc="Specifies the URL for a icon fonts stylesheet CDN"
/>
<param
name="bidi.include"
desc="Specifies whether to include bidirectional CSS"
type="enum"
>
<val default="true">yes</val>
<val>no</val>
</param>
<param
name="icons.include"
desc="Specifies whether to include an icon fonts stylesheet in the header"
type="enum"
>
<val>yes</val>
<val default="true">no</val>
</param>
<param
name="menubar-toc.include"
desc="Specifies whether to include a menu bar at the top of the page"
type="enum"
>
<val>yes</val>
<val default="true">no</val>
</param>
<param
name="toc-spacer.padding"
desc="Specifies the vertical padding to add to the side menu"
type="enum"
>
<val default="true">0</val>
<val>1</val>
<val>2</val>
<val>3</val>
<val>4</val>
<val>5</val>
</param>
<param
name="popovers.include"
desc="Specifies whether to enable popovers and tooltips"
type="enum"
>
<val default="true">yes</val>
<val>no</val>
</param>
<param
name="dark.mode.include"
desc="Specifies whether to enable dark mode toggling"
type="enum"
>
<val default="true">yes</val>
<val>no</val>
</param>
<param
name="scrollspy-toc"
desc="Specifies whether to include a scrollspy menu"
type="enum"
>
<val default="true">none</val>
<val>list</val>
<val desc="Scrollspy menu using a list-group">list-group</val>
<val desc="Scrollspy menu using indented nav-pills">nav-pill</val>
</param>
<param
name="bootstrap.css.shortdesc"
type="string"
desc="Common Bootstrap classes for DITA <shortdesc> elements"
/>
<param
name="bootstrap.css.codeblock"
type="string"
desc="Common Bootstrap classes for DITA <codeblock> elements"
/>
<param
name="bootstrap.css.topic.title"
type="string"
desc="Common Bootstrap classes for DITA <title> elements within <topic> elements"
/>
<param
name="bootstrap.css.section.title"
type="string"
desc="Common Bootstrap classes for DITA <title> elements within <section> elements"
/>
<param
name="bootstrap.css.card"
type="string"
desc="Bootstrap classes for card components"
/>
<param
name="bootstrap.css.carousel"
type="string"
desc="Bootstrap classes for carousel components"
/>
<param
name="bootstrap.css.carousel.caption"
type="string"
desc="Bootstrap classes for carousel captions"
/>
<param
name="bootstrap.css.carousel.indicators"
type="string"
desc="Bootstrap classes for carousel indicators"
/>
<param
name="bootstrap.css.footer"
type="string"
desc="Bootstrap classes for footers"
/>
<param
name="bootstrap.css.tabs"
type="string"
desc="Bootstrap classes for tabbed dialog components"
/>
<param
name="bootstrap.css.tabs.vertical"
type="string"
desc="Bootstrap classes for vertical tabbed dialog components"
/>
<param
name="bootstrap.css.accordion"
type="string"
desc="Bootstrap classes for accordion components"
/>
<param
name="bootstrap.css.accordion.flush"
type="string"
desc="Bootstrap classes for flush accordion components"
/>
<param
name="bootstrap.css.accessibility.nav"
type="string"
desc="Bootstrap classes for accessibility navigation"
/>
<param
name="bootstrap.css.accessibility.link"
type="string"
desc="Bootstrap classes for accessibility links"
/>
<param
name="bootstrap.css.figure"
type="string"
desc="Bootstrap classes for figures"
/>
<param
name="bootstrap.css.figure.caption"
type="string"
desc="Bootstrap classes for figure captions"
/>
<param
name="bootstrap.css.figure.image"
type="string"
desc="Bootstrap classes for figure images"
/>
<param
name="bootstrap.css.dl"
type="string"
desc="Bootstrap classes for definition lists"
/>
<param
name="bootstrap.css.dt"
type="string"
desc="Bootstrap classes for definition list terms"
/>
<param
name="bootstrap.css.dd"
type="string"
desc="Bootstrap classes for definition list descriptions"
/>
<param
name="bootstrap.css.pagination"
type="string"
desc="Bootstrap classes for pagination components"
/>
<param
name="bootstrap.css.nav.parent"
type="string"
desc="Bootstrap classes for ancestors of active navbar elements"
/>
<param
name="bootstrap.css.table"
type="string"
desc="Bootstrap classes for tables"
/>
<param
name="bootstrap.css.thead"
type="string"
desc="Bootstrap classes for table headers"
/>
<param
name="bootstrap.icon.note"
type="string"
desc="Bootstrap icon for standard notes"
/>
<param
name="bootstrap.icon.attention"
type="string"
desc="Bootstrap icon for attention notes"
/>
<param
name="bootstrap.icon.caution"
type="string"
desc="Bootstrap icon for caution notes"
/>
<param
name="bootstrap.icon.danger"
type="string"
desc="Bootstrap icon for danger notes"
/>
<param
name="bootstrap.icon.fastpath"
type="string"
desc="Bootstrap icon for fastpath notes"
/>
<param
name="bootstrap.icon.important"
type="string"
desc="Bootstrap icon for important notes"
/>
<param
name="bootstrap.icon.notice"
type="string"
desc="Bootstrap icon for notice notes"
/>
<param
name="bootstrap.icon.remember"
type="string"
desc="Bootstrap icon for remember notes"
/>
<param
name="bootstrap.icon.restriction"
type="string"
desc="Bootstrap icon for restriction notes"
/>
<param
name="bootstrap.icon.tip"
type="string"
desc="Bootstrap icon for tips"
/>
<param
name="bootstrap.icon.trouble"
type="string"
desc="Bootstrap icon for trouble notes"
/>
<param
name="bootstrap.icon.warning"
type="string"
desc="Bootstrap icon for warning notes"
/>
<param
name="bootstrap.theme"
desc="Defines a specific custom bootstrap theme to use"
type="enum"
>
<val>cerulean</val>
<val>cosmo</val>
<val>cyborg</val>
<val>darkly</val>
<val>flatly</val>
<val>journal</val>
<val>litera</val>
<val>lumen</val>
<val>lux</val>
<val>materia</val>
<val>minty</val>
<val>morph</val>
<val>none</val>
<val>pulse</val>
<val>quartz</val>
<val>sandstone</val>
<val>simplex</val>
<val>sketchy</val>
<val>slate</val>
<val>solar</val>
<val>spacelab</val>
<val>superhero</val>
<val>united</val>
<val>vapor</val>
<val>yeti</val>
<val>zephyr</val>
</param>
<param
name="bootstrap.sidebar.hdr"
desc="Specifies an XML file that contains custom content for the sidebar header."
type="file"
/>
<param
name="bootstrap.sidebar.ftr"
desc="Specifies an XML file that contains content for the sidebar footer."
type="file"
/>
<param
name="bootstrap.topbar.hdr"
desc="Specifies an XML file that contains content for the topbar header."
type="file"
/>
<param
name="bootstrap.css.container.size"
type="enum"
desc="Defines Bootstrap container class for main layout and menubar-TOC."
>
<val>container</val>
<val>container-sm</val>
<val>container-md</val>
<val>container-lg</val>
<val>container-xl</val>
<val default="true">container-xxl</val>
<val>container-fluid</val>
</param>
</transtype>
<feature extension="ant.import" file="build_dita2html5-bootstrap.xml"/>
<feature extension="extend.css.process" value="dita-bootstrap.css.copy"/>
<feature
extension="dita.conductor.html5.toc.param"
file="insertParameters.xml"
/>
<feature extension="dita.conductor.html5.param" file="insertParameters.xml"/>
<feature extension="dita.xsl.strings" file="cfg/common/vars/strings.xml"/>
<feature extension="depend.preprocess.post" value="bootstrap.scripts.copy"/>
<!-- Offers two additional extension points for dependent plug-ins -->
<extension-point
id="bootstrap.process.pre"
name="Custom Bootstrap pre-processing"
/>
<extension-point
id="bootstrap.process.post"
name="Custom Bootstrap post-processing"
/>
<!-- Add a template file to enable overrides to use extension points -->
<template file="build_dita2html5-bootstrap_template.xml"/>
<template file="xsl/dita2html5-bootstrapImpl_template.xsl"/>
<template file="xsl/dita2html5-legacy-3.0_template.xsl"/>
</plugin>