0.1.4 • Published 4 years ago

vuepress-plugin-separate-pages v0.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

VuePress Plugin Separate pages

Separate pages plugin for VuePress 1.x

What

This is a VuePress plugin which shows content of current header by hashtag from location

Rules

There is exactly one basic rule to follow:

  • Header tags like h1, h2, h3, h4 (#, ##, ###, ####) should not be inside html elements, for example <div class="notranslate"><h2>Some header</h2></div> will not work

Install

$ npm install vuepress-plugin-separate-pages

# or

$ yarn add vuepress-plugin-separate-pages

Usage

Add separate-pages in your site config file.

See official docs on using a plugin

// .vuepress/config.js

module.exports = {
  plugins: [
    [ 'separate-pages' ]
  ]
}

Options

See Plugin Option API official docs

alwaysVisibleBlocks - list of blocks described by css rules. These blocks will always be visible.

// .vuepress/config.js

module.exports = {
  plugins: [
    [ 'separate-pages', { alwaysVisibleBlocks: ['#disqus_thread'] } ]
  ]
}

Reference

License

MIT ©

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago