@snowdog/vuepress-plugin-pdf-export

1.1.0 • Public • Published

@snowdog/vuepress-plugin-pdf-export

Vuepress plugin for exporting site as PDF

Features

  • Exports whole Vuepress based page as a single PDF file
  • Applies styles to hide UI elements like navigation or sidebar
  • Doesn't other languages like Java to run
  • Designed to work well in headless environments like CI runners

Config options

Usage

Using this plugin:

// in .vuepress/config.js
module.exports = {
  plugins: ['@snowdog/vuepress-plugin-pdf-export']
}

Then run:

vuepress export [path/to/your/docs]

Tips

To run this plugin on Gitlab CI you may want to run Chrome with no-sandbox flag. Details

module.exports = {
  plugins: [
    ['@snowdog/vuepress-plugin-pdf-export', {
      puppeteerLaunchOptions: {
        args: ['--no-sandbox', '--disable-setuid-sandbox']
      }
    }]
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @snowdog/vuepress-plugin-pdf-export

Weekly Downloads

63

Version

1.1.0

License

MIT

Unpacked Size

7.82 kB

Total Files

11

Last publish

Collaborators

  • zwolin
  • piotr.krusicki
  • pawel.kajdasz