VuePress

Automatically add new posts to the Sidebar

倾然丶 夕夏残阳落幕 提交于 2019-12-12 19:06:56
问题 I'm using VuePress and NetlifyCMS as Content Management. I have 3 collections ( design , front-end and back-end ) which contains an indefinite number of pages. Those pages are created through the NetlifyCMS dashboard and are added to the defined folder. New design pages are added to the design folder. New front-end pages are added to the front-end folder. [...] This works fine but I'm facing an issue. Since my new pages are not defined in the sidebar config, they are not available from the

How to add vuetify to default vuepress theme

无人久伴 提交于 2019-12-08 10:50:27
问题 Is it possible to add vuetify to default vuepress theme ? I just need to add few components to default theme however it would be nice to use the vuetify for handling forms within my components. I have found a custom vuepress theme which uses a vuetify, however I would prefer to use default vuepress theme. Another option is to eject the default theme and add the vuetify to it. However I would prefer not to eject the default theme just add vuetify to it. 回答1: The easiest way would be to use the

vuepress - How to custom location of components directory '.vuepress/components' with register-components?

让人想犯罪 __ 提交于 2019-12-07 09:16:07
问题 I tried to add custom directory of components in vuepress with plugin register/components but it seems not possible. I tried with module.exports = { title: 'Hello VuePress', description: 'Just playing around', plugins: [ [ 'register-components', { componentDir: '../components' } ] ] } with this architecture (I want to select "components" directory) But it seem doesn't work because the component is not recognized I think that I wrote well my component in my base-button.md Is that someone could

vuepress - How to custom location of components directory '.vuepress/components' with register-components?

允我心安 提交于 2019-12-05 11:56:49
I tried to add custom directory of components in vuepress with plugin register/components but it seems not possible. I tried with module.exports = { title: 'Hello VuePress', description: 'Just playing around', plugins: [ [ 'register-components', { componentDir: '../components' } ] ] } with this architecture (I want to select "components" directory) But it seem doesn't work because the component is not recognized I think that I wrote well my component in my base-button.md Is that someone could help me to tell me steps to get there? Thanks a lot You can register components globally in enhanceApp

fontawesome error “Could not find one or more icon”

笑着哭i 提交于 2019-12-03 17:39:05
问题 I followed https://fontawesome.com/how-to-use/on-the-web/using-with/vuejs. But when use it like: import { library } from '@fortawesome/fontawesome-svg-core' import { faBars } from '@fortawesome/free-solid-svg-icons' import { faTwitter, faFacebook, faStackOverflow, faGithub } from '@fortawesome/free-brands-svg-icons' import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' ... library.add(faBars, faTwitter, faFacebook, faStackOverflow, faGithub ) Vue.component('font-awesome-icon',

使用vuepress写项目帮助文档

余生颓废 提交于 2019-11-29 21:40:35
vuepress 官网 vuepress 是使用vue驱动的静态网站生成器,与Docsify 不一样的是编译它后是静态网页可以直接拷贝到其它项目中使用。 目录结构 docs:用于存储markdown文件 docs.vuepress:用于存储vuepress配置文件,样式,以及公共文件 docs\demo:非固定名称,存储markdown的二级目录,可以有多个 docs\images:非固定名称,存储markdown中使用的图片,不能放到二级目录中否则编译中会被忽略 docs[ README.md ]( http://README.md ) : 文档首页,加入部分特殊语法的markdown README特殊部分如下,其它的随意。 **actionLink:**点击按钮后进入的页面。 --- home: true heroImage: actionText: 快速开始 → actionLink: /demo/test1/ features: - title:title1 details: details1 - title: title2 details: details2 - title: title3 details: details3 footer: MIT Licensed | Copyright © 2019-d --- 配置说明 重要配置说明: *. dest