logseq / publish-spa

A github action and CLI to publish logseq graphs as a SPA app
MIT License
227 stars 13 forks source link

Version string of the Logseq static build not easily identifyable in SPA build #20

Open acsr opened 9 months ago

acsr commented 9 months ago

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

If not available like suggested:

logseq-cldwalker commented 8 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

acsr commented 7 months ago

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.