たとえば、JavaScript テストのセットを実行するためのファイルを GitHub リポジトリに保存している場合.html
、そのページを直接表示してテストを実行する方法はありますか?
例えば、私は実際にテスト結果を見ることができるでしょうか?jQuery テストスイートリポジトリをローカルドライブにダウンロードまたはクローンして、そこで実行せずに、どうすればいいのでしょうか?
これは基本的にGitHubを静的コンテンツホスティングビジネスに参入させるものだとわかっていますが、そうは言っても、彼らはMIMEタイプをtext/plain
にtext/html
。
ベストアンサー1
使用したい場合があります出典:GitHub、Bitbucket、Gitlab、GitHub gist をサポートしています。
GitHub
前に:
https://raw.githubusercontent.com/[user]/[repository]/[branch]/[filename.ext]
あなたの場合の.html
延長
後:
開発(制限あり)
https://raw.githack.com/[user]/[repository]/[branch]/[filename.ext]
制作(CDN)
https://rawcdn.githack.com/[user]/[repository]/[branch]/[filename.ext]
あなたの場合の.html
延長
出典:他のサービスもサポートしています:
ビットバケット
前に:
https://bitbucket.org/[user]/[repository]/raw/[branch]/[filename.ext]
後:
開発(制限あり)
https://bb.githack.com/[user]/[repository]/raw/[branch]/[filename.ext]
制作(CDN)
https://bbcdn.githack.com/[user]/[repository]/raw/[branch]/[filename.ext]
ギットラボ
前に:
https://gitlab.com/[user]/[repository]/raw/[branch]/[filename.ext]
後:
開発(制限あり)
https://gl.githack.com/[user]/[repository]/raw/[branch]/[filename.ext]
制作(CDN)
https://glcdn.githack.com/[user]/[repository]/raw/[branch]/[filename.ext]
GitHub の gist
前に:
https://gist.githubusercontent.com/[user]/[gist]/raw/[revision]/[filename.ext]
後:
開発(制限あり)
https://gist.githack.com/[user]/[gist]/raw/[revision]/[filename.ext]
制作(CDN)
https://gistcdn.githack.com/[user]/[gist]/raw/[revision]/[filename.ext]
更新: rawgit は廃止されました