In Dynamic height github gadget for Google Site I showed how to display prettified source code directly from your gitHub repo on your Google Site. Here's some enhancements to that same gadget with additional options as follows;
This is the default gadget setup. You can see the new options (translate from markdown, source prettification, permanently revealed and dynamic height).
Here is the gadget source code using the default options.
The hosted address for my version this gadget is as below. You can use it or copy and make your own.
To insert, go to insert/..More gadgets and insert by URL.
It's hosted at https://storage.googleapis.com/goinggas.com/public/hosting/sites/xliberation/xml/prettygit.xml
If you choose the markdown option, it will be expecting to render a markdown file, like README.md. Here's an example from one of my guithub repos, using this configuration
Note - relative links to Github resources won't work from the rendered markdown yet. I'll need to get round to fiddling with those at some point, but for now I don't think this is a big issue.
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > Fancy gadgets on Sites >