Vuepress: Theme development onboarding

Created on 15 Apr 2018  路  5Comments  路  Source: vuejs/vuepress

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.

Most helpful comment

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

All 5 comments

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

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

Seems like it's achievable with vuepress eject

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

@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

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)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FadySamirSadek picture FadySamirSadek  路  3Comments

lesliecdubs picture lesliecdubs  路  3Comments

gaomd picture gaomd  路  3Comments

shaodahong picture shaodahong  路  3Comments

AleksejDix picture AleksejDix  路  3Comments