From a444f1ba3575f8b9cdf1731d31898d4dd42ff6f4 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 18 Aug 2017 23:43:08 +0900 Subject: [PATCH] doc: Add og:image --- _docs/example.tmpl.html | 2 ++ _docs/gen.go | 6 ++++++ _docs/index.tmpl.html | 1 + docs/examples/2048.html | 2 ++ docs/examples/alphablending.html | 2 ++ docs/examples/audio.html | 2 ++ docs/examples/blocks.html | 2 ++ docs/examples/font.html | 2 ++ docs/examples/gamepad.html | 2 ++ docs/examples/hsv.html | 2 ++ docs/examples/hue.html | 2 ++ docs/examples/infinitescroll.html | 2 ++ docs/examples/keyboard.html | 2 ++ docs/examples/life.html | 2 ++ docs/examples/masking.html | 2 ++ docs/examples/mosaic.html | 2 ++ docs/examples/noise.html | 2 ++ docs/examples/paint.html | 2 ++ docs/examples/perspective.html | 2 ++ docs/examples/piano.html | 2 ++ docs/examples/rotate.html | 2 ++ docs/examples/sprites.html | 2 ++ docs/index.html | 1 + 23 files changed, 48 insertions(+) diff --git a/_docs/example.tmpl.html b/_docs/example.tmpl.html index d14a2317d..235446ecd 100644 --- a/_docs/example.tmpl.html +++ b/_docs/example.tmpl.html @@ -1,6 +1,8 @@ + + Ebiten example - {{.Example.Name}} diff --git a/_docs/gen.go b/_docs/gen.go index 3d026cf5d..6dc0300e8 100644 --- a/_docs/gen.go +++ b/_docs/gen.go @@ -31,6 +31,10 @@ import ( "github.com/hajimehoshi/ebiten/internal" ) +const ( + url = "https://hajimehoshi.github.io/ebiten/" +) + func execute(command string, args ...string) error { cmd := exec.Command(command, args...) stderr, err := cmd.StderrPipe() @@ -243,6 +247,7 @@ func outputMain() error { } data := map[string]interface{}{ + "URL": url, "Copyright": copyright, "StableVersion": stableVersion, "DevVersion": devVersion, @@ -323,6 +328,7 @@ func outputExample(e *example) error { } data := map[string]interface{}{ + "URL": url, "Copyright": copyright, "Example": e, } diff --git a/_docs/index.tmpl.html b/_docs/index.tmpl.html index 54027e718..722b637c5 100644 --- a/_docs/index.tmpl.html +++ b/_docs/index.tmpl.html @@ -1,6 +1,7 @@ + diff --git a/docs/examples/2048.html b/docs/examples/2048.html index ed87221d5..d3d93a9ce 100644 --- a/docs/examples/2048.html +++ b/docs/examples/2048.html @@ -1,6 +1,8 @@ + + Ebiten example - 2048 diff --git a/docs/examples/alphablending.html b/docs/examples/alphablending.html index f0b65195d..eb5b8d3a6 100644 --- a/docs/examples/alphablending.html +++ b/docs/examples/alphablending.html @@ -1,6 +1,8 @@ + + Ebiten example - alphablending diff --git a/docs/examples/audio.html b/docs/examples/audio.html index 77dcaa635..e62559e2c 100644 --- a/docs/examples/audio.html +++ b/docs/examples/audio.html @@ -1,6 +1,8 @@ + + Ebiten example - audio diff --git a/docs/examples/blocks.html b/docs/examples/blocks.html index fa17dcee6..417d1fd7f 100644 --- a/docs/examples/blocks.html +++ b/docs/examples/blocks.html @@ -1,6 +1,8 @@ + + Ebiten example - blocks diff --git a/docs/examples/font.html b/docs/examples/font.html index a3c0a215a..78d7f53d9 100644 --- a/docs/examples/font.html +++ b/docs/examples/font.html @@ -1,6 +1,8 @@ + + Ebiten example - font diff --git a/docs/examples/gamepad.html b/docs/examples/gamepad.html index e963eedbb..e0bdf863a 100644 --- a/docs/examples/gamepad.html +++ b/docs/examples/gamepad.html @@ -1,6 +1,8 @@ + + Ebiten example - gamepad diff --git a/docs/examples/hsv.html b/docs/examples/hsv.html index 30ea7136e..eff2dd023 100644 --- a/docs/examples/hsv.html +++ b/docs/examples/hsv.html @@ -1,6 +1,8 @@ + + Ebiten example - hsv diff --git a/docs/examples/hue.html b/docs/examples/hue.html index d12330350..f541ee8b7 100644 --- a/docs/examples/hue.html +++ b/docs/examples/hue.html @@ -1,6 +1,8 @@ + + Ebiten example - hue diff --git a/docs/examples/infinitescroll.html b/docs/examples/infinitescroll.html index 4edae05d9..5846a7bd9 100644 --- a/docs/examples/infinitescroll.html +++ b/docs/examples/infinitescroll.html @@ -1,6 +1,8 @@ + + Ebiten example - infinitescroll diff --git a/docs/examples/keyboard.html b/docs/examples/keyboard.html index e3a828bc0..8240c0180 100644 --- a/docs/examples/keyboard.html +++ b/docs/examples/keyboard.html @@ -1,6 +1,8 @@ + + Ebiten example - keyboard diff --git a/docs/examples/life.html b/docs/examples/life.html index b492ea919..49660ec19 100644 --- a/docs/examples/life.html +++ b/docs/examples/life.html @@ -1,6 +1,8 @@ + + Ebiten example - life diff --git a/docs/examples/masking.html b/docs/examples/masking.html index df90072cb..5097baf96 100644 --- a/docs/examples/masking.html +++ b/docs/examples/masking.html @@ -1,6 +1,8 @@ + + Ebiten example - masking diff --git a/docs/examples/mosaic.html b/docs/examples/mosaic.html index 5ea31ad90..39d898552 100644 --- a/docs/examples/mosaic.html +++ b/docs/examples/mosaic.html @@ -1,6 +1,8 @@ + + Ebiten example - mosaic diff --git a/docs/examples/noise.html b/docs/examples/noise.html index bdd998bff..e24b727d6 100644 --- a/docs/examples/noise.html +++ b/docs/examples/noise.html @@ -1,6 +1,8 @@ + + Ebiten example - noise diff --git a/docs/examples/paint.html b/docs/examples/paint.html index c6e9dcdb4..cecd1b73a 100644 --- a/docs/examples/paint.html +++ b/docs/examples/paint.html @@ -1,6 +1,8 @@ + + Ebiten example - paint diff --git a/docs/examples/perspective.html b/docs/examples/perspective.html index bcb98c60a..13a3eecd1 100644 --- a/docs/examples/perspective.html +++ b/docs/examples/perspective.html @@ -1,6 +1,8 @@ + + Ebiten example - perspective diff --git a/docs/examples/piano.html b/docs/examples/piano.html index a1126a52b..a800d9ef3 100644 --- a/docs/examples/piano.html +++ b/docs/examples/piano.html @@ -1,6 +1,8 @@ + + Ebiten example - piano diff --git a/docs/examples/rotate.html b/docs/examples/rotate.html index 72c96f5c1..11c2aaabf 100644 --- a/docs/examples/rotate.html +++ b/docs/examples/rotate.html @@ -1,6 +1,8 @@ + + Ebiten example - rotate diff --git a/docs/examples/sprites.html b/docs/examples/sprites.html index 02d7ec6ce..d1ec0f2c2 100644 --- a/docs/examples/sprites.html +++ b/docs/examples/sprites.html @@ -1,6 +1,8 @@ + + Ebiten example - sprites diff --git a/docs/index.html b/docs/index.html index 31c9be731..138846af1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,6 +1,7 @@ +