LuxDL / DocumenterVitepress.jl

Documentation with Documenter.jl and VitePress
https://luxdl.github.io/DocumenterVitepress.jl/
MIT License
64 stars 9 forks source link

test versioning #38

Open lazarusA opened 4 months ago

lazarusA commented 4 months ago

test button

asinghvi17 commented 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

asinghvi17 commented 3 months ago

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.

https://github.com/JuliaDocs/Documenter.jl/blob/4fe9cf1237293c530633bcf0ef183b48417f23d7/src/html/HTMLWriter.jl#L999

So at least we know what they do. We could probably build a Vue component from this, I think.

asinghvi17 commented 1 month ago

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.