Open lazarusA opened 4 months ago
Code can be run client-side by wrapping it in a client-only div as in https://vitepress.dev/reference/runtime-api#clientonly
I finally figured out how Documenter does this - it injects into <head>
a script src="../siteinfo.js"
, so that the doc versions are loaded then and there.
So at least we know what they do. We could probably build a Vue component from this, I think.
We could include the Documenter version JS as a local script, then deploy a version selector based on that...probably wrapped in a ClientOnly block.
test button