https://github.com/maiscrm/vuepress-plugin-exportpdf
https://github.com/maiscrm/vuepress-plugin-exportpdf
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/maiscrm/vuepress-plugin-exportpdf
- Owner: maiscrm
- Created: 2020-07-20T07:51:30.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T10:31:12.000Z (over 5 years ago)
- Last Synced: 2025-04-13T15:13:38.358Z (about 1 year ago)
- Language: JavaScript
- Size: 875 KB
- Stars: 2
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# vuepress-plugin-exportpdf
Inspired by [vuepress-plugin-export](https://github.com/ulivz/vuepress-plugin-export).
> This plugin requires VuePress >= **1.0.0-alpha.44**.
## Features
- Merge all of your pages automatically.
- Create outline by your sidebar.
- Inject page numbers.
## Install
```shell
npm i @maiscrm/vuepress-plugin-exportpdf
```
## Usage
Using this plugin:
```javascript
// .vuepress/config.js
module.exports = {
plugins: [
[
'@maiscrm/vuepress-plugin-exportpdf',
{
themeConfig: {
navbar: false,
nextLinks: false,
prevLinks: false,
sidebar: [
'docs/',
{
title: 'Plugin',
children: [
'docs/plugin/',
'docs/plugin/using-a-plugin'
]
}
]
}
}
]
]
}
```
Then run:
```bash
vuepress exportpdf [path/to/your/docs]
```
## Development
```bash
# Note that this package is powered by [puppeteer](https://github.com/GoogleChrome/puppeteer), if you are in a mysterious wall, consider setting this [environment variables](https://github.com/GoogleChrome/puppeteer/blob/v1.11.0/docs/api.md#environment-variables) before installation.
export PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors
yarn install
yarn exportpdf
```