Skip to content

Commit e8ad4e6

Browse files
author
Christopher Prener
authored
Merge pull request #1 from datacarpentry/gh-pages
Update my copy of the repor
2 parents 7b14184 + ffaf490 commit e8ad4e6

145 files changed

Lines changed: 1742 additions & 848 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
8+
[*.md]
9+
indent_size = 2
10+
indent_style = space
11+
max_line_length = 100 # Please keep this in sync with bin/lesson_check.py!
12+
13+
[*.r]
14+
max_line_length = 80
15+
16+
[*.py]
17+
indent_size = 4
18+
indent_style = space
19+
max_line_length = 79
20+
21+
[*.sh]
22+
end_of_line = lf
23+
24+
[Makefile]
25+
indent_style = tab

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
.sass-cache
66
__pycache__
77
_site
8+
.Rproj.user
9+
.Rhistory
10+
.RData
11+

.zenodo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"contributors":[{"type":"Editor","name":"Anne Fouilloux"},{"type":"Editor","name":"Arthur Endsley"},{"type":"Editor","name":"Chris Prener"},{"type":"Editor","name":"Jeff Hollister"},{"type":"Editor","name":"Joseph Stachelek"},{"type":"Editor","name":"Leah Wasser"},{"type":"Editor","name":"Michael Sumner"},{"type":"Editor","name":"Michele Tobias"},{"type":"Editor","name":"Stace Maples"}],"creators":[{"name":"Chris Prener"}],"license":{"id":"CC-BY-4.0"}}

CITATION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
FIXME: describe how to cite this lesson.
1+
Data Carpentry Geospatial workshop overview.
2+
Editor(s): Anne Fouilloux; Arthur Endsley; Chris Prener; Jeff Hollister; Joseph Stachelek; Leah Wasser; Michael Sumner; Michele Tobias; Stace Maples
3+
https://doi.org/10.5281/zenodo.1404412

CONDUCT.md renamed to CODE_OF_CONDUCT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: page
33
title: "Contributor Code of Conduct"
4-
permalink: /conduct/
54
---
65
As contributors and maintainers of this project,
76
we pledge to follow the [Carpentry Code of Conduct][coc].

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7474
## Trademark
7575

7676
"Software Carpentry" and "Data Carpentry" and their respective logos
77-
are registered trademarks of [NumFOCUS][numfocus].
77+
are registered trademarks of [Community Initiatives][CI].
7878

7979
[cc-by-human]: https://creativecommons.org/licenses/by/4.0/
8080
[cc-by-legal]: https://creativecommons.org/licenses/by/4.0/legalcode
8181
[mit-license]: https://opensource.org/licenses/mit-license.html
82-
[numfocus]: https://numfocus.org/
82+
[ci]: http://communityin.org/
8383
[osi]: https://opensource.org

Makefile

Lines changed: 12 additions & 8 deletions
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
@@ -38,7 +43,7 @@ clean :
3843
@find . -name '*.pyc' -exec rm {} \;
3944

4045
## clean-rmd : clean intermediate R files (that need to be committed to the repo).
41-
clear-rmd :
46+
clean-rmd :
4247
@rm -rf ${RMD_DST}
4348
@rm -rf fig/rmd-*
4449

@@ -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 \
@@ -83,21 +88,20 @@ HTML_DST = \
8388
## lesson-md : convert Rmarkdown files to markdown
8489
lesson-md : ${RMD_DST}
8590

86-
# Use of .NOTPARALLEL makes rule execute only once
87-
${RMD_DST} : ${RMD_SRC}
88-
@bin/knit_lessons.sh ${RMD_SRC}
91+
_episodes/%.md: _episodes_rmd/%.Rmd
92+
@bin/knit_lessons.sh $< $@
8993

9094
## lesson-check : validate lesson Markdown.
91-
lesson-check :
95+
lesson-check : lesson-fixme
9296
@bin/lesson_check.py -s . -p ${PARSER} -r _includes/links.md
9397

9498
## lesson-check-all : validate lesson Markdown, checking line lengths and trailing whitespace.
9599
lesson-check-all :
96-
@bin/lesson_check.py -s . -p ${PARSER} -l -w
100+
@bin/lesson_check.py -s . -p ${PARSER} -r _includes/links.md -l -w --permissive
97101

