🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

grunt-assemble-toc

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-assemble-toc

Assemble middleware for adding a Table of Contents (TOC) to any HTML page.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

grunt-assemble-toc NPM version

Assemble middleware for adding a Table of Contents (TOC) to any HTML page.

Quickstart

In the command line, run:

npm install grunt-assemble-toc --save-dev

Next, to register the plugin with Assemble in your project's Gruntfile you can either specify the direct path to the plugin(s) (e.g. ./path/to/plugins/*.js), or if installed via npm, make sure the plugin is in the devDependencies of your project.js package.json, and simply add the module's name to the plugins option:

assemble: {
  options: {
    plugins: ['grunt-assemble-toc', 'other/plugins/*.js']
  }
}

Visit the plugins docs for more info or for help getting started.

Options

toc

Type: String Default: 'toc'

Tag to determine where the table of contents is located

modifier

Type: String Default: ''

CSS class used in the wrapper ul for the table of contents.

Usage Examples

assemble: {
  options: {
    plugins: ['grunt-assemble-toc'],
    toc: {
      id: 'toc',
      modifier: ''
    }
  }
}

Assemble plugins

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Brian Woodward

License

Copyright © 2015 Brian Woodward Released under the MIT license.

This file was generated by verb-cli on September 24, 2015.

Keywords

assemble

FAQs

Package last updated on 25 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts