Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitbook-plugin-customtheme

Custom theme plugin enables to inject css and js into the html body of the gitbook. Thus custom Styling or behaviour to the gitbook can be integrated by passing the styles along with configurations.

Usage Example

  1. Install the plugin Install the plugin from NPM registry, by executing the command 'npm install --save gitbook-plugin-customtheme'

  2. Add the Plugin "plugins": ["customtheme"]

  3. Configuring the plugin

      "pluginsConfig": {
         "customtheme": {
           "css": ['custom/css/app.css'], // custom is a folder on the root level
           "js": ['custom/js/app.js']
         }
      }
    

Added Support to additional configuration options,

  1. Add rule to ignore Language Selection page for including resources, "pluginsConfig": { "customtheme": { "css": ['custom/css/app.css'], // custom is a folder on the root level "js": ['custom/js/app.js'], "options": { "ignoreChooseLang": true } } }

Pass the list of files to be added on to the body of the gitbook in the configuration section.

About

gitbook-plugin

Resources

Stars

10 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages