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

Theme development onboarding #56

Closed
MartinMuzatko opened this issue Apr 15, 2018 · 5 comments
Closed

Theme development onboarding #56

MartinMuzatko opened this issue Apr 15, 2018 · 5 comments

Comments

@MartinMuzatko
Copy link
Contributor

Hello.

I'm trying to get started with a custom theme, but I really would love to just tinker with the existing theme and adapt it to my needs, without starting entirely from scratch.

Is there a way to load the default theme into .vuepress? Preferably via a terminal command provided via vuepress.
But I guess doing a sparse checkout of a repo will do it too for now.

@MartinMuzatko
Copy link
Contributor Author

MartinMuzatko commented Apr 15, 2018

Just tried - this does not work, because the default theme does not work as standalone and relies on some files in e.g. ../app

Having the default theme as standalone in another repo would be awesome

@yyx990803
Copy link
Member

Yeah, that's a good idea actually. Will make it possible in next release.

@rafalolszewski94
Copy link

Seems like it's achievable with vuepress eject

E.g.:
vuepress eject docs would eject default theme into your_project/docs/.vuepress/theme/

@MartinMuzatko
Copy link
Contributor Author

MartinMuzatko commented Apr 16, 2018

@rafalolszewski94 I think this this was just built into vuepress, but this is not done yet, I believe, as the theme is not yet available as standalone. I still get errors about @import '~@temp/override.styl'

Full vuepress dev log:
https://gist.github.com/MartinMuzatko/87b3a102801de88097c09715fd679f82

Maybe this is related to your issue: #77

@rafalolszewski94
Copy link

I get this error only with CI, locally it runs smooth with default theme ejected. It might be connected though.

Also, it seems when you comment out docs/.vuepress/theme/styles/config.styl:17 this line (after you eject the default theme). It doesn't throw this error (seems like this file doesn't exist anywhere, nor the alias for ~@temp)

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

No branches or pull requests

3 participants