Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
prace-lessons
Lesson Template
Commits
5995aa54
Unverified
Commit
5995aa54
authored
Nov 05, 2017
by
Raniere Silva
Committed by
GitHub
Nov 05, 2017
Browse files
Merge pull request #139 from rgaiacs/gh-pages
Use email as keyword
parents
ba70ae22
3c790f7e
Changes
7
Hide whitespace changes
Inline
Side-by-side
_config.yml
View file @
5995aa54
...
...
@@ -9,7 +9,7 @@ carpentry: "swc"
title
:
"
Lesson
Title"
# Contact email address.
contact
:
"
mailto:lessons@software-carpentry.org"
email
:
"
mailto:lessons@software-carpentry.org"
#------------------------------------------------------------
# Constant URL addresses across lessons
...
...
_includes/lesson_footer.html
View file @
5995aa54
...
...
@@ -31,7 +31,7 @@
/
<a
href=
"{{ site.github.repository_url }}/blob/gh-pages/CITATION"
>
Cite
</a>
/
<a
href=
"{{ site.
contact
}}"
>
Contact
</a>
<a
href=
"{{ site.
email
}}"
>
Contact
</a>
</h4>
</div>
</div>
...
...
_includes/links.md
View file @
5995aa54
[
cc-by-human
]:
https://creativecommons.org/licenses/by/4.0/
[
cc-by-legal
]:
https://creativecommons.org/licenses/by/4.0/legalcode
[
concept-maps
]:
http://carpentries.github.io/instructor-training/05-memory/
[
contact
]:
mailto:lessons@software-carpentry.org
[
email
]:
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
...
...
_layouts/workshop.html
View file @
5995aa54
...
...
@@ -16,7 +16,7 @@
<meta
name=
"eventbrite"
content=
"{{page.eventbrite}}"
/>
<meta
name=
"instructor"
content=
"{{page.instructor|join:'|'}}"
/>
<meta
name=
"helper"
content=
"{{page.helper|join:'|'}}"
/>
<meta
name=
"contact"
content=
"{{page.
contact
}}"
/>
<meta
name=
"contact"
content=
"{{page.
email
}}"
/>
{% if page.redirect %}
<meta
http-equiv=
"refresh"
content=
"0; url={{page.redirect}}"
/>
{% endif %}
...
...
bin/lesson_check.py
View file @
5995aa54
...
...
@@ -163,7 +163,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'
))
reporter
.
check_field
(
config_file
,
'configuration'
,
config
,
'title'
)
reporter
.
check_field
(
config_file
,
'configuration'
,
config
,
'
contact
'
)
reporter
.
check_field
(
config_file
,
'configuration'
,
config
,
'
email
'
)
reporter
.
check
({
'values'
:
{
'root'
:
'..'
}}
in
config
.
get
(
'defaults'
,
[]),
'configuration'
,
...
...
bin/lesson_initialize.py
View file @
5995aa54
...
...
@@ -45,7 +45,7 @@ This is a good way to introduce yourself
and to meet some of our community members.
1. If you do not have a [GitHub][github] account,
you can [send us comments by email][
contact
].
you can [send us comments by email][
email
].
However,
we will be able to respond more quickly if you use one of the other methods described below.
...
...
@@ -151,9 +151,9 @@ and have final say over what gets merged into the lesson.
General discussion of [Software Carpentry][swc-site] and [Data Carpentry][dc-site]
happens on the [discussion mailing list][discuss-list],
which everyone is welcome to join.
You can also [reach us by email][
contact
].
You can also [reach us by email][
email
].
[
contact
]: mailto:admin@software-carpentry.org
[
email
]: mailto:admin@software-carpentry.org
[dc-issues]: https://github.com/issues?q=user%3Adatacarpentry
[dc-lessons]: http://datacarpentry.org/lessons/
[dc-site]: http://datacarpentry.org/
...
...
@@ -183,7 +183,7 @@ title: "Lesson Title"
# Contact. This *must* include the protocol: if it's an email
# address, it must look like "mailto:lessons@software-carpentry.org",
# or if it's a URL, "https://gitter.im/username/ProjectName".
contact
: "mailto:lessons@software-carpentry.org"
email
: "mailto:lessons@software-carpentry.org"
#------------------------------------------------------------
# Generic settings (should not need to change).
...
...
bin/workshop_check.py
View file @
5995aa54
...
...
@@ -205,7 +205,7 @@ def check_helpers(helpers):
@
look_for_fixme
def
check_email
(
email
):
"""
'
contact
' must be a valid email address consisting of characters,
'
email
' must be a valid email address consisting of characters,
an '@', and more characters. It should not be the default contact
email address 'admin@software-carpentry.org'.
"""
...
...
@@ -286,7 +286,7 @@ HANDLERS = {
'helper list isn
\'
t a valid list of format '
+
'["First helper", "Second helper",..]'
),
'
contact
'
:
(
True
,
check_email
,
'
email
'
:
(
True
,
check_email
,
'contact email invalid or still set to '
+
'"{0}".'
.
format
(
DEFAULT_CONTACT_EMAIL
)),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment