Replies: 6 comments 5 replies
-
|
Awesome! I wouldn't mind having a look when it's done. Have you seen the new docs site on the v4 branch? It's a WIP that's not online yet, but it's also created with Astro and uses a rehype plugin to create editors from fenced code blocks in markdown. Quite convenient I must say. The rehype plugin is only in beta and I'm hoping to finish v4 soon. |
Beta Was this translation helpful? Give feedback.
-
|
Oh, I didn't see that. However my component is almost complete :( jaja. I
ll publish and then take a deep look at it.
Thank you
…On Wed, 22 Jan 2025 at 16:05 FIameCaster ***@***.***> wrote:
Awesome! I wouldn't mind having a look when it's done.
Have you seen the new docs site on the v4 branch
<https://github.com/FIameCaster/prism-code-editor/tree/v4>? It's a WIP
that's not online yet, but it's also created with Astro and uses a rehype
plugin to create editors from fenced code blocks in markdown. Quite
convenient I must say. The rehype plugin is only in beta and I'm hoping to
finish v4 soon.
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACYFYDNTIPY73HHGZIZCBHL2L6JTLAVCNFSM6AAAAABVUGV6WSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJRGY2DGNQ>
.
You are receiving this because you authored the thread.Message ID:
<FIameCaster/prism-code-editor/repo-discussions/42/comments/11916436@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
I also made an Astro example on StackBlitz a few months ago that uses an I would be curious to know what you did as well. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the tip! I will check no-content. Regarding the node_modules I
needed to point files using its folders paths.
In a future I will adapt all of this using your conponent to make things
easier
…On Thu, 23 Jan 2025 at 19:16 FIameCaster ***@***.***> wrote:
Interesting. So you're using an inline script to create the editors. That
is a bit of a mess yeah. I didn't know about the define:vars directive to
pass variables to inline scripts. Since inline scripts aren't processed,
shouldn't the imports from node_modules break outside of development?
In v4 this should be must easier. You won't need an inline, and the
editors will be visible even before the JavaScript has loaded so the
website should feel much faster. It won't be possible to use shadow roots
though, so you'd have to sort out any issues with conflicting styles. Since
you're using Starlight, adding the not-content class
<https://starlight.astro.build/components/using-components/#compatibility-with-starlights-styles>
might fix your issue. Lastly, linking the HTML, CSS, and JS editors to the
iframe can't be done the same way, but it should be easy to do.
—
Reply to this email directly, view it on GitHub
<#42 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACYFYDMP6NAL73GAZ5RY7JD2MEIU5AVCNFSM6AAAAABVUGV6WSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOJTGIYTMNQ>
.
You are receiving this because you authored the thread.Message ID:
<FIameCaster/prism-code-editor/repo-discussions/42/comments/11932166@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
As promised, I upgraded and published my documentation site yesterday, using Prism Code Editor (3.4) in all code snippets and examples. https://zumerlab.github.io/orbit-docs/examples/scifi/ Note: I had to put your library on the doc public folder because as you said "the imports from node_modules break outside of development" :) |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your time and help! I've already implemented your suggestions. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
This library you made is so great! I'm implementing it on my Astro doc site (not public yet).
Beta Was this translation helpful? Give feedback.
All reactions