UNPKG

@k9n/scully-plugin-toc

Version:

This plugin for scully provides a postRenderer to generate a table of contents for the rendered route content

15 lines (11 loc) 436 B
import { registerPlugin /*, getPluginConfig*/ } from '@scullyio/scully'; import { TocPluginName } from './constants'; import { tocPlugin } from './toc'; import { validator } from './validator'; export { TocConfig} from './interfaces'; export { TocPluginName} from './constants'; /** * register the plugin */ registerPlugin('postProcessByHtml', TocPluginName, tocPlugin, validator); export const getTocPlugin = () => TocPluginName;