doc: Bug fix: Copy example/images

This commit is contained in:
Hajime Hoshi 2016-02-07 05:50:41 +09:00
parent b6f6cfa866
commit 0806329e9e
8 changed files with 50 additions and 0 deletions

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1008 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

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