collaborate

This commit is contained in:
Patricio Gonzalez Vivo 2016-04-24 15:03:09 -04:00
commit e31f1c65ba
4 changed files with 38 additions and 11 deletions

View File

@ -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? ## 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 - Translating content
- Improving the [```glossary/``` section](https://github.com/patriciogonzalezvivo/thebookofshaders/tree/master/glossary) - 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. 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. 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. 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**). 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 #### Translating notes

View File

@ -1,5 +1,5 @@
# Examples Gallery # Examples Gallery
<p align="right"><i>Cureated by <a href="https://twitter.com/kyndinfo">Kenichi Yoneda (@kyndinfo)</a></i></p> <p class="gallery_author">Cureated by <a href="https://www.kynd.info">kynd</a>(<a href="https://twitter.com/kyndinfo">@kyndinfo</a>) and Patricio Gonzalez Vivo(<a href="https://twitter.com/patriciogv">@patriciogv</a>)</p>
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! 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!

View File

@ -52,3 +52,30 @@
right: 0px; right: 0px;
font-size:14px; 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;
}

View File

@ -58,7 +58,7 @@
include($folder.'featured_examples.php'); include($folder.'featured_examples.php');
} }
echo '<a href="/examples/?chapter='.$chp.'"><p align="right"><i>See more examples of this chapter</i></p></a>'; echo '<p class="more"><a href="/examples/?chapter='.$chp.'">more</a></p>';
} }
} }
} elseif ( !empty($_GET['chapter'])) { } elseif ( !empty($_GET['chapter'])) {