Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lesson Template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
prace-lessons
Lesson Template
Commits
a605769e
Commit
a605769e
authored
9 years ago
by
W. Trevor King
Browse files
Options
Downloads
Plain Diff
Merge branch 'local-maintainers' of
git://github.com/wking/swc-lesson-template
into gh-pages
parents
5426365c
1014aa0c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CONTRIBUTING.md
+2
-8
2 additions, 8 deletions
CONTRIBUTING.md
tools/check.py
+7
-2
7 additions, 2 deletions
tools/check.py
tools/chunk-options.R
+1
-1
1 addition, 1 deletion
tools/chunk-options.R
tools/validation_helpers.py
+1
-1
1 addition, 1 deletion
tools/validation_helpers.py
with
11 additions
and
12 deletions
CONTRIBUTING.md
+
2
−
8
View file @
a605769e
...
...
@@ -26,7 +26,7 @@ You also agree to abide by our
4.
When editing lesson pages, you need only commit changes to the Markdown source files.
5.
If you're looking for things to work on,
please see
[
the list of issues for this repository
][
lesson-example-
issues
]
please see
[
the list of issues for this repository
][
issues
]
or for
[
the template
][
lesson-template-issues
]
,
or have a look at
[
our actual lessons
][
swc-lessons
]
.
Comments on issues and reviews of pull requests are equally welcome.
...
...
@@ -39,15 +39,9 @@ You also agree to abide by our
2.
For a list of helpful commands run
`make`
in this directory.
3.
The
[
list of maintainers
][
swc-maintainers
]
on the
[
Software Carpentry website
][
swc-website
]
lists the people currently responsible for managing this repository.
Feel free to contact them if you have any questions or languishing pull requests.
[
conduct
]:
CONDUCT.md
[
issues
]:
https://github.com/swcarpentry/lesson-example/issues
[
lesson-template-issues
]:
https://github.com/swcarpentry/lesson-template/issues
[
license
]:
LICENSE.md
[
pro-git-chapter
]:
http://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project
[
swc-lessons
]:
http://software-carpentry.org/lessons.html
[
swc-maintainers
]:
http://software-carpentry.org/lessons.html#maintainers
[
swc-website
]:
http://software-carpentry.org
This diff is collapsed.
Click to expand it.
tools/check.py
+
7
−
2
View file @
a605769e
...
...
@@ -671,7 +671,8 @@ LESSON_TEMPLATES = {"index": (IndexPageValidator, "^index"),
"
discussion
"
:
(
DiscussionPageValidator
,
"
^discussion
"
)}
# List of files in the lesson directory that should not be validated at all
SKIP_FILES
=
(
"
DESIGN.md
"
,
"
FAQ.md
"
,
"
LAYOUT.md
"
,
"
README.md
"
)
SKIP_FILES
=
(
"
CONDUCT.md
"
,
"
CONTRIBUTING.md
"
,
"
DESIGN.md
"
,
"
FAQ.md
"
,
"
LAYOUT.md
"
,
"
README.md
"
)
def
identify_template
(
filepath
):
...
...
@@ -737,7 +738,9 @@ def validate_folder(path, template=None):
def
start_logging
(
level
=
logging
.
INFO
):
"""
Initialize logging and print messages to console.
"""
logging
.
basicConfig
(
stream
=
sys
.
stdout
,
level
=
level
)
logging
.
basicConfig
(
stream
=
sys
.
stdout
,
level
=
level
,
format
=
"
%(levelname)s: %(message)s
"
)
def
command_line
():
...
...
@@ -763,6 +766,8 @@ def command_line():
def
check_required_files
(
dir_to_validate
):
"""
Check if required files exists.
"""
REQUIRED_FILES
=
[
"
01-*.md
"
,
"
CONDUCT.md
"
,
"
CONTRIBUTING.md
"
,
"
discussion.md
"
,
"
index.md
"
,
"
instructors.md
"
,
...
...
This diff is collapsed.
Click to expand it.
tools/chunk-options.R
+
1
−
1
View file @
a605769e
...
...
@@ -23,4 +23,4 @@ hook_out <- function(x, options) {
}
knit_hooks
$
set
(
source
=
hook_in
,
output
=
hook_out
,
warning
=
hook_out
,
error
=
hook_out
,
message
=
hook_out
)
\ No newline at end of file
error
=
hook_out
,
message
=
hook_out
)
This diff is collapsed.
Click to expand it.
tools/validation_helpers.py
+
1
−
1
View file @
a605769e
...
...
@@ -239,4 +239,4 @@ class CommonMarkHelper(object):
else
:
has_heading
=
False
return
self
.
is_block
(
ast_node
)
and
has_heading
\ No newline at end of file
return
self
.
is_block
(
ast_node
)
and
has_heading
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment