vue-styleguidist / vuepress-plugin-live

Make your markdown code examples come alive
http://vuepress-live.surge.sh/
MIT License
38 stars 7 forks source link

Styles optional/loaded after vuepress styles #10

Closed travispamaral closed 5 years ago

travispamaral commented 5 years ago

Hi there! I just started using this and Im quickly finding I don't really need these defined styles. Im not sure how Vuepress plugins work but is there anyway to allow these to be optional or more easy to overwrite/remove? Adding !important to every declaration seems like a lot.

https://github.com/vue-styleguidist/vuepress-plugin-live/blob/master/layout.vue#L12

Thanks! Great work 👍🏼

flozero commented 5 years ago

Hello thank's for using it :)

Do you have a repo to try it ?

elevatebart commented 5 years ago

Hey @travispamaral

Thank you for your interest in the plugin. We could add an option to load the layout component yourself. Would that solve your issue?

elevatebart commented 5 years ago

@f3ltron In this file I would change the layout to become an optional prop of the component and change enhanceAppFiles.js to specify where to find the layout if provided.

travispamaral commented 5 years ago

@f3ltron I unfortunately am implementing in a private repo so I cannot share.

@elevatebart that would be a great addition! I think having the ability to choose whether or not users can implement their own layout/styles or use the default would be a huge help.

flozero commented 5 years ago

ok @elevatebart i could propore something for that.

Maybe they just want to update a part of the css now ?

elevatebart commented 5 years ago

@travispamaral I delivered the feature, I hope you like it ;)

elevatebart commented 5 years ago

:tada: This issue has been resolved in version 1.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

travispamaral commented 5 years ago

@elevatebart you rock! Thanks so much, I was going to try and PR the change over the weekend but couldn't get to it. Thanks again 🎉