VuePress 2.x plugin exports a PDF 📁.. Latest version: 3.0.3, last published: a year ago. Start using @condorhero/vuepress-plugin-export-pdf-v2 in your project by running `npm i @condorhero/vuepress-plugin-export-pdf-v2`. There are no other projects in
版本说明: "vuepress": "^1.9.7" https://www.npmjs.com/及github上搜索的工具/插件 #1. md文件转pdf #vuepress2pdf 不能使用 https://github.com/chbndrhnns/vuepress2pdf #vuepress-plugin-export https://github.com/ulivz/vuepress-plugin-export #vuepress-plugin-export-pdf https://www.npmjs.com/...
"vuepress-plugin-one-click-copy": "^1.0.2", "vuepress-plugin-thirdparty-search": "^1.0.2", "vuepress-plugin-zooming": "^1.1.7", "vuepress-theme-vdoing": "^1.8.1", "yamljs": "^0.3.0" }, "dependencies": { "busuanzi.pure.js": "^1.0.3", ...
最后,我决定,不讲武德了,直接改 reco 内置的 vuepress-plugin-comments组件源码:1. 修改 vuepress-plugin-comments 源码在 node_modules中找到 vuepress-plugin-comments的代码目录,修改 /.bin/Vssue.vue文件:// 组件加了一行 :issue-id="issueId"<template> <VssueComponent class="vssue-wrapper" :...
exports = (options, ctx) => { return { name: 'vuepress-plugin-code-copy', clientRootMixin: path.resolve(__dirname, 'clientRootMixin.js') } } 在vuepress-plugin-code-copy下新建一个 clientRootMixin.js文件,代码写入: export default { updated() { setTimeout(() => { document.querySelect...
在2.0中,需要引入注册组件插件@vuepress/plugin-register-components const{ registerComponentsPlugin } =require('@vuepress/plugin-register-components'); exportconstplugins: any = [ registerComponentsPlugin({ componentsDir: path.resolve(__dirname,'../../','components'),// 自动注册全局组件, ...
vuepressexport[path/to/your/docs] Config options theme: String puppeteer: Object bundles: Array | Function(Array[PageConfig]) => Array[bundle] bundles[].filter: RegExp | Function(location: string, page: PageConfig) => boolean bundles[].dest: (config: VuepressPluginConfig(https://vuepress.vue...
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' ] } ] } } ] ] }...
我也写了一个小插件,它可以将你的 vuepress 站点下载成一个 pdf 文件:vuepress-plugin-export-site 源码 使用ready 选项 借助puppeteer 和easy-pdf-merge 实现:从上下文中拿到路由信息,然后使用 puppeteer 遍历访问并下载,最后合并成一个大 PDF。 因为需要下载 chromium,所以国内网络受限。我们换成了 puppeteer-cn。
在vuepress-plugin-code-copy下新建一个 CodeCopy.vue 文件,写入代码如下: <template> {{ buttonText }} </template> export default { data() { return { buttonText: 'Copy' } }, methods: { copyToClipboard(el) { this.setClipboard(this.code, this.setText); }, setClipboard(code, cb) { if...