Commit e2395cc0 authored by Greg Wilson's avatar Greg Wilson
Browse files

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

parents 5daa5b0f f0a94758
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
{% comment %}
  Display information about a break.
    Display a break's timings in a box similar to a learning episode's.
{% 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>
+10 −0
Original line number Diff line number Diff line
@@ -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, 'email')

    reporter.check({'values': {'root': '..'}} in config.get('defaults', []),
                   'configuration',
                   '"root" not set to ".." in configuration')


def read_all_markdown(source_dir, parser):
    """Read source files, returning
@@ -424,6 +428,12 @@ class CheckIndex(CheckBase):
        super(CheckIndex, self).__init__(args, filename, metadata, metadata_len, text, lines, doc)
        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):
    """Check an episode page."""
+1 −1
Original line number Diff line number Diff line
@@ -319,7 +319,7 @@ permalink: /figures/
EXTRAS_GUIDE_MD = '''\
---
layout: page
title: "Instructors' Guide"
title: "Instructor Notes"
permalink: /guide/
---
FIXME
+2 −2

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.