DITA Bootstrap Extension
A plug-in for DITA Open Toolkit that extends the DITA Bootstrap HTML output with additional features from the Bootstrap Extension library.
Installing
Use the dita command to add the DITA Bootstrap Extension plug-in to your DITA Open Toolkit installation:
dita install fox.jason.extend.css
dita install net.infotexture.dita-bootstrap
dita install net.infotexture.dita-bootstrap.extension
dita --install fox.jason.extend.css
dita --install net.infotexture.dita-bootstrap
dita --install net.infotexture.dita-bootstrap.extension
dita --install https://github.com/jason-fox/fox.jason.extend.css/archive/master.zip
dita --install https://github.com/infotexture/dita-bootstrap/archive/master.zip
dita --install https://github.com/infotexture/dita-bootstrap.extension/archive/master.zip
Using
Specify the html5-bootstrap format when building output with the dita command:
dita --input=path/to/your.ditamap --format=html5-bootstrap
Optional elements
The optional toTop
button can be included with the following parameter:
- to-top.include – add a toTop button that scrolls to the top of the page
Common Bootstrap utility classes
The HTML output can be annotated with common Bootstrap utility classes using additional command line parameters:
- bootstrap.css.to-top – common Bootstrap utility classes for the toTop button
Note: Within the sample documentation, the texts describing the usage of each component have been
copied directly from the
official Bootstrap Extension
documentation, however DITA markup is used throughout the examples describing how to implement these
components correctly using the DITA
@outputclass
attribute. This text is therefore a derivative
of Bootstrap Extension AKK IT, Inc, and used under
MIT.