diff --git a/appendix/README.md b/appendix/README.md index af73c47..17e23ad 100644 --- a/appendix/README.md +++ b/appendix/README.md @@ -129,7 +129,7 @@ If everything goes well, you will see a ```book.pdf``` file which you can read o ## How can I collaborate with this book? -Thanks for be willing to collaborate! There are different ways you can do it: +Thanks for be willing to collaborate! There are plenty of ways you can: - Translating content - Improving the [```glossary/``` section](https://github.com/patriciogonzalezvivo/thebookofshaders/tree/master/glossary) @@ -140,17 +140,17 @@ Thanks for be willing to collaborate! There are different ways you can do it: This book is wrote in [Markdown language](https://daringfireball.net/projects/markdown/syntax) so it's very easy to edit and work on it. -1. Start by going to [github's repository at ```github.com/patriciogonzalezvivo/thebookofshaders```](https://github.com/patriciogonzalezvivo/thebookofshaders). Take a look the files and folders inside it. You will note that the content is on the ```README.md``` and others files with capital letters like: ```TITTLE.md```, ```SUMMARY.md```, etc. Also note that translations are hosted on files ending in two letters referencing the language they are on, ex.: ```README-jp.md```, ```README-es.md```, etc. +1. Start by going to [github's repository at ```github.com/patriciogonzalezvivo/thebookofshaders```](https://github.com/patriciogonzalezvivo/thebookofshaders). Take a look the files and folders inside it. You will note that the content is on the ```README.md``` and others files with capital letters like: ```TITLE.md```, ```SUMMARY.md```, etc. Also note that translations are hosted on files ending in two letters referencing the language they are on, ex.: ```README-jp.md```, ```README-es.md```, etc. 2. Fork the repository and clone it in your computer. 3. Duplicate the content of the files want to translate. Remember to add to the two letters that makes reference to the language you are translating to the files you will work on. -4. Translate the contentent line by line (see **Translation notes**). +4. Translate the content line by line (see **Translation notes**). 5. Test it (see **Testing**). -6. Push to your github fork and then make a [Pull Request]() +6. Push to your own github fork to then make a [Pull Request](https://help.github.com/articles/using-pull-requests/) #### Translating notes diff --git a/examples/README.md b/examples/README.md index 67122b7..1229d33 100755 --- a/examples/README.md +++ b/examples/README.md @@ -1,5 +1,5 @@ # Examples Gallery -

Cureated by Kenichi Yoneda (@kyndinfo)

+ This is a collection of examples extracted from the chapters of this book together with shared shaders kindly donated by other readers using [the on-line editor](http://editor.thebookofshaders.com/). Feel free to explore and tweak them bit by bit. Once you have something you are proud of, click the "Export" and then copy the "URL to code...". Send it to [@bookofshaders](https://twitter.com/bookofshaders) or [@kyndinfo](https://twitter.com/kyndinfo). We are looking forward to see it! diff --git a/examples/gallery.css b/examples/gallery.css index b453b6e..ac757ff 100644 --- a/examples/gallery.css +++ b/examples/gallery.css @@ -52,3 +52,30 @@ right: 0px; font-size:14px; } + +.more { + text-align: center; + margin-top: 32px; + margin-bottom: 32px; +} + +.more a { + font-size: 14px; + letter-spacing: 0.1em; + font-family:Helvetica,Arial,sans-serif; + font-weight: 600; + border-radius: 2px; + padding: 8px; + border: solid 1px #AAAAAA; + text-transform: uppercase; +} + +.more a:hover { + background: #EEEEEE; +} + +.gallery_author { + font-size: 16px; + font-style: italic; + text-align: right; +} diff --git a/examples/index.php b/examples/index.php index 2fea75a..56b1a4e 100755 --- a/examples/index.php +++ b/examples/index.php @@ -12,7 +12,7 @@ include('../header.php'); include('../chap-header.php'); - + echo ''; echo '
'; @@ -53,18 +53,18 @@ } echo '" data-properties="clickRun:edior,hoverPreview:false,showAuthor:false,openFrameIcon:false">
'; } - + if (file_exists($folder.'featured_examples.php') and file_exists('FEATURED'.$language.'.md')) { include($folder.'featured_examples.php'); } - echo '

See more examples of this chapter

'; + echo '

more

'; } } } elseif ( !empty($_GET['chapter'])) { $chp = $_GET['chapter']; $folder = '../'.$chp.'/'; - + if (file_exists($folder.'TITLE'.$language.'.md') and file_exists($folder.'SUMMARY'.$language.'.md')) { echo $Parsedown->text(file_get_contents($folder.'TITLE'.$language.'.md')); @@ -85,7 +85,7 @@ } echo '" data-properties="clickRun:edior,showAuthor:false,openFrameIcon:false">'; } - + if (file_exists($folder.'featured_examples.php') and file_exists('FEATURED'.$language.'.md')) { echo $Parsedown->text(file_get_contents('FEATURED'.$language.'.md')); @@ -93,7 +93,7 @@ } } } - + echo '