diff --git a/_docs/README.md b/_docs/README.md index 2c16aad13..c3f247a7c 100644 --- a/_docs/README.md +++ b/_docs/README.md @@ -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 diff --git a/_docs/examplecontent.tmpl.html b/_docs/examplecontent.tmpl.html index 71a9e1e73..d514e0a9d 100644 --- a/_docs/examplecontent.tmpl.html +++ b/_docs/examplecontent.tmpl.html @@ -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); diff --git a/_docs/public/examples/blocks.content.html b/_docs/public/examples/blocks.content.html index 96e9f058d..90c2a694b 100644 --- a/_docs/public/examples/blocks.content.html +++ b/_docs/public/examples/blocks.content.html @@ -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); diff --git a/_docs/public/examples/hue.content.html b/_docs/public/examples/hue.content.html index c8ab3a062..e6acad9cb 100644 --- a/_docs/public/examples/hue.content.html +++ b/_docs/public/examples/hue.content.html @@ -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); diff --git a/_docs/public/examples/keyboard.content.html b/_docs/public/examples/keyboard.content.html index 229bc0b41..cf5d2dce2 100644 --- a/_docs/public/examples/keyboard.content.html +++ b/_docs/public/examples/keyboard.content.html @@ -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); diff --git a/_docs/public/examples/mosaic.content.html b/_docs/public/examples/mosaic.content.html index 2cb010264..39705cc37 100644 --- a/_docs/public/examples/mosaic.content.html +++ b/_docs/public/examples/mosaic.content.html @@ -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); diff --git a/_docs/public/examples/paint.content.html b/_docs/public/examples/paint.content.html index d049aac52..cd12b636e 100644 --- a/_docs/public/examples/paint.content.html +++ b/_docs/public/examples/paint.content.html @@ -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); diff --git a/_docs/public/examples/perspective.content.html b/_docs/public/examples/perspective.content.html index b883bd0e8..2a16cf54f 100644 --- a/_docs/public/examples/perspective.content.html +++ b/_docs/public/examples/perspective.content.html @@ -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); diff --git a/_docs/public/examples/piano.content.html b/_docs/public/examples/piano.content.html index a8933e09c..1e7d154d8 100644 --- a/_docs/public/examples/piano.content.html +++ b/_docs/public/examples/piano.content.html @@ -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); diff --git a/_docs/public/examples/rotate.content.html b/_docs/public/examples/rotate.content.html index 142eec35c..b0f61be7e 100644 --- a/_docs/public/examples/rotate.content.html +++ b/_docs/public/examples/rotate.content.html @@ -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);