Skip to content

hitman401/gitbook-plugin-customtheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published