Open acsr opened 9 months ago
Hi. I've wanted published graphs to have the frontend (static) version they're built with available. I'll see if we can I do this in the next week or two. I'm less interested in the CLI printing the static version as that is easy to get with cd ../logseq && git rev-parse HEAD
Thanks for the hint with git rev-parse HEAD
.
but to get a lazy human readable version string, I need to invest more braingrease ;-), drill down to the file containing the versions string and grep for it. This is for another day. Step by step into the future… Using my timemachine to fast forward to your solution.
It is not easy to identify the version of the used Logseq static build and the publish-spa version that was used during publication.
It would help a lot if (at least as a debug option) the version tag of publish-spa and the logseq static build is included either in the html source as metadata or in the SPA UI reachable over an about link in the help section.
Why is adding your own page not sufficient? The purpose is to have a proof of the actual used version instead of the intended versions, to spot misconfiguration or failed attempts to update the code.
challenges
logseq-publish-spa
has no --version output option or drops it during executionlogseq-publish-spa
has no verbose option to dump the version of the static logseq build, you just rely on the given path.If not available like suggested:
yarn install
does not offer useful output in his warnings.