Skip to content

weironghuang31/gitbook-plugin-bootstrap-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

use Bootstrap grip in gitbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published