Skip to content

Commit

Permalink
Merge pull request #218 from carpentries/update-styles-v9.5.2
Browse files Browse the repository at this point in the history
Update to styles v9.5.2
  • Loading branch information
fmichonneau authored Jun 20, 2018
2 parents bed7cd9 + d06ca0f commit e1d7d54
Show file tree
Hide file tree
Showing 21 changed files with 91 additions and 49 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
__pycache__
_site
.Rproj.user
.Rhistory
.RData

File renamed without changes.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Settings
MAKEFILES=Makefile $(wildcard *.mk)
JEKYLL=jekyll
JEKYLL_VERSION=3.7.3
PARSER=bin/markdown_ast.rb
DST=_site

Expand All @@ -16,6 +17,10 @@ all : commands
commands :
@grep -h -E '^##' ${MAKEFILES} | sed -e 's/## //g'

## docker-serve : use docker to build the site
docker-serve :
docker run --rm -it -v ${PWD}:/srv/jekyll -p 127.0.0.1:4000:4000 jekyll/jekyll:${JEKYLL_VERSION} make serve

## serve : run a local server.
serve : lesson-md
${JEKYLL} serve
Expand Down Expand Up @@ -63,7 +68,7 @@ RMD_DST = $(patsubst _episodes_rmd/%.Rmd,_episodes/%.md,$(RMD_SRC))
# Lesson source files in the order they appear in the navigation menu.
MARKDOWN_SRC = \
index.md \
CONDUCT.md \
CODE_OF_CONDUCT.md \
setup.md \
$(sort $(wildcard _episodes/*.md)) \
reference.md \
Expand Down
62 changes: 32 additions & 30 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,54 @@
# Values for this lesson.
#------------------------------------------------------------

# Which carpentry is this ("swc", "dc", or "lc)?
# Which carpentry is this ("swc", "dc", "lc", or "cp")?
# swc: Software Carpentry
# dc: Data Carpentry
# lc: Library Carpentry
# cp: Carpentries (to use for instructor traning for instance)
carpentry: "swc"

# Overall title for pages.
title: "Lesson Example"

# Contact email address.
email: "mailto:[email protected]"
title: "Lesson Title"

#------------------------------------------------------------
# Constant URL addresses across lessons
# Generic settings (should not need to change).
#------------------------------------------------------------
#

# What kind of thing is this ("workshop" or "lesson")?
kind: "lesson"

# Magic to make URLs resolve both locally and on GitHub.
# See https://help.github.com/articles/repository-metadata-on-github-pages/.
# Please don't change it: <USERNAME>/<PROJECT> is correct.
repository: <USERNAME>/<PROJECT>

# Email address, no mailto:
email: "[email protected]"

# Sites.
amy_site: "https://amy.software-carpentry.org/workshops"
carpentries_github: "https://github.com/carpentries"
carpentries_pages: "https://carpentries.github.io"
carpentries_site: "https://carpentries.org/"
dc_site: "http://datacarpentry.org"
example_repo: "https://github.com/carpentries/lesson-example"
example_site: "https://carpentries.github.io/lesson-example"
lc_site: "https://librarycarpentry.github.io/"
swc_github: "https://github.com/swcarpentry"
swc_site: "https://software-carpentry.org"
swc_pages: "https://swcarpentry.github.io"
lc_site: "http://librarycarpentry.github.io/"
swc_site: "https://software-carpentry.org"
template_repo: "https://github.com/carpentries/styles"
example_repo: "https://github.com/carpentries/lesson-example"
example_site: "https://carpentries.github.com/lesson-example"
training_site: "https://carpentries.github.io/instructor-training"
workshop_repo: "https://github.com/carpentries/workshop-template"
workshop_site: "https://carpentries.github.io/workshop-template"
training_site: "https://carpentries.github.io/instructor-training"

# Surveys.
pre_survey: "https://www.surveymonkey.com/r/swc_pre_workshop_v1?workshop_id="
post_survey: "https://www.surveymonkey.com/r/swc_post_workshop_v1?workshop_id="
training_post_survey: "https://www.surveymonkey.com/r/post-instructor-training"

#------------------------------------------------------------
# Lesson Generic settings (should not need to change).
#------------------------------------------------------------

# What kind of thing is this ("workshop" or "lesson")?
kind: "lesson"

# Magic to make URLs resolve both locally and on GitHub.
# See https://help.github.com/articles/repository-metadata-on-github-pages/.
repository: <USERNAME>/<PROJECT>

# Start time in minutes (0 to be clock-independent, 540 to show a start at 09:00 am)
# Start time in minutes (0 to be clock-independent, 540 to show a start at 09:00 am).
start_time: 0

# Specify that things in the episodes collection should be output.
Expand All @@ -65,23 +70,20 @@ defaults:
path: ""
type: episodes
values:
layout: episode
root: ..
layout: episode
- scope:
path: ""
type: extras
values:
root: ..
layout: page

#------------------------------------------------------------
# Jekyll Generic settings (should not need to change).
#------------------------------------------------------------

# Files and directories that are not to be copied.
exclude:
- Makefile
- bin
- bin/
- .Rproj.user/

# Turn on built-in syntax highlighting.
highlighter: rouge
2 changes: 1 addition & 1 deletion _includes/lesson_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div class="row">
<div class="col-md-12" align="center">
Using <a href="https://github.com/carpentries/styles/">The Carpentries style</a>
version <a href="https://github.com/carpentries/styles/releases/tag/v9.5.0">9.5.0</a>.
version <a href="https://github.com/carpentries/styles/releases/tag/v9.5.2">9.5.2</a>.
</div>
</div>
</footer>
2 changes: 1 addition & 1 deletion _includes/links.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[cran-checkpoint]: https://cran.r-project.org/package=checkpoint
[cran-knitr]: https://cran.r-project.org/package=knitr
[cran-stringr]: https://cran.r-project.org/package=stringr
[email]: mailto:lessons@software-carpentry.org
[email]: mailto:team@carpentries.org
[github-importer]: https://import.github.com/
[importer]: https://github.com/new/import
[jekyll-collection]: https://jekyllrb.com/docs/collections/
Expand Down
2 changes: 1 addition & 1 deletion _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<ul class="nav navbar-nav">

{% comment %} Always show code of conduct. {% endcomment %}
<li><a href="{{ page.root }}{% link CONDUCT.md %}">Code of Conduct</a></li>
<li><a href="{{ page.root }}{% link CODE_OF_CONDUCT.md %}">Code of Conduct</a></li>

{% if site.kind == "lesson" %}
{% comment %} Show setup instructions. {% endcomment %}
Expand Down
11 changes: 11 additions & 0 deletions bin/boilerplate/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: page
title: "Contributor Code of Conduct"
---
As contributors and maintainers of this project,
we pledge to follow the [Carpentry Code of Conduct][coc].

Instances of abusive, harassing, or otherwise unacceptable behavior
may be reported by following our [reporting guidelines][coc-reporting].

{% include links.md %}
2 changes: 1 addition & 1 deletion bin/boilerplate/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In exchange,
we will address your issues and/or assess your change proposal as promptly as we can,
and help you become a member of our community.
Everyone involved in [Software Carpentry][swc-site] and [Data Carpentry][dc-site]
agrees to abide by our [code of conduct](CONDUCT.md).
agrees to abide by our [code of conduct](CODE_OF_CONDUCT.md).

## How to Contribute

Expand Down
2 changes: 1 addition & 1 deletion bin/boilerplate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ A list of contributors to the lesson can be found in [AUTHORS](AUTHORS)

To cite this lesson, please consult with [CITATION](CITATION)

[lesson-example]: https://swcarpentry.github.io/lesson-example
[lesson-example]: https://carpentries.github.io/lesson-example
17 changes: 10 additions & 7 deletions bin/boilerplate/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@
# Values for this lesson.
#------------------------------------------------------------

# Which carpentry is this ("swc", "dc", or "lc")?
# Which carpentry is this ("swc", "dc", "lc", or "cp")?
# swc: Software Carpentry
# dc: Data Carpentry
# lc: Library Carpentry
# cp: Carpentries (to use for instructor traning for instance)
carpentry: "swc"

# Overall title for pages.
title: "Lesson Title"

# Contact. This *must* include the protocol: if it's an email
# address, it must look like "mailto:[email protected]",
# or if it's a URL, "https://gitter.im/username/ProjectName".
email: "mailto:[email protected]"

#------------------------------------------------------------
# Generic settings (should not need to change).
#------------------------------------------------------------
Expand All @@ -22,16 +21,20 @@ kind: "lesson"

# Magic to make URLs resolve both locally and on GitHub.
# See https://help.github.com/articles/repository-metadata-on-github-pages/.
# Please don't change it: <USERNAME>/<PROJECT> is correct.
repository: <USERNAME>/<PROJECT>

# Email address, no mailto:
email: "[email protected]"

# Sites.
amy_site: "https://amy.software-carpentry.org/workshops"
carpentries_github: "https://github.com/carpentries"
carpentries_pages: "https://carpentries.github.io"
carpentries_site: "https://carpentries.org/"
dc_site: "http://datacarpentry.org"
example_repo: "https://github.com/carpentries/lesson-example"
example_site: "https://carpentries.github.com/lesson-example"
example_site: "https://carpentries.github.io/lesson-example"
lc_site: "https://librarycarpentry.github.io/"
swc_github: "https://github.com/swcarpentry"
swc_pages: "https://swcarpentry.github.io"
Expand Down
11 changes: 7 additions & 4 deletions bin/boilerplate/_episodes/01-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ title: "Introduction"
teaching: 0
exercises: 0
questions:
- "Key question"
- "Key question (FIXME)"
objectives:
- "First objective."
- "First objective. (FIXME)"
keypoints:
- "First key point."
---
- "First key point. (FIXME)"
---
FIXME

{% include links.md %}
1 change: 1 addition & 0 deletions bin/boilerplate/_extras/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
title: About
---
{% include carpentries.html %}
{% include links.md %}
2 changes: 2 additions & 0 deletions bin/boilerplate/_extras/discuss.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
title: Discussion
---
FIXME

{% include links.md %}
2 changes: 2 additions & 0 deletions bin/boilerplate/_extras/figures.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ Create anchor for each one of the episodes.
{% for episode in site.episodes %}
<article id="{{ episode.url }}"></article>
{% endfor %}

{% include links.md %}
2 changes: 2 additions & 0 deletions bin/boilerplate/_extras/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
title: "Instructor Notes"
---
FIXME

{% include links.md %}
2 changes: 2 additions & 0 deletions bin/boilerplate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ FIXME: home page introduction
>
> FIXME
{: .prereq}

{% include links.md %}
2 changes: 2 additions & 0 deletions bin/boilerplate/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ layout: reference
## Glossary

FIXME

{% include links.md %}
3 changes: 3 additions & 0 deletions bin/boilerplate/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
title: Setup
---
FIXME


{% include links.md %}
4 changes: 2 additions & 2 deletions bin/lesson_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# specially. This list must include all the Markdown files listed in the
# 'bin/initialize' script.
REQUIRED_FILES = {
'%/CONDUCT.md': True,
'%/CODE_OF_CONDUCT.md': True,
'%/CONTRIBUTING.md': False,
'%/LICENSE.md': True,
'%/README.md': False,
Expand Down Expand Up @@ -171,7 +171,7 @@ def check_config(reporter, source_dir):
reporter.check_field(config_file, 'configuration',
config, 'kind', 'lesson')
reporter.check_field(config_file, 'configuration',
config, 'carpentry', ('swc', 'dc', 'lc'))
config, 'carpentry', ('swc', 'dc', 'lc', 'cp'))
reporter.check_field(config_file, 'configuration', config, 'title')
reporter.check_field(config_file, 'configuration', config, 'email')

Expand Down
1 change: 1 addition & 0 deletions bin/lesson_initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'.travis.yml',
'AUTHORS',
'CITATION',
'CODE_OF_CONDUCT.md',
'CONTRIBUTING.md',
'README.md',
'_config.yml',
Expand Down

0 comments on commit e1d7d54

Please sign in to comment.