Merge pull request #149 from rgaiacs/styles-print
authorRaniere Silva <raniere@rgaiacs.com>
Sat, 6 May 2017 08:26:10 +0000 (09:26 +0100)
committerGitHub <noreply@github.com>
Sat, 6 May 2017 08:26:10 +0000 (09:26 +0100)
Add all in one lesson build with Javascript

CONDUCT.md
_includes/links.md [new file with mode: 0644]
assets/js/lesson.js

index e83b08fa924a73ddc516da51b49599f964e7d8a9..5e4943b4caf8680fce2d651c01b542b8feddc5be 100644 (file)
@@ -32,13 +32,14 @@ or other unprofessional conduct.
 
 Project maintainers have the right and responsibility to remove, edit, or reject
 comments, commits, code, wiki edits, issues, and other contributions
-that are not aligned to this Code of Conduct.
+that are not aligned to our [Code of Conduct][coc].
 Project maintainers who do not follow the Code of Conduct may be removed from the project team.
 
 Instances of abusive, harassing, or otherwise unacceptable behavior
-may be reported by opening an issue or contacting one or more of the project maintainers.
+may be reported by following our [reporting guidelines][coc-reporting].
 
-This Code of Conduct is adapted from
-the [Contributor Covenant][contrib-covenant] Version 1.0.0.
 
-[contrib-covenant]: http://contributor-covenant.org/
+- [Software and Data Carpentry Code of Conduct][coc]
+- [Code of Conduct Reporting Guide][coc-reporting]
+
+{% include links.md %}
diff --git a/_includes/links.md b/_includes/links.md
new file mode 100644 (file)
index 0000000..a163786
--- /dev/null
@@ -0,0 +1,35 @@
+[cc-by-human]: https://creativecommons.org/licenses/by/4.0/
+[cc-by-legal]: https://creativecommons.org/licenses/by/4.0/legalcode
+[concept-maps]: http://swcarpentry.github.io/instructor-training/08-memory/
+[contact]: mailto:lessons@software-carpentry.org
+[contrib-covenant]: http://contributor-covenant.org/
+[contributing]: {{ site.github.repository_url }}/blob/gh-pages/CONTRIBUTING.md
+[cran-checkpoint]: https://cran.r-project.org/web/packages/checkpoint/index.html
+[cran-knitr]: https://cran.r-project.org/web/packages/knitr/index.html
+[cran-stringr]: https://cran.r-project.org/web/packages/stringr/index.html
+[github-importer]: https://import.github.com/
+[importer]: http://import.github.com/new
+[jekyll-collection]: https://jekyllrb.com/docs/collections/
+[jekyll-install]: https://jekyllrb.com/docs/installation/
+[jekyll-windows]: http://jekyll-windows.juthilo.com/
+[jekyll]: https://jekyllrb.com/
+[jupyter]: https://jupyter.org/
+[mit-license]: http://opensource.org/licenses/mit-license.html
+[morea]: https://morea-framework.github.io/
+[numfocus]: http://numfocus.org/
+[osi]: http://opensource.org
+[pandoc]: https://pandoc.org/
+[paper-now]: https://github.com/PeerJ/paper-now
+[python-gapminder]: https://swcarpentry.github.io/python-novice-gapminder/
+[pyyaml]: https://pypi.python.org/pypi/PyYAML
+[r-markdown]: http://rmarkdown.rstudio.com/
+[rstudio]: https://www.rstudio.com/
+[ruby-install-guide]: https://www.ruby-lang.org/en/downloads/
+[ruby-installer]: http://rubyinstaller.org/
+[rubygems]: https://rubygems.org/pages/download/
+[styles]: https://github.com/swcarpentry/styles/
+[training]: http://swcarpentry.github.io/instructor-training/
+[workshop-repo]: {{ site.workshop_repo }}
+[yaml]: http://yaml.org/
+[coc]: https://software-carpentry.org/conduct/
+[coc-reporting]: https://software-carpentry.org/CoC-reporting/
\ No newline at end of file
index c51dca6498c33938938fa80ec57b7f67b26bd337..185da920220429f734256180b9d7baf41323d45e 100644 (file)
@@ -3,7 +3,7 @@ $("table").addClass("table table-striped");
 
 
 // Handle foldable challenges and solutions (on click and at start).
-$(".challenge,.discussion,.solution").click(function(event) {
+$(".solution").click(function(event) {
     var trigger = $(event.target).has(".fold-unfold").size() > 0
                || $(event.target).filter(".fold-unfold").size() > 0;
     if (trigger) {
@@ -12,7 +12,7 @@ $(".challenge,.discussion,.solution").click(function(event) {
         event.stopPropagation();
     }
 });
-$(".challenge,.discussion,.solution").each(function() {
+$(".solution").each(function() {
     $(">*:not(h2)", this).toggle();
     var h2 = $("h2:first", this);
     h2.append("<span class='fold-unfold glyphicon glyphicon-collapse-down'></span>");