0.0.2 • Published 6 years ago

gitbook-plugin-bootstrap-grid v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Gitbook Bootstrap Grid Plugin

Enable using Bootstrap Grid in your books

Install

open book.json, add bootstrap-grid in "plugins"

{
    "plugins": [ "other-plugin", "bootstrap-grid" ]
}

Usage

Use it like using bootstrap, add row blocks then col blocks.

{% row %}
    {% col %}
        col body 

    {% col %}
        col body 

{% endrow %}

col blocks has one argument which is bootstrap col variants like col-size-n. The the size-n as the argument. If the argument is undefined then the class is col

{% row %}
    {% col "lg-6" %}
        col body 

    {% col "lg-6" %}
        col body 
{% endrow %}

The arguments of blocks have to add "", otherwise the value will be NaN