Skip to content

Commit da2f24a

Browse files
authored
Add visualization from view.commonwl.org (#108)
* sync with template; fix lesson-check * more HTTPS * use spdx license ids * make lesson-check * use map verson of requirements field * trim empty spaces, minor wordsmithing
1 parent 72acddb commit da2f24a

File tree

217 files changed

+2263
-1697
lines changed

Some content is hidden

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

217 files changed

+2263
-1697
lines changed

.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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"creators": [
88
{
99
"affiliation": "European Molecular Biology Laboratory",
10-
"orcid": "http://orcid.org/0000-0003-1766-456X",
10+
"orcid": "https://orcid.org/0000-0003-1766-456X",
1111
"name": "Toby Hodges"
1212
},
1313
{
1414
"affiliation": "Common Workflow Language project",
15-
"orcid": "http://orcid.org/0000-0002-2961-9670",
15+
"orcid": "https://orcid.org/0000-0002-2961-9670",
1616
"name": "Michael R. Crusoe"
1717
}
1818
],

AUTHORS

Lines changed: 0 additions & 1 deletion
This file was deleted.

CITATION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ https://dx.doi.org/10.6084/m9.figshare.3115156.v2
1111

1212
@data{cwl,
1313
doi = {10.6084/m9.figshare.3115156.v2},
14-
url = {http://dx.doi.org/10.6084/m9.figshare.3115156.v2},
14+
url = {https://doi.org/10.6084/m9.figshare.3115156.v2},
1515
author = {Peter Amstutz; Michael R. Crusoe; Nebojša Tijanić; Brad Chapman;
1616
John Chilton; Michael Heuer; Andrey Kartashov; John Kern; Dan Leehr;
1717
Hervé Ménager; Maya Nedeljkovich; Matt Scales; Stian Soiland-Reyes;
Lines changed: 10 additions & 3 deletions
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 respect all people who contribute through reporting issues,
@@ -10,8 +9,16 @@ updating documentation,
109
submitting pull requests or patches,
1110
and other activities.
1211

13-
The CWL Project is dedicated to providing a harassment-free experience for everyone, regardless of gender, gender identity and expression, sexual orientation, disability, physical appearance, body size, age, race, or religion. We do not tolerate harassment of participants in any form.
12+
The CWL Project is dedicated to providing a harassment-free experience for
13+
everyone, regardless of gender, gender identity and expression, sexual
14+
orientation, disability, physical appearance, body size, age, race, or religion.
15+
We do not tolerate harassment of participants in any form.
1416

15-
This code of conduct applies to all CWL Project spaces, including the Google Group, the Gitter chat room, the Google Hangouts chats, both online and off. Anyone who violates this code of conduct may be sanctioned or expelled from these spaces at the discretion of the leadership team.
17+
This code of conduct applies to all CWL Project spaces, including the Google
18+
Group, the Gitter chat room, the Google Hangouts chats, both online and off.
19+
Anyone who violates this code of conduct may be sanctioned or expelled from
20+
these spaces at the discretion of the leadership team.
1621

1722
For more details, see the [complete CWL project code of conduct](https://github.com/common-workflow-language/common-workflow-language/blob/master/CODE_OF_CONDUCT.md).
23+
24+
{% include links.md %}

CONTRIBUTING.md

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This is a good way to introduce yourself
2727
and to meet some of our community members.
2828

2929
1. If you do not have a [GitHub][github] account,
30-
you can [send us comments by email][contact].
30+
you can [send us comments by email][discuss-list].
3131
However,
3232
we will be able to respond more quickly if you use one of the other methods described below.
3333

@@ -47,24 +47,29 @@ and to meet some of our community members.
4747

4848
1. If you wish to change this lesson,
4949
please work in <https://github.com/common-workflow-language/user_guide>,
50-
which can be viewed at <http://www.commmonwl.org/user_guide/>.
50+
which can be viewed at <https://www.commmonwl.org/user_guide/>.
5151

5252
2. If you wish to change the example lesson,
53-
please work in <https://github.com/swcarpentry/lesson-example>,
53+
please work in <https://github.com/carpentries/lesson-example>,
5454
which documents the format of our lessons
55-
and can be viewed at <https://swcarpentry.github.io/lesson-example>.
55+
and can be viewed at <https://carpentries.github.io/lesson-example>.
5656

57-
3. If you wish to change CSS style files, tools,
57+
3. If you wish to change the template used for workshop websites,
58+
please work in <https://github.com/carpentries/workshop-template>.
59+
The home page of that repository explains how to set up workshop websites,
60+
while the extra pages in <https://carpentries.github.io/workshop-template>
61+
provide more background on our design choices.
62+
63+
4. If you wish to change CSS style files, tools,
5864
or HTML boilerplate for lessons or workshops stored in `_includes` or `_layouts`,
59-
please work in <https://github.com/swcarpentry/styles> if those changes are
60-
generic or here if they are specific to the CWL user guide.
65+
please work in <https://github.com/carpentries/styles>.
6166

6267
## What to Contribute
6368

6469
There are many ways to contribute,
6570
from writing new exercises and improving existing ones
6671
to updating or filling in the documentation
67-
and and submitting [bug reports][issues]
72+
and submitting [bug reports][issues]
6873
about things that don't work, aren't clear, or are missing.
6974
If you are looking for ideas,
7075
please see [the list of issues for this repository][issues],
@@ -90,39 +95,36 @@ The first encourages contributors to be honest about requirements;
9095
the second, to think hard about priorities.
9196
9297
We are also not looking for exercises or other material that only run on one platform.
93-
Our workshops typically contain a mixture of Windows, Mac OS X, and Linux users;
98+
Our workshops typically contain a mixture of Windows, macOS, and Linux users;
9499
in order to be usable,
95100
our lessons must run equally well on all three.
96101
-->
97102
## Using GitHub
98103

99-
If you choose to contribute via GitHub,
100-
you may want to look at
104+
If you choose to contribute via GitHub, you may want to look at
101105
[How to Contribute to an Open Source Project on GitHub][how-contribute].
102-
In brief:
103-
104-
1. The published copy of the lesson is in the `gh-pages` branch of the repository
105-
(so that GitHub will regenerate it automatically).
106-
Please create all branches from that,
107-
and merge the [master repository][repo]'s `gh-pages` branch into your `gh-pages` branch
108-
before starting work.
109-
Please do *not* work directly in your `gh-pages` branch,
110-
since that will make it difficult for you to work on other contributions.
111-
112-
2. We use [GitHub flow][github-flow] to manage changes:
113-
1. Create a new branch in your desktop copy of this repository for each significant change.
114-
2. Commit the change in that branch.
115-
3. Push that branch to your fork of this repository on GitHub.
116-
4. Submit a pull request from that branch to the [master repository][repo].
117-
5. If you receive feedback,
118-
make changes on your desktop and push to your branch on GitHub:
119-
the pull request will update automatically.
120-
3. Please add yourself to the authors file if you aren't already present: https://github.com/common-workflow-language/user_guide/blob/gh-pages/.zenodo.json
121-
122-
Each lesson has two maintainers who review issues and pull requests
123-
or encourage others to do so.
124-
The maintainers are community volunteers,
125-
and have final say over what gets merged into the lesson.
106+
To manage changes, we follow [GitHub flow][github-flow].
107+
Each lesson has two maintainers who review issues and pull requests or encourage others to do so.
108+
The maintainers are community volunteers and have final say over what gets merged into the lesson.
109+
To use the web interface for contributing to a lesson:
110+
111+
1. Fork the originating repository to your GitHub profile.
112+
2. Within your version of the forked repository, move to the `gh-pages` branch and
113+
create a new branch for each significant change being made.
114+
3. Navigate to the file(s) you wish to change within the new branches and make revisions as required.
115+
4. Commit all changed files within the appropriate branches.
116+
5. Create individual pull requests from each of your changed branches
117+
to the `gh-pages` branch within the originating repository.
118+
6. If you receive feedback, make changes using your issue-specific branches of the forked
119+
repository and the pull requests will update automatically.
120+
7. Repeat as needed until all feedback has been addressed.
121+
122+
When starting work, please make sure your clone of the originating `gh-pages` branch is up-to-date
123+
before creating your own revision-specific branch(es) from there.
124+
Additionally, please only work from your newly-created branch(es) and *not*
125+
your clone of the originating `gh-pages` branch.
126+
Lastly, published copies of all the lessons are available in the `gh-pages` branch of the originating
127+
repository for reference while revising.
126128

127129
## Other Resources
128130

@@ -134,13 +136,13 @@ which everyone is welcome to join.
134136
[dc-lessons]: http://datacarpentry.org/lessons/
135137
[dc-site]: http://datacarpentry.org/
136138
[discuss-list]: https://groups.google.com/forum/#!forum/common-workflow-language
137-
[github]: http://github.com
139+
[github]: https://github.com
138140
[github-flow]: https://guides.github.com/introduction/flow/
139141
[github-join]: https://github.com/join
140142
[how-contribute]: https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github
141143
[issues]: https://github.com/common-workflow-language/user_guide/issues
142144
[repo]: https://github.com/common-workflow-language/user_guide
143145
[swc-issues]: https://github.com/issues?q=user%3Aswcarpentry
144-
[swc-lessons]: http://software-carpentry.org/lessons/
145-
[swc-site]: http://software-carpentry.org/
146-
[cwl-site]: http://www.commonwl.org/
146+
[swc-lessons]: https://software-carpentry.org/lessons/
147+
[swc-site]: https://software-carpentry.org/
148+
[cwl-site]: https://www.commonwl.org/

LICENSE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: page
33
title: "Licenses"
4-
permalink: /license/
4+
root: .
55
---
66
## Instructional Material
77

@@ -30,7 +30,7 @@ Under the following terms:
3030
* **Attribution**---You must give appropriate credit (mentioning that
3131
your work is derived from work that is Copyright © the Common Workflow
3232
Language project, and Copyright © Software Carpentry, and, where practical, linking to
33-
http://www.commonwl.org/ and http://software-carpentry.org/), provide a [link to the
33+
https://www.commonwl.org/ and https://software-carpentry.org/), provide a [link to the
3434
license][cc-by-human], and indicate if changes were made. You may do
3535
so in any reasonable manner, but not in any way that suggests the
3636
licensor endorses you or your use.
@@ -65,10 +65,10 @@ limitations under the License.
6565
## Trademark
6666

6767
"Software Carpentry" and "Data Carpentry" and their respective logos
68-
are registered trademarks of [NumFOCUS][numfocus].
68+
are registered trademarks of [Community Initiatives][CI].
6969

7070
[cc-by-human]: https://creativecommons.org/licenses/by/4.0/
7171
[cc-by-legal]: https://creativecommons.org/licenses/by/4.0/legalcode
7272
[apache-2.0-license]: https://opensource.org/licenses/Apache-2.0
73-
[numfocus]: http://numfocus.org/
74-
[osi]: http://opensource.org
73+
[ci]: http://communityin.org/
74+
[osi]: https://opensource.org

Makefile

Lines changed: 12 additions & 18 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,31 +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
97-
98-
## lesson-figures : re-generate inclusion displaying all figures.
99-
lesson-figures :
100-
@bin/extract_figures.py -p ${PARSER} ${MARKDOWN_SRC} > _includes/all_figures.html
100+
@bin/lesson_check.py -s . -p ${PARSER} -r _includes/links.md -l -w --permissive
101101

102102
## unittest : run unit tests on checking tools.
103103
unittest :
104-
python bin/test_lesson_check.py
105-
106-
RUNNER=cwl-runner
107-
108-
## unittest-examples: run unit tests for the examples
109-
unittest-examples :
110-
cd _includes/cwl; cwltest --test=conformance-test.yml --tool=${RUNNER}
104+
@bin/test_lesson_check.py
111105

112106
## lesson-files : show expected names of generated files for debugging.
113107
lesson-files :

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,37 @@
22

33
[![Syntax Check](https://travis-ci.org/common-workflow-language/user_guide.svg?branch=gh-pages)](https://travis-ci.org/common-workflow-language/user_guide)
44

5-
[User guide for CWL v1.0.1](http://www.commonwl.org/user_guide/)
5+
[User guide for CWL v1.0.2](https://www.commonwl.org/user_guide/)
66

77
Original source:
88
https://github.com/common-workflow-language/common-workflow-language/blob/a2a8a08b8c8d56f8f2ca6284ca4e9cbf23d19346/v1.0/UserGuide.yml
99

10+
## Contributing
11+
12+
We welcome all contributions to improve the lesson! Maintainers will do their best to help you if you have any
13+
questions, concerns, or experience any difficulties along the way.
1014
To edit the user guide:
1115

16+
We'd like to ask you to familiarize yourself with our [Contribution Guide](CONTRIBUTING.md) and have a look at
17+
the [more detailed guidelines][lesson-example] on proper formatting, ways to render the lesson locally, and even
18+
how to write new episodes.
19+
1220
- The text files for each tutorial can be found in the directory [_episodes](_episodes)
1321

1422
- The cwl and yaml code files linked to each tutorial can be found in the directory [_includes/cwl](_includes/cwl)
1523

1624
This repo is based upon https://github.com/swcarpentry/styles and should be periodically resynced.
25+
26+
## Maintainer(s)
27+
28+
* FIXME
29+
30+
## Authors
31+
32+
A list of contributors to the lesson can be found in [AUTHORS](AUTHORS)
33+
34+
## Citation
35+
36+
To cite this lesson, please consult with [CITATION](CITATION)
37+
38+
[lesson-example]: https://carpentries.github.io/lesson-example

0 commit comments

Comments
 (0)