Commit 05edae91 authored by Greg Wilson's avatar Greg Wilson
Browse files

Merge branch 'gh-pages' of github.com:swcarpentry/styles into gh-pages

parents f03be0f9 f0a94758
{% comment %} {% comment %}
Display information about a break. Display a break's timings in a box 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>
...@@ -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>
...@@ -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>
...@@ -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."""
......
...@@ -319,7 +319,7 @@ permalink: /figures/ ...@@ -319,7 +319,7 @@ permalink: /figures/
EXTRAS_GUIDE_MD = '''\ EXTRAS_GUIDE_MD = '''\
--- ---
layout: page layout: page
title: "Instructors' Guide" title: "Instructor Notes"
permalink: /guide/ permalink: /guide/
--- ---
FIXME FIXME
......
...@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment