mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
doc: Bug fix: Don't specify http or https (#150)
This commit is contained in:
parent
22f16f0c23
commit
e9d1264061
@ -5,3 +5,7 @@
|
||||
# How to run HTTP server
|
||||
|
||||
`go run server.go`
|
||||
|
||||
# How to deploy
|
||||
|
||||
git subtree push --prefix _docs/public/ origin gh-pages
|
||||
|
@ -17,7 +17,7 @@ window.addEventListener('load', function() {
|
||||
var s = document.createElement('script');
|
||||
var src = '{{.Example.Name}}.js';
|
||||
if (isProduction()) {
|
||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/{{.CurrentBranch}}/' + src;
|
||||
src = '//hajimehoshi.github.io/ebiten.pagestorage/{{.CurrentBranch}}/' + src;
|
||||
}
|
||||
s.src = src;
|
||||
document.body.appendChild(s);
|
||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
||||
var s = document.createElement('script');
|
||||
var src = 'blocks.js';
|
||||
if (isProduction()) {
|
||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
}
|
||||
s.src = src;
|
||||
document.body.appendChild(s);
|
||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
||||
var s = document.createElement('script');
|
||||
var src = 'hue.js';
|
||||
if (isProduction()) {
|
||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
}
|
||||
s.src = src;
|
||||
document.body.appendChild(s);
|
||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
||||
var s = document.createElement('script');
|
||||
var src = 'keyboard.js';
|
||||
if (isProduction()) {
|
||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
}
|
||||
s.src = src;
|
||||
document.body.appendChild(s);
|
||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
||||
var s = document.createElement('script');
|
||||
var src = 'mosaic.js';
|
||||
if (isProduction()) {
|
||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
}
|
||||
s.src = src;
|
||||
document.body.appendChild(s);
|
||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
||||
var s = document.createElement('script');
|
||||
var src = 'paint.js';
|
||||
if (isProduction()) {
|
||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
}
|
||||
s.src = src;
|
||||
document.body.appendChild(s);
|
||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
||||
var s = document.createElement('script');
|
||||
var src = 'perspective.js';
|
||||
if (isProduction()) {
|
||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
}
|
||||
s.src = src;
|
||||
document.body.appendChild(s);
|
||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
||||
var s = document.createElement('script');
|
||||
var src = 'piano.js';
|
||||
if (isProduction()) {
|
||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
}
|
||||
s.src = src;
|
||||
document.body.appendChild(s);
|
||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
||||
var s = document.createElement('script');
|
||||
var src = 'rotate.js';
|
||||
if (isProduction()) {
|
||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||
}
|
||||
s.src = src;
|
||||
document.body.appendChild(s);
|
||||
|
Loading…
Reference in New Issue
Block a user