1.0.3 • Published 8 years ago
gitbook-plugin-karah-toc v1.0.3
What's this
Copy from this package.
Changes:
- fixed some css bug.
I'm going to maintain this one for my own use.
Install
Add the plugin to your book.json
:
{
"plugins": [ "page-toc" ],
"pluginsConfig": {
}
}
Configuration
selector
: CSS selector to select the elements to put anchors on- Default:
.markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4
, which include headings from level 1 to level 4.
- Default:
position
: Position of TOC- Allowed values:
before-first
(default) : Before the first headingtop
: On top of the page
- Allowed values:
CSS Customization
The TOC elements have class attribute .page-toc
. You can override the styles in styles/website.css
.