1.0.3 • Published 7 years ago

gitbook-plugin-karah-toc v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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.
  • position : Position of TOC
    • Allowed values:
      • before-first (default) : Before the first heading
      • top : On top of the page

CSS Customization

The TOC elements have class attribute .page-toc. You can override the styles in styles/website.css.