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

vitepress support #58

Open
SamWangCoder opened this issue Jul 18, 2022 · 5 comments
Open

vitepress support #58

SamWangCoder opened this issue Jul 18, 2022 · 5 comments

Comments

@SamWangCoder
Copy link

firstly,thank you for your work.
Is there a plan to support vitepress?

@elevatebart
Copy link
Member

There is a plan, but it will not be called vuepress-plugin-live

@elevatebart
Copy link
Member

I do not have this as a top priority right now.
If you have a few cycles to start the plugin on your own, here is my brain download:

If you need it, creating it is very often the best way to have it quickly.

  • vuepress and vitepress both use markdown-it to process markdown. So the markdown plugin should be able to be used the same.
  • vue-live is now compatible with vite, so you should not have any trouble with the use of vue-live as a component in a vitepress website
  • I have still to figure out a few things:
    • how to pass options to the theme
    • how to do the custom layout if we want to keep this option.
    • how to package it all as a simple-to-install plugin

@SamWangCoder
Copy link
Author

Thanks for your brain download! I will try create it maybe later.
I have tryied put repl into vitepress, but this way is not convenience enough.

@elevatebart
Copy link
Member

There is one more thing I have not figured out how to do.

To compile templates, Vue needs its bundle time version in the browser. To do that, we set an alias of vue to vue/dist/vue.esm-bundler.js.
Sadly, import alias do not seem to be implemented in VitePress (yet). I believe we would need some custom plugin.
Remeber. that VitePress is still alpha 😉

@SamWangCoder
Copy link
Author

Yes! I have tried to merge your vite-vue-live to vitepress proj but failed. Vitepress ignore the config of vite.alias.
So I try to merge Ant Design Vue Playground into my proj, it works. But can not import local components into repl real-time.
In consideration of VitePress still a alpha version, I'll try create a plugin later.

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

2 participants