This is an interesting one! Surprised GitHub haven’t offered the option to embed files from repos into sites, I guess the overhead would be quite large. I did a bit of googling and found this which allows you to embed files and chunks of code into pages http://blog.revathskumar.com/2012/08/embed-files-from-github-repository-into-webpage.html
Hopefully this is good enough to solve your problem