Loading Makefile +0 −7 Original line number Diff line number Diff line Loading @@ -44,13 +44,6 @@ clean : ## preview : Build website locally for checking. preview : $(DST_ALL) # Pattern for slides (different parameters and template). motivation.html : motivation.md _layouts/slides.revealjs Makefile ${PANDOC} -s -t revealjs --slide-level 2 \ ${PANDOC_FLAGS} \ --template=_layouts/slides \ -o $@ $< # Pattern to build a generic page. %.html : %.md _layouts/page.html $(FILTERS) ${PANDOC} -s -t html \ Loading tools/check.py +0 −12 Original line number Diff line number Diff line Loading @@ -542,16 +542,6 @@ class TopicPageValidator(MarkdownValidator): return all(tests) and parent_tests class MotivationPageValidator(MarkdownValidator): """Validate motivation.md""" WARN_ON_EXTRA_HEADINGS = False DOC_HEADERS = {"layout": vh.is_str, "title": vh.is_str, "subtitle": vh.is_str} # TODO: How to validate? May be a mix of reveal.js (HTML) + markdown. class ReferencePageValidator(MarkdownValidator): """Validate reference.md""" HEADINGS = ["Glossary"] Loading Loading @@ -678,7 +668,6 @@ class DiscussionPageValidator(MarkdownValidator): # Dict of {name: (Validator, filename_pattern)} LESSON_TEMPLATES = {"index": (IndexPageValidator, "^index"), "topic": (TopicPageValidator, "^[0-9]{2}-.*"), "motivation": (MotivationPageValidator, "^motivation"), "reference": (ReferencePageValidator, "^reference"), "instructor": (InstructorPageValidator, "^instructors"), "license": (LicensePageValidator, "^LICENSE"), Loading Loading @@ -786,7 +775,6 @@ def check_required_files(dir_to_validate): "index.md", "instructors.md", "LICENSE.md", "motivation.md", "README.md", "reference.md"] valid = True Loading tools/test_check.py +0 −15 Original line number Diff line number Diff line Loading @@ -99,7 +99,6 @@ This will parse as a string, not a dictionary ## Other Resources * [Motivation](motivation.html) * [Reference Guide](reference.html) * [Next Steps](discussion.html) * [Instructor's Guide](instructors.html)""") Loading @@ -114,7 +113,6 @@ This will parse as a string, not a dictionary ## Other Resources * [Motivation](motivation.html) * [Reference Guide](reference.html) * [Next Steps](discussion.html) * [Instructor's Guide](instructors.html)""") Loading @@ -141,7 +139,6 @@ Paragraph of introductory material. ## Other Resources * [Motivation](motivation.html) * [Reference Guide](reference.html) * [Next Steps](discussion.html) * [Instructor's Guide](instructors.html)""") Loading @@ -161,7 +158,6 @@ Paragraph of introductory material. ## Other Resources * [Motivation](motivation.html) * [Reference Guide](reference.html) * [Instructor's Guide](instructors.html) Loading Loading @@ -444,17 +440,6 @@ Spacer paragraph self.assertTrue(res) class TestMotivationPage(BaseTemplateTest): """Verifies that the instructors page validator works as expected""" SAMPLE_FILE = os.path.join(MARKDOWN_DIR, "motivation.md") VALIDATOR = check.MotivationPageValidator def test_sample_file_passes_validation(self): sample_validator = self.VALIDATOR(self.SAMPLE_FILE) res = sample_validator.validate() self.assertTrue(res) class TestReferencePage(BaseTemplateTest): """Verifies that the reference page validator works as expected""" SAMPLE_FILE = os.path.join(MARKDOWN_DIR, "reference.md") Loading Loading
Makefile +0 −7 Original line number Diff line number Diff line Loading @@ -44,13 +44,6 @@ clean : ## preview : Build website locally for checking. preview : $(DST_ALL) # Pattern for slides (different parameters and template). motivation.html : motivation.md _layouts/slides.revealjs Makefile ${PANDOC} -s -t revealjs --slide-level 2 \ ${PANDOC_FLAGS} \ --template=_layouts/slides \ -o $@ $< # Pattern to build a generic page. %.html : %.md _layouts/page.html $(FILTERS) ${PANDOC} -s -t html \ Loading
tools/check.py +0 −12 Original line number Diff line number Diff line Loading @@ -542,16 +542,6 @@ class TopicPageValidator(MarkdownValidator): return all(tests) and parent_tests class MotivationPageValidator(MarkdownValidator): """Validate motivation.md""" WARN_ON_EXTRA_HEADINGS = False DOC_HEADERS = {"layout": vh.is_str, "title": vh.is_str, "subtitle": vh.is_str} # TODO: How to validate? May be a mix of reveal.js (HTML) + markdown. class ReferencePageValidator(MarkdownValidator): """Validate reference.md""" HEADINGS = ["Glossary"] Loading Loading @@ -678,7 +668,6 @@ class DiscussionPageValidator(MarkdownValidator): # Dict of {name: (Validator, filename_pattern)} LESSON_TEMPLATES = {"index": (IndexPageValidator, "^index"), "topic": (TopicPageValidator, "^[0-9]{2}-.*"), "motivation": (MotivationPageValidator, "^motivation"), "reference": (ReferencePageValidator, "^reference"), "instructor": (InstructorPageValidator, "^instructors"), "license": (LicensePageValidator, "^LICENSE"), Loading Loading @@ -786,7 +775,6 @@ def check_required_files(dir_to_validate): "index.md", "instructors.md", "LICENSE.md", "motivation.md", "README.md", "reference.md"] valid = True Loading
tools/test_check.py +0 −15 Original line number Diff line number Diff line Loading @@ -99,7 +99,6 @@ This will parse as a string, not a dictionary ## Other Resources * [Motivation](motivation.html) * [Reference Guide](reference.html) * [Next Steps](discussion.html) * [Instructor's Guide](instructors.html)""") Loading @@ -114,7 +113,6 @@ This will parse as a string, not a dictionary ## Other Resources * [Motivation](motivation.html) * [Reference Guide](reference.html) * [Next Steps](discussion.html) * [Instructor's Guide](instructors.html)""") Loading @@ -141,7 +139,6 @@ Paragraph of introductory material. ## Other Resources * [Motivation](motivation.html) * [Reference Guide](reference.html) * [Next Steps](discussion.html) * [Instructor's Guide](instructors.html)""") Loading @@ -161,7 +158,6 @@ Paragraph of introductory material. ## Other Resources * [Motivation](motivation.html) * [Reference Guide](reference.html) * [Instructor's Guide](instructors.html) Loading Loading @@ -444,17 +440,6 @@ Spacer paragraph self.assertTrue(res) class TestMotivationPage(BaseTemplateTest): """Verifies that the instructors page validator works as expected""" SAMPLE_FILE = os.path.join(MARKDOWN_DIR, "motivation.md") VALIDATOR = check.MotivationPageValidator def test_sample_file_passes_validation(self): sample_validator = self.VALIDATOR(self.SAMPLE_FILE) res = sample_validator.validate() self.assertTrue(res) class TestReferencePage(BaseTemplateTest): """Verifies that the reference page validator works as expected""" SAMPLE_FILE = os.path.join(MARKDOWN_DIR, "reference.md") Loading