Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
83
rated 0 times [  87] [ 4]  / answers: 1 / hits: 174595  / 13 Years ago, fri, july 1, 2011, 12:00:00

If I have a .html file in a GitHub repository, e.g. for running a a set of JavaScript tests, is there any way I can view that page directly—thus running the tests?



For example, could I somehow actually see the test results that would be produced by the jQuery test suite, without downloading or cloning the repo to my local drive and running them there?



I know this would basically put GitHub in the static content hosting business, but then again, they just have to change their mime-type from text/plain to text/html.


More From » html

 Answers
31


You might want to use raw.githack.com. It supports GitHub, Bitbucket, Gitlab and GitHub gists.



GitHub



Before:



https://raw.githubusercontent.com/[user]/[repository]/[branch]/[filename.ext]



In your case .html extension



After:



Development (throttled)



https://raw.githack.com/[user]/[repository]/[branch]/[filename.ext]



Production (CDN)



https://rawcdn.githack.com/[user]/[repository]/[branch]/[filename.ext]



In your case .html extension






raw.githack.com also supports other services:



Bitbucket



Before:



https://bitbucket.org/[user]/[repository]/raw/[branch]/[filename.ext]



After:



Development (throttled)



https://bb.githack.com/[user]/[repository]/raw/[branch]/[filename.ext]



Production (CDN)



https://bbcdn.githack.com/[user]/[repository]/raw/[branch]/[filename.ext]



GitLab



Before:



https://gitlab.com/[user]/[repository]/raw/[branch]/[filename.ext]



After:



Development (throttled)



https://gl.githack.com/[user]/[repository]/raw/[branch]/[filename.ext]



Production (CDN)



https://glcdn.githack.com/[user]/[repository]/raw/[branch]/[filename.ext]



GitHub gists



Before:



https://gist.githubusercontent.com/[user]/[gist]/raw/[revision]/[filename.ext]



After:



Development (throttled)



https://gist.githack.com/[user]/[gist]/raw/[revision]/[filename.ext]



Production (CDN)



https://gistcdn.githack.com/[user]/[gist]/raw/[revision]/[filename.ext]






Update: rawgit was discontinued


[#91392] Thursday, June 30, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jarod

Total Points: 62
Total Questions: 111
Total Answers: 83

Location: Saint Vincent and the Grenadines
Member since Sat, Sep 11, 2021
3 Years ago
;