Does v2 have the same way of accessing the themeConfig from a Layout.vue that v1 does? #686
-
Hi, Vuepress community! ContextI'm experimenting with making a vuepress2 version of [vuepress-theme-casper](https://github.com/alexander-heimbuch/vuepress-theme-casper]. Current progress is over here Q: Does v2 have the same way of accessing the themeConfig that v1 does?This is where the author sends This is where the author accesses When I've been trying this on the vuepress2-theme-ghost-casper repo, I can't seem to locate where the themeConfig object is stored so vuex can interact with it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey, plz read the docs, we highly recommand you to use composition api. You can use
|
Beta Was this translation helpful? Give feedback.
Hey, plz read the docs, we highly recommand you to use composition api.
You can use
@vuepress/plugin-theme-data
and it'suseThemeData
compoition api to get a reactive themeData.@vuepress/theme-default
can be a demo.