Skip to content

sylvainpolletvillard/vuepress-plugin-global-toc

Repository files navigation

vuepress-plugin-global-toc

NPM version NPM downloads

This plugin requires VuePress >= 1.0.0. VuePress 2 is not supported

Features

  • Add a <GlobalTableOfContents /> component that you can use in your markdown instead of [[toc]] to get a global Table of Contents, i.e. a table of contents that covers the entire vuepress website.
  • Internally uses the same function that retrieves the items in the sidebar

Install

npm i vuepress-plugin-global-toc

Usage

Using this plugin:

// .vuepress/config.js
module.exports = {
  plugins: ['vuepress-plugin-global-toc']
}

then add your table of components where you please in your markdown pages:

# Table of contents

<GlobalTableOfContents />

About

A vuepress 1.x plugin to add a global table of contents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published