kubernetes-handbook/gitbook-plugin-prism-themes
rootsongjc cd11aa375a deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
..
demo deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
.npmignore deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
LICENSE deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
README.md deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
index.js deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00
package.json deploy: 1a5e3f08c0 2022-02-22 08:00:11 +00:00

README.md

gitbook-plugin-prism-themes

This repository is gitbook plugin for prism-themes.

It provides additional themes when using gitbook-plugin-prism

Usage

  1. Add the plugin to your book.json, and disable default GitBook code highlighting:

    {
      "plugins": ["-highlight", "prism", "prism-themes"]
    }
    
  2. Install the plugins

    gitbook install
    
  3. Update gitbook-plugin-prism's configuration, override default styles:

    "pluginsConfig": {  
      "prism": {
        "css": [
          "prism-themes/themes/prism-duotone-dark.css"
        ]
      }
    }
    

    All css files must reside in the same folder. The css file's root path is ${yourBookDir}/node_modules/. The NPM module prism-themes is an dependency of this plugin.

License

Apache 2