diff --git a/_docs/gen.go b/_docs/gen.go index dacfbf9ab..35d75e630 100644 --- a/_docs/gen.go +++ b/_docs/gen.go @@ -220,6 +220,12 @@ func outputMain() error { return t.Funcs(funcs).Execute(f, data) } +func outputExampleImages() error { + // TODO: Using cp command might not be portable. + // Use io.Copy instead. + return exec.Command("cp", "-R", "../example/images", "public/example/images").Run() +} + func outputExampleContent(e *example) error { const dir = "public/example" if err := os.MkdirAll(dir, 0755); err != nil { @@ -298,6 +304,9 @@ func main() { if err := outputMain(); err != nil { log.Fatal(err) } + if err := outputExampleImages(); err != nil { + log.Fatal(err) + } for _, e := range examples { if err := outputExampleContent(&e); err != nil { log.Fatal(err) diff --git a/_docs/public/example/images/arcadefont.png b/_docs/public/example/images/arcadefont.png new file mode 100644 index 000000000..fa0e52604 Binary files /dev/null and b/_docs/public/example/images/arcadefont.png differ diff --git a/_docs/public/example/images/blocks/background.png b/_docs/public/example/images/blocks/background.png new file mode 100644 index 000000000..011b898d6 Binary files /dev/null and b/_docs/public/example/images/blocks/background.png differ diff --git a/_docs/public/example/images/blocks/blocks.png b/_docs/public/example/images/blocks/blocks.png new file mode 100644 index 000000000..1f2ede3b3 Binary files /dev/null and b/_docs/public/example/images/blocks/blocks.png differ diff --git a/_docs/public/example/images/ebiten.png b/_docs/public/example/images/ebiten.png new file mode 100644 index 000000000..4ed07b852 Binary files /dev/null and b/_docs/public/example/images/ebiten.png differ diff --git a/_docs/public/example/images/gophers.jpg b/_docs/public/example/images/gophers.jpg new file mode 100644 index 000000000..0cc956f10 Binary files /dev/null and b/_docs/public/example/images/gophers.jpg differ diff --git a/_docs/public/example/images/keyboard/keyboard.png b/_docs/public/example/images/keyboard/keyboard.png new file mode 100644 index 000000000..70a761978 Binary files /dev/null and b/_docs/public/example/images/keyboard/keyboard.png differ diff --git a/_docs/public/example/images/license.md b/_docs/public/example/images/license.md new file mode 100644 index 000000000..6c7ad47f8 --- /dev/null +++ b/_docs/public/example/images/license.md @@ -0,0 +1,41 @@ +# License + +## arcadefont.png + +``` +9031 Font ReadMe + +Terms of Use and Disclaimer + +All 9031 fonts are free of charge to use for personal or commercial purposes, e.g. printed papers, t-shirts, logos, images for website, merchandise or anything featuring these fonts. + +OpenType font files are licensed for your personal desktop use only. No part of these files may be re-distributed, sold, renamed, converted, or made available for download on any web site without permission of author. + +Author give no warranty in relation to these fonts, and you use them at your own risk. By using or installing these fonts, you agree to be bound by the terms of this agreement. Author will not be liable for any damage to your system, any loss or corruption of any data or font, or any other loss or damage that you may suffer as a result of downloading or using these fonts, whether it results from Author's negligence or in any other way. + + +Author + +Yuji Adachi, 9031 +Website: http://9031.com/ +Email: info@9031.com +©1997-2011 9031 +``` + +## ebiten.png + +``` +http://www.sozai-page.com/02_sozai/b/b04/b04_002/b04_002.html +``` + +## gophers.jpg + +``` +http://blog.golang.org/go-programming-language-turns-two +``` + +## Other image files + +``` +Creative Commons Attribution 3.0 License +```