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
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' ] } ] } } ] ] }...
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...
版本说明: "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/...
npm install vuepress-plugin-netlify-functions#orpnpm add vuepress-plugin-netlify-functions#oryarn add vuepress-plugin-netlify-functions 使用 在vuepress 项目中,或者在一个 vuepress 主题中 // .vuepress/config.[jt]simport{netlifyFunctionsPlugin}from'vuepress-plugin-netlify-functions'exportdefault{// ...plu...
在2.0中,需要引入注册组件插件@vuepress/plugin-register-components const{ registerComponentsPlugin } =require('@vuepress/plugin-register-components'); exportconstplugins: any = [ registerComponentsPlugin({ componentsDir: path.resolve(__dirname,'../../','components'),// 自动注册全局组件, ...
在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...
// 例1module.exports={plugins:[["vuepress-plugin-xxx",{/* options */}]]};// 例2module.exports={plugins:{xxx:{/* options */}}}; 可以看到,如果有参数的话可以这样传递,那么我们定义的插件第一步就是要处理这个参数,当然也可以不接受,如果不接受直接返回一个对象就可以了 ...
1,在编译期扩展页面生成的元数据,如@vuepress/plugin-last-updated; 2,在编译器前后生成额外文件,如@vuepress/plugin-pwa; 3,注入全局 UI 组件,例如:@vuepress/plugin-back-to-top; 4,通过自定义命令扩展 CLI ,如vuepress-plugin-export (opens new window) ...
import{UserPlugins}from'vuepress/config'exportdefault<UserPlugins>[// 复制代码块的插件['vuepress-plugin-code-copy',true],// 阅读进度条的插件'reading-progress',//光标效果的插件['cursor-effects', {size:2,// size of the particle, default: 2shape:'star',// ['star' | 'circle'], // shap...