Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

tchiotludo/vuepress-plugin-child-toc

Repository files navigation

vuepress-plugin-child-toc

Display child page table of content on your vuepress documentation

license npm npm downloads Dependency Status devDependency Status

Requirements

  • This plugin requires VuePress >= 1.0.0.

Features

Add a <ChildTableOfContents /> component that you can use in your markdown in order to get a Table of Contents for all the child page (meaning url starting with the current page url).

Install

npm i vuepress-plugin-child-toc

Usage

Using this plugin:

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

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

# All child page table of contents
<ChildTableOfContents />

# All child page table of contents with max 2 max distance level
<ChildTableOfContents :max="2"/>

# Add internal, anchor link in the table of contents
<ChildTableOfContents :header="true"/>

# Display Child TOC for this specific page
<ChildTableOfContents pageUrl="/blogs/"/>

Inspiration

Largely inspired from plugin vuepress-plugin-global-toc

License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published