Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix vuepress cant resolve custom theme under .vuepress/theme #3

Merged
merged 1 commit into from
Apr 14, 2018
Merged

fix: fix vuepress cant resolve custom theme under .vuepress/theme #3

merged 1 commit into from
Apr 14, 2018

Conversation

lazzzis
Copy link
Contributor

@lazzzis lazzzis commented Apr 14, 2018

According to the docs, to use a custom layout, I should create a .vuepress/theme directory in your docs root, and then create a Layout.vue file.

But vuepress throws an error, when I follow this instruction.

I found thethemeDir should be path.resolve(vuepressDir, 'theme'), which would be /.vuepress/theme, instead of path.resolve(sourceDir, 'theme'), which would be /theme/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants