Static file generator #298
JoshuaBehrens
started this conversation in
Ideas and feedback
Replies: 2 comments
-
Hi, you need JS to use Code Hike. No plans to make it work without JS at the moment. I'm experimenting with something like that in another project, but it's too early. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I see the need for JS for the complete feature set as well. But highlighting code without interactive features would still be possible. Can one support |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Scenario
Hi I am looking to swap my code highlighting in our framework documentation to use codehike. We only use static files in our hosting and barely use javascript to keep our page performant and "pure". I am not afraid, that codehike is bloated, it seems not to be! But I try to keep the page in a similar state as it is right now.
I fiddled down a small PoC on how I can pre-render the mdx files in a CI/CD. It works out quite ok.
demo.html renders visually fine except:
I am not surprised that static page is not interactive. I am neither surprised that due to the lack of a bundler I can't import json file nor include css by
import
. Some features can be patched manually but other demos will definitely not work that easily, like the scroll watcher code change.Are there any plans to support static file generation? Is it already possible and I don't see it? I am fine with non-interactive solutions (as in printable) where I at least see a correctly highlighted code snippet.
Beta Was this translation helpful? Give feedback.
All reactions