- Dec 05, 2014
-
-
Raniere Silva authored
Merge of new validator with tests
-
Andy Boughton authored
Add validation methods and refactor ast helpers to separate class Add tiny logging message; prep for first push to github fork Start adding tests Fix errors revealed by unit tests Update validator to check heading order; tests passing Validation of links and changes to heading validation Tiny comment cleanup; push to share version with swc Add some descriptive comments and create minimal validator example (for instructors.md) to demonstrate subclassing Split helpers to separate file and update for newest index.md template Grooming Bring up to spec with newest versions of lesson templates. Add tests to ensure all templates pass validation. Saner default assumption about markdown file locations Add skeletons for remaining validators. Incorporate ranier's code for batch validation. Code changes for single-file python 2 and 3 compatibility. Refactor out template validation logic in prep for cmd line rework Proof of concept refactor to command line sig for @rgaia-cs (issue #34) With no path provided, default to curdir, not a hard-coded default Implement license and discussion validators. Some test cleanup. Validate file links against page titles. Add line length check. Fix python3 hash error Rename validator to check Conflicts: tools/validate_markdown_template.py Enforce section heading levels + pep8 cleanup Improved link validation for non-html files Validate images as well as links Verify that all headings are exactly level 2 Link text validation based on document header "subtitle" instead of "title". Adjustments based on run against the SQL repo. Fix links to topics By default only show erros and warnings to user - Add another argument for CLI to enable debug log level - Change some log message to debug instead of info - Add file information for errors and warnings Fix import at check From [PEP8](https://www.python.org/dev/peps/pep-0008/#imports) > Imports should usually be on separate lines, e.g.: > > Yes: import os > import sys > > No: import sys, os Heading bugfixes, update failing tests, and cleanup. fix swcarpentry/lesson-template#39, swcarpentry/lesson-template#42 . Add validation of glossary Slight clarification to log messages. Skip validate some links in index Fix super() call for python2; avoid mutable default argument. Lesson template validator.
-
- Dec 03, 2014
-
-
Greg Wilson authored
Splitting lesson instructions
-
Greg Wilson authored
-
- Nov 27, 2014
-
-
Raniere Silva authored
Prereq divs
-
Aaron O'Leary authored
This means that you can trigger div creation by 1. Using a special title 2. Using a special class on an arbitrary title
-
- Nov 26, 2014
-
-
Raniere Silva authored
- Use UPPERCASE for global constants - Add Learning Objectives to SPECIAL_TITLES - Fix samples
-
Aaron O'Leary authored
Previously, Div creation was triggered by a Blockquote that began with a header that contained a single class that was in a list of special classes. Now, Div creation is *also* triggered by a Blockquote that begins with a header that has it's text contained in a list of special titles. The title is used to lookup an appropriate class to give the Div. In particular, 'prerequesites' is a special title, giving the class 'prereq'. This input: > ## Prerequesites > > A short paragraph describing what learners need to know before > tackling this lesson. will trigger this output: <div id="prerequisites" class="prereq"> <h2>Prerequisites</h2> <p>A short paragraph describing what learners need to know before tackling this lesson.</p> </div>
-
Aaron O'Leary authored
-
Greg Wilson authored
making python script runnable for pandoc
-
- Nov 25, 2014
-
-
Rémi Emonet authored
-
Rémi Emonet authored
-
- Nov 18, 2014
-
-
Raniere Silva authored
Fix template layout
-
- Nov 17, 2014
-
-
Greg Wilson authored
-
Greg Wilson authored
Building validator for lesson contents
-
Greg Wilson authored
-
Greg Wilson authored
-
Greg Wilson authored
-
Greg Wilson authored
-
- Nov 16, 2014
-
-
Greg Wilson authored
Set up code color
-
Greg Wilson authored
Remove border bottom from title
-
Raniere Silva authored
and others small fixes.
-
Raniere Silva authored
The body variable at Pandoc template **must** not be indented because the indentation will propagate into the HTML. Example: $ cat page.html <!DOCTYPE html> <html> <body> $body$ </body> </html> $ pandoc -s -t html --template=page -o sample.html sample.md $ cat sample.html <!DOCTYPE html> <html> <body> <pre><code>def foo(): return None</code></pre> </body> </html> Solution: $ cat fix.html <!DOCTYPE html> <html> <body> $body$ </body> </html> $ pandoc -s -t html --template=fix -o sample-fix.html sample.md $ cat sample-fix.html <!DOCTYPE html> <html> <body> <pre><code>def foo(): return None</code></pre> </body> </html>
-
Raniere Silva authored
-
Raniere Silva authored
-
Raniere Silva authored
Changing sed command used to display help from Makefile.
-
- Nov 15, 2014
-
-
Greg Wilson authored
As per https://github.com/swcarpentry/workshop-template/pull/53, this PR is more selective about what it does and doesn't print.
-
Greg Wilson authored
-
- Nov 14, 2014
-
-
Raniere Silva authored
-
Greg Wilson authored
Clean CSS file
-
Greg Wilson authored
-
Greg Wilson authored
-
Greg Wilson authored
Improving setup instructions
-
Greg Wilson authored
Multiple changes based on converting Make lesson to template
-
- Nov 13, 2014
-
-
Raniere Silva authored
-
Greg Wilson authored
-
Greg Wilson authored
1. Moving the build steps up to the top of `README.md`. 2. Removed the misleading target to run the checking tool (since the tool doesn't actually work).
-
Greg Wilson authored
And taking it out of the auto-displayed list of available commands.
-
Greg Wilson authored
-
Greg Wilson authored
-