gitbook-plugin-customtheme

0.2.1 • Public • Published

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.

Package Sidebar

Install

npm i gitbook-plugin-customtheme

Weekly Downloads

1

Version

0.2.1

License

ISC

Last publish

Collaborators

  • wallprodigy