gitbook-plugin-prism-ASH
v0.0.1
Published
Gitbook plugin for atelierbram/syntax-highlighting based on gitbook-plugin-prism.
Downloads
5
Readme
gitbook-plugins-prism-ASH
Gitbook plugin for atelierbram/syntax-highlighting (ab. ASH) base on gitbook-plugin-prism.
It provides additional themes when using gitbook-plugin-prism。
To view atelierbram/syntax-highlighting prism demo, click here.
Usage
Add the plugin to your
book.json
, and disable default GitBook code highlighting:{ "plugins": ["-highlight", "prism", "prism-ASH"] }
Install the plugins
gitbook install
Update
gitbook-plugin-prism
's configuration, override default styles:"pluginsConfig": { "prism": { "css": [ "syntax-highlighting/assets/css/prism/prism-base16-google.light.css" ] } }
All css files must reside in the same folder. The css file's root path is
${yourBookDir}/node_modules/
. The NPM modulesyntax-highlighting
is an dependency of this plugin.
License
Apache 2