Can someone point me how to convert from the URL I enter in a github wiki to the camo url that gets rendered? Here's why:
I am working on building custom Github pages documentation for what is currently a Github wiki. The wiki has images in it like:
http://svn.delph-in.net/erg/tags/1214/www/esd/the-garden-dog-tried-not-to-bark.png
If you browse the wiki page that includes this image, it is converted to use the Github camo proxy and looks like this:
https://camo.githubusercontent.com/30d1fc9dec67d165016698dc28b70c1e5e419baf67f6f0bdb5021091e5f889ca/687474703a2f2f73766e2e64656c70682d696e2e6e65742f6572672f746167732f313231342f7777772f6573642f7468652d67617264656e2d646f672d74726965642d6e6f742d746f2d6261726b2e706e67
That's fine, and the reasons why are described here. In fact, how it works is described here.
My problem is that I am building my google pages site using Jekyll in the manner described here. To populate the Jekyll site, I copy the markdown source from the original wiki into my Jekyll "documentation" repository to build the official docs. The original source only contains the original link, not the camo'd link. This means that the links to images are not camo'd and have one of the problems camo was meant to solve: they don't work since they are often http: references on an https page.
I was hoping there was just a setting in a Jekyll plug-in, maybe in the kramdown parser or something that would just fix this but I couldn't find any.
Then I was hoping there was just a way to generate the camo URL from the original URL since it seems straightforward as described here. However, creating the URL requires knowing what "shared secret key" github is using (I think).
Can someone point me how to convert from the URL I enter in a github wiki to the camo url that gets rendered?