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
swc-bb
swc-pages
2019-11-26-Potsdam-Berlin-Python
Commits
05edae91
Commit
05edae91
authored
Sep 15, 2016
by
Greg Wilson
Browse files
Merge branch 'gh-pages' of github.com:swcarpentry/styles into gh-pages
parents
f03be0f9
f0a94758
Changes
6
Hide whitespace changes
Inline
Side-by-side
_includes/episode_break.html
View file @
05edae91
{% comment %}
{% comment %}
Display
informatio
n abo
ut a break
.
Display
a break's timings i
n a
bo
x similar to a learning episode's
.
{% endcomment %}
{% endcomment %}
<p>
Break: {{page.break}} min
</p>
<blockquote
class=
"objectives"
>
<h2>
Overview
</h2>
<div
class=
"row"
>
<div
class=
"col-md-3"
>
<strong>
Break:
</strong>
{{ page.break }} min
</div>
<div
class=
"col-md-9"
>
</div>
</div>
</blockquote>
_includes/episode_overview.html
View file @
05edae91
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</ul>
</ul>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
</div>
</div>
...
@@ -32,5 +32,5 @@
...
@@ -32,5 +32,5 @@
</ul>
</ul>
</div>
</div>
</div>
</div>
</blockquote>
</blockquote>
_includes/syllabus.html
View file @
05edae91
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
Days are displayed if at least one episode has 'start = true'.
Days are displayed if at least one episode has 'start = true'.
{% endcomment %}
{% endcomment %}
<div
class=
"syllabus"
>
<div
class=
"syllabus"
>
<h2>
Schedule
</h2>
<h2
id=
"schedule"
>
Schedule
</h2>
{% assign day = 0 %}
{% assign day = 0 %}
{% assign multiday = false %}
{% assign multiday = false %}
...
@@ -62,4 +62,9 @@
...
@@ -62,4 +62,9 @@
<td
class=
"col-md-7"
></td>
<td
class=
"col-md-7"
></td>
</tr>
</tr>
</table>
</table>
<p>
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
</p>
</div>
</div>
bin/lesson_check.py
View file @
05edae91
...
@@ -155,6 +155,10 @@ def check_config(reporter, source_dir):
...
@@ -155,6 +155,10 @@ def check_config(reporter, source_dir):
reporter
.
check_field
(
config_file
,
'configuration'
,
config
,
'title'
)
reporter
.
check_field
(
config_file
,
'configuration'
,
config
,
'title'
)
reporter
.
check_field
(
config_file
,
'configuration'
,
config
,
'email'
)
reporter
.
check_field
(
config_file
,
'configuration'
,
config
,
'email'
)
reporter
.
check
({
'values'
:
{
'root'
:
'..'
}}
in
config
.
get
(
'defaults'
,
[]),
'configuration'
,
'"root" not set to ".." in configuration'
)
def
read_all_markdown
(
source_dir
,
parser
):
def
read_all_markdown
(
source_dir
,
parser
):
"""Read source files, returning
"""Read source files, returning
...
@@ -424,6 +428,12 @@ class CheckIndex(CheckBase):
...
@@ -424,6 +428,12 @@ class CheckIndex(CheckBase):
super
(
CheckIndex
,
self
).
__init__
(
args
,
filename
,
metadata
,
metadata_len
,
text
,
lines
,
doc
)
super
(
CheckIndex
,
self
).
__init__
(
args
,
filename
,
metadata
,
metadata_len
,
text
,
lines
,
doc
)
self
.
layout
=
'lesson'
self
.
layout
=
'lesson'
def
check_metadata
(
self
):
super
(
CheckIndex
,
self
).
check_metadata
()
self
.
reporter
.
check
(
self
.
metadata
.
get
(
'root'
,
''
)
==
'.'
,
self
.
filename
,
'Root not set to "."'
)
class
CheckEpisode
(
CheckBase
):
class
CheckEpisode
(
CheckBase
):
"""Check an episode page."""
"""Check an episode page."""
...
...
bin/lesson_initialize.py
View file @
05edae91
...
@@ -319,7 +319,7 @@ permalink: /figures/
...
@@ -319,7 +319,7 @@ permalink: /figures/
EXTRAS_GUIDE_MD
=
'''
\
EXTRAS_GUIDE_MD
=
'''
\
---
---
layout: page
layout: page
title: "Instructor
s' Guide
"
title: "Instructor
Notes
"
permalink: /guide/
permalink: /guide/
---
---
FIXME
FIXME
...
...
bin/markdown_ast.rb
View file @
05edae91
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# Use Kramdown parser to produce AST for Markdown document.
# Use Kramdown parser to produce AST for Markdown document.
require
"kramdown"
require
"kramdown"
require
"json"
require
"json"
markdown
=
STDIN
.
read
()
markdown
=
STDIN
.
read
()
doc
=
Kramdown
::
Document
.
new
(
markdown
)
doc
=
Kramdown
::
Document
.
new
(
markdown
)
...
...
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