mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +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
|
# How to run HTTP server
|
||||||
|
|
||||||
`go run server.go`
|
`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 s = document.createElement('script');
|
||||||
var src = '{{.Example.Name}}.js';
|
var src = '{{.Example.Name}}.js';
|
||||||
if (isProduction()) {
|
if (isProduction()) {
|
||||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/{{.CurrentBranch}}/' + src;
|
src = '//hajimehoshi.github.io/ebiten.pagestorage/{{.CurrentBranch}}/' + src;
|
||||||
}
|
}
|
||||||
s.src = src;
|
s.src = src;
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
|||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
var src = 'blocks.js';
|
var src = 'blocks.js';
|
||||||
if (isProduction()) {
|
if (isProduction()) {
|
||||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||||
}
|
}
|
||||||
s.src = src;
|
s.src = src;
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
|||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
var src = 'hue.js';
|
var src = 'hue.js';
|
||||||
if (isProduction()) {
|
if (isProduction()) {
|
||||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||||
}
|
}
|
||||||
s.src = src;
|
s.src = src;
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
|||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
var src = 'keyboard.js';
|
var src = 'keyboard.js';
|
||||||
if (isProduction()) {
|
if (isProduction()) {
|
||||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||||
}
|
}
|
||||||
s.src = src;
|
s.src = src;
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
|||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
var src = 'mosaic.js';
|
var src = 'mosaic.js';
|
||||||
if (isProduction()) {
|
if (isProduction()) {
|
||||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||||
}
|
}
|
||||||
s.src = src;
|
s.src = src;
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
|||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
var src = 'paint.js';
|
var src = 'paint.js';
|
||||||
if (isProduction()) {
|
if (isProduction()) {
|
||||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||||
}
|
}
|
||||||
s.src = src;
|
s.src = src;
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
|||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
var src = 'perspective.js';
|
var src = 'perspective.js';
|
||||||
if (isProduction()) {
|
if (isProduction()) {
|
||||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||||
}
|
}
|
||||||
s.src = src;
|
s.src = src;
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
|||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
var src = 'piano.js';
|
var src = 'piano.js';
|
||||||
if (isProduction()) {
|
if (isProduction()) {
|
||||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||||
}
|
}
|
||||||
s.src = src;
|
s.src = src;
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
|
@ -31,7 +31,7 @@ window.addEventListener('load', function() {
|
|||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
var src = 'rotate.js';
|
var src = 'rotate.js';
|
||||||
if (isProduction()) {
|
if (isProduction()) {
|
||||||
src = 'http://hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
src = '//hajimehoshi.github.io/ebiten.pagestorage/master/' + src;
|
||||||
}
|
}
|
||||||
s.src = src;
|
s.src = src;
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user