vuepress-plugin-autonav

0.1.3 • Public • Published

VuePress Plugin Auto Nav Links

Auto nav links plugin for VuePress 1.x

Build Status npm version Greenkeeper badge MIT License

What

Auto populates themeConfig.nav with top level pages if it's not already set.

Using a page frontmatter you can:

  • Enable/disable adding a link to the navbar - a typical would be if you don't want to add the home page
  • Page order

Install

$ npm install -D vuepress-plugin-autonav
 
# or 
 
$ yarn add -D vuepress-plugin-autonav

Usage

Add vuepress-plugin-autonav in your site or theme config file.

See official docs on using a plugin

// .vuepress/config.js
// or
// .vuepress/theme/index.js
 
// set your global autonav options - override in page frontmatter `autonav`
const autonav_options = {
  enable: true
};
 
module.exports = {
  plugins: [
    [ 'autonav', autonav_options ]
  ]
}

Page frontmatter

---
 
title: Page Title
 
autonav:
  enable: true
  order: -1
 
---
 

Reference

Related Plugins

License

MIT © webmasterish

Package Sidebar

Install

npm i vuepress-plugin-autonav

Weekly Downloads

4

Version

0.1.3

License

MIT

Unpacked Size

8.81 kB

Total Files

4

Last publish

Collaborators

  • webmasterish