Preview statements for GitHub PR-s

This form generates markdown snippet that can be added to the PR comment manually to provide a preview of the new version as well as a diff file. It is poor man’s alternative to the more elaborate PR-preview GitHub App, in case the latter is down…

This simple version of PR makes the assumption that the file to be previewed in the pull request is called index.html.

(Note the current version works only with ReSpec and plain HTML document; default is in ReSpec. I do not know to generate a preview version of Bikeshed.)

(*)Githack does not cache the content it but must be “initiated” by using the PR GitHub reference at least once on its home page manually before the URL becomes “live”. The Statically URL is live at once, but HTML files are cached for a day. I.e., if the intention is to make frequent commits on the material in PR, better use githack, statically otherwise…