javascript - Can I run HTML files directly from GitHub, instead of just viewing their source? -
if have .html file in github repository, e.g. running a set of javascript tests, there way can view page directly—thus running tests?
for example, somehow see test results produced the jquery test suite, without downloading or cloning repo local drive , running them there?
i know put github in static content hosting business, again, have change mime-type text/plain text/html.
an alternative http://htmlpreview.github.com http://rawgithub.com. provides more convenient way preview files.
update
the site has been renamed http://rawgit.com:
before
https://raw.githubusercontent.com/[user]/[repository]/[branch]/[filename.ext] in case .html extension
after
https://rawgit.com/[user]/[repository]/[branch]/[filename.ext] in case .html extension
now seems able use cdn in production well, pretty cool:
https://cdn.rawgit.com/[user]/[repository]/[branch]/[filename.ext] you can serve gists
before
https://gist.github.com/[user]/[gist] after
https://rawgit.com/[user]/[gist]/raw/ cdn
https://cdn.rawgit.com/[user]/[gist]/raw/
Comments
Post a Comment