doc: Bug fix: Don't specify http or https (#150)

This commit is contained in:
Hajime Hoshi 2016-02-15 11:35:05 +09:00
parent 22f16f0c23
commit e9d1264061
10 changed files with 13 additions and 9 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);