Skip to content

Add GitBook blocks for Bootstrap-like panels.

Notifications You must be signed in to change notification settings

CERN/gitbook-plugin-panels

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Panels

This adds Bootstrap panels, Software Carpentry style, to GitBook.

The styles:

Command Style Icon Hidden
{% panel "title" %} default null false
{% prereq "title" %} warning rocket false
{% callout "title" %} primary info-circle false
{% challenge "title" %} success square-o false
{% solution "title" %} danger check-square-o true
{% objectives "title" %} warning line-chart false
{% keypoints "title" %} success key false
{% discussion "title" %} info bell true

The solution block can be nested inside the challenge block, but in that case, you should not include {% endsolution %} (that's just how nested GitBook blocks work). Nested solution blocks use a line-chart icon by default.

The options:

  • style: One of default, primary, success, info, warning, or danger
  • icon: A Font Awesome icon
  • hidden: Starts collapsed if true

Example:

{% callout "My Callout Title", hidden=true %}
This callout starts collapsed.
{% endcallout %}

About

Add GitBook blocks for Bootstrap-like panels.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.7%
  • CSS 44.3%