Skip to content

Commit e1d7d54

Browse files
authored
Merge pull request #218 from carpentries/update-styles-v9.5.2
Update to styles v9.5.2
2 parents bed7cd9 + d06ca0f commit e1d7d54

21 files changed

+91
-49
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
__pycache__
77
_site
88
.Rproj.user
9+
.Rhistory
10+
.RData
11+
File renamed without changes.

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Settings
55
MAKEFILES=Makefile $(wildcard *.mk)
66
JEKYLL=jekyll
7+
JEKYLL_VERSION=3.7.3
78
PARSER=bin/markdown_ast.rb
89
DST=_site
910

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

20+
## docker-serve : use docker to build the site
21+
docker-serve :
22+
docker run --rm -it -v ${PWD}:/srv/jekyll -p 127.0.0.1:4000:4000 jekyll/jekyll:${JEKYLL_VERSION} make serve
23+
1924
## serve : run a local server.
2025
serve : lesson-md
2126
${JEKYLL} serve
@@ -63,7 +68,7 @@ RMD_DST = $(patsubst _episodes_rmd/%.Rmd,_episodes/%.md,$(RMD_SRC))
6368
# Lesson source files in the order they appear in the navigation menu.
6469
MARKDOWN_SRC = \
6570
index.md \
66-
CONDUCT.md \
71+
CODE_OF_CONDUCT.md \
6772
setup.md \
6873
$(sort $(wildcard _episodes/*.md)) \
6974
reference.md \

_config.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,54 @@
22
# Values for this lesson.
33
#------------------------------------------------------------
44

5-
# Which carpentry is this ("swc", "dc", or "lc)?
5+
# Which carpentry is this ("swc", "dc", "lc", or "cp")?
6+
# swc: Software Carpentry
7+
# dc: Data Carpentry
8+
# lc: Library Carpentry
9+
# cp: Carpentries (to use for instructor traning for instance)
610
carpentry: "swc"
711

812
# Overall title for pages.
9-
title: "Lesson Example"
10-
11-
# Contact email address.
12-
email: "mailto:[email protected]"
13+
title: "Lesson Title"
1314

1415
#------------------------------------------------------------
15-
# Constant URL addresses across lessons
16+
# Generic settings (should not need to change).
1617
#------------------------------------------------------------
17-
#
18+
19+
# What kind of thing is this ("workshop" or "lesson")?
20+
kind: "lesson"
21+
22+
# Magic to make URLs resolve both locally and on GitHub.
23+
# See https://help.github.com/articles/repository-metadata-on-github-pages/.
24+
# Please don't change it: <USERNAME>/<PROJECT> is correct.
25+
repository: <USERNAME>/<PROJECT>
26+
27+
# Email address, no mailto:
28+
29+
1830
# Sites.
1931
amy_site: "https://amy.software-carpentry.org/workshops"
32+
carpentries_github: "https://github.com/carpentries"
33+
carpentries_pages: "https://carpentries.github.io"
34+
carpentries_site: "https://carpentries.org/"
2035
dc_site: "http://datacarpentry.org"
36+
example_repo: "https://github.com/carpentries/lesson-example"
37+
example_site: "https://carpentries.github.io/lesson-example"
38+
lc_site: "https://librarycarpentry.github.io/"
2139
swc_github: "https://github.com/swcarpentry"
22-
swc_site: "https://software-carpentry.org"
2340
swc_pages: "https://swcarpentry.github.io"
24-
lc_site: "http://librarycarpentry.github.io/"
41+
swc_site: "https://software-carpentry.org"
2542
template_repo: "https://github.com/carpentries/styles"
26-
example_repo: "https://github.com/carpentries/lesson-example"
27-
example_site: "https://carpentries.github.com/lesson-example"
43+
training_site: "https://carpentries.github.io/instructor-training"
2844
workshop_repo: "https://github.com/carpentries/workshop-template"
2945
workshop_site: "https://carpentries.github.io/workshop-template"
30-
training_site: "https://carpentries.github.io/instructor-training"
3146

3247
# Surveys.
3348
pre_survey: "https://www.surveymonkey.com/r/swc_pre_workshop_v1?workshop_id="
3449
post_survey: "https://www.surveymonkey.com/r/swc_post_workshop_v1?workshop_id="
50+
training_post_survey: "https://www.surveymonkey.com/r/post-instructor-training"
3551

36-
#------------------------------------------------------------
37-
# Lesson Generic settings (should not need to change).
38-
#------------------------------------------------------------
39-
40-
# What kind of thing is this ("workshop" or "lesson")?
41-
kind: "lesson"
42-
43-
# Magic to make URLs resolve both locally and on GitHub.
44-
# See https://help.github.com/articles/repository-metadata-on-github-pages/.
45-
repository: <USERNAME>/<PROJECT>
46-
47-
# Start time in minutes (0 to be clock-independent, 540 to show a start at 09:00 am)
52+
# Start time in minutes (0 to be clock-independent, 540 to show a start at 09:00 am).
4853
start_time: 0
4954

5055
# Specify that things in the episodes collection should be output.
@@ -65,23 +70,20 @@ defaults:
6570
path: ""
6671
type: episodes
6772
values:
68-
layout: episode
6973
root: ..
74+
layout: episode
7075
- scope:
7176
path: ""
7277
type: extras
7378
values:
7479
root: ..
7580
layout: page
7681

77-
#------------------------------------------------------------
78-
# Jekyll Generic settings (should not need to change).
79-
#------------------------------------------------------------
80-
8182
# Files and directories that are not to be copied.
8283
exclude:
8384
- Makefile
84-
- bin
85+
- bin/
86+
- .Rproj.user/
8587

8688
# Turn on built-in syntax highlighting.
8789
highlighter: rouge

_includes/lesson_footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<div class="row">
4646
<div class="col-md-12" align="center">
4747
Using <a href="https://github.com/carpentries/styles/">The Carpentries style</a>
48-
version <a href="https://github.com/carpentries/styles/releases/tag/v9.5.0">9.5.0</a>.
48+
version <a href="https://github.com/carpentries/styles/releases/tag/v9.5.2">9.5.2</a>.
4949
</div>
5050
</div>
5151
</footer>

_includes/links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[cran-checkpoint]: https://cran.r-project.org/package=checkpoint
1010
[cran-knitr]: https://cran.r-project.org/package=knitr
1111
[cran-stringr]: https://cran.r-project.org/package=stringr
12-
[email]: mailto:lessons@software-carpentry.org
12+
[email]: mailto:team@carpentries.org
1313
[github-importer]: https://import.github.com/
1414
[importer]: https://github.com/new/import
1515
[jekyll-collection]: https://jekyllrb.com/docs/collections/

_includes/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<ul class="nav navbar-nav">
3939

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

4343
{% if site.kind == "lesson" %}
4444
{% comment %} Show setup instructions. {% endcomment %}

bin/boilerplate/CODE_OF_CONDUCT.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: page
3+
title: "Contributor Code of Conduct"
4+
---
5+
As contributors and maintainers of this project,
6+
we pledge to follow the [Carpentry Code of Conduct][coc].
7+
8+
Instances of abusive, harassing, or otherwise unacceptable behavior
9+
may be reported by following our [reporting guidelines][coc-reporting].
10+
11+
{% include links.md %}

bin/boilerplate/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In exchange,
1515
we will address your issues and/or assess your change proposal as promptly as we can,
1616
and help you become a member of our community.
1717
Everyone involved in [Software Carpentry][swc-site] and [Data Carpentry][dc-site]
18-
agrees to abide by our [code of conduct](CONDUCT.md).
18+
agrees to abide by our [code of conduct](CODE_OF_CONDUCT.md).
1919

2020
## How to Contribute
2121

bin/boilerplate/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ A list of contributors to the lesson can be found in [AUTHORS](AUTHORS)
2525

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

28-
[lesson-example]: https://swcarpentry.github.io/lesson-example
28+
[lesson-example]: https://carpentries.github.io/lesson-example

0 commit comments

Comments
 (0)