Replies: 1 comment 17 replies
-
|
Thanks I don't know much about custom elements, please explain how you made the integration on your site. Also worth testing on the canary release |
Beta Was this translation helpful? Give feedback.
17 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a docusaurus
2.0.0 beta-0project (website, source) that works with a custom elementUnfortunately, moving from beta 0 to beta 1 with code that worked before.
Related: #5416
If would be great if docusaurus had a canonical way to add custom elements and tests to verify integrating Custom elements work and don't break
P.S. Thank you so much for this project! Beautiful, fast documentation. This is the best doc engine on the planet at the moment.
Current examples
minimal example
https://github.com/tony/docusaurus-custom-element-issue
2.0.0-beta.0https://2-0-0-beta-0.dlpncn4sz6ns6.amplifyapp.com/
2.0.0-beta.1https://2-0-0-beta-1.dlpncn4sz6ns6.amplifyapp.com/
2.0.0-beta.6https://2-0-0-beta-6.dlpncn4sz6ns6.amplifyapp.com/
canaryhttps://canary.dlpncn4sz6ns6.amplifyapp.com/
social-embed (monorepo)
beta 1: social-embed/social-embed#36 (diff)
canary: social-embed/social-embed#37 (diff)
🚫 Live code blocks with custom element
beta 0 (works): https://social-embed.git-pull.com/
beta 1 (breaks): https://docusaurus-2-0-0-beta-1.d1bxvdq53pbygo.amplifyapp.com/
canary (breaks): https://docusaurus-2-0-0-next.d1bxvdq53pbygo.amplifyapp.com/
✔️ Normal custom elements in JSX
beta 0 (works): https://social-embed.git-pull.com/docs/wc/providers/vimeo/
beta 1 (works): https://docusaurus-2-0-0-beta-1.d1bxvdq53pbygo.amplifyapp.com/docs/wc/providers/vimeo/
docusaurus 2.0.0@canary(works):canary (works): ttps://docusaurus-2-0-0-next.d1bxvdq53pbygo.amplifyapp.com/docs/wc/providers/vimeo/
Beta Was this translation helpful? Give feedback.
All reactions