98102
## unittest : run unit tests on checking tools.
99103
unittest :
100-
python bin/test_lesson_check.py
104+
@bin/test_lesson_check.py
101105

102106
## lesson-files : show expected names of generated files for debugging.
103107
lesson-files :

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[![DOI](https://zenodo.org/badge/124151544.svg)](https://zenodo.org/badge/latestdoi/124151544) [![Create a Slack Account with us](https://img.shields.io/badge/Create_Slack_Account-The_Carpentries-071159.svg)](https://swc-slack-invite.herokuapp.com/)
2+
[![Slack Status](https://img.shields.io/badge/Slack_Channel-dc--geospatial-E01563.svg)](https://swcarpentry.slack.com/messages/C9ME7G5RD)
3+
4+
15
# Geospatial Workshop
26

37
Overview of the Geospatial workshop.

_config.yml

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22
# Values for this lesson.
33
#------------------------------------------------------------
44

5-
# Which carpentry is this ("swc", "dc", or "lc")?
6-
carpentry: "swc"
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)
10+
carpentry: "dc"
711

812
# Overall title for pages.
9-
title: "Lesson Title"
13+
title: "Geospatial Workshop Overview"
1014

11-
# Contact. This *must* include the protocol: if it's an email
12-
# address, it must look like "mailto:lessons@software-carpentry.org",
13-
# or if it's a URL, "https://gitter.im/username/ProjectName".
14-
email: "mailto:lessons@software-carpentry.org"
15+
# Life cycle stage of the lesson
16+
# possible values: "pre-alpha", "alpha", "beta", "stable"
17+
life_cycle: "beta"
1518

1619
#------------------------------------------------------------
1720
# Generic settings (should not need to change).
@@ -22,21 +25,28 @@ kind: "lesson"
2225

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

31+
# Email address, no mailto:
32+
email: "team@carpentries.org"
33+
2734
# Sites.
2835
amy_site: "https://amy.software-carpentry.org/workshops"
36+
carpentries_github: "https://github.com/carpentries"
37+
carpentries_pages: "https://carpentries.github.io"
38+
carpentries_site: "https://carpentries.org/"
2939
dc_site: "http://datacarpentry.org"
40+
example_repo: "https://github.com/carpentries/lesson-example"
41+
example_site: "https://carpentries.github.io/lesson-example"
42+
lc_site: "https://librarycarpentry.github.io/"
3043
swc_github: "https://github.com/swcarpentry"
31-
swc_site: "https://software-carpentry.org"
3244
swc_pages: "https://swcarpentry.github.io"
33-
lc_site: "https://librarycarpentry.github.io/"
45+
swc_site: "https://software-carpentry.org"
3446
template_repo: "https://github.com/carpentries/styles"
35-
example_repo: "https://github.com/carpentries/lesson-example"
36-
example_site: "https://carpentries.github.io/lesson-example"
47+
training_site: "https://carpentries.github.io/instructor-training"
3748
workshop_repo: "https://github.com/carpentries/workshop-template"
3849
workshop_site: "https://carpentries.github.io/workshop-template"
39-
training_site: "https://carpentries.github.io/instructor-training"
4050

4151
# Surveys.
4252
pre_survey: "https://www.surveymonkey.com/r/swc_pre_workshop_v1?workshop_id="
@@ -58,17 +68,26 @@ collections:
5868
# Set the default layout for things in the episodes collection.
5969
defaults:
6070
- values:
61-
root: ..
71+
root: .
72+
layout: page
6273
- scope:
6374
path: ""
6475
type: episodes
6576
values:
77+
root: ..
6678
layout: episode
79+
- scope:
80+
path: ""
81+
type: extras
82+
values:
83+
root: ..
84+
layout: page
6785

6886
# Files and directories that are not to be copied.
6987
exclude:
7088
- Makefile
71-
- bin
89+
- bin/
90+
- .Rproj.user/
7291

7392
# Turn on built-in syntax highlighting.
7493
highlighter: rouge

_episodes/01-introduction.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)