diff --git a/Makefile b/Makefile index b06646597f429e09727eac10a855cfb68d8da309..97a1e17aefa1947a99555fa9621d105287ea606a 100644 --- a/Makefile +++ b/Makefile @@ -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 \ diff --git a/tools/check.py b/tools/check.py index 484ca8bb72c436b69fc2c68eea86c4a95c3253fe..7aa6a3bf4cda4413c1ab321d2586709748c728fc 100755 --- a/tools/check.py +++ b/tools/check.py @@ -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"] @@ -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"), @@ -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 diff --git a/tools/test_check.py b/tools/test_check.py index 3cbf60dbe0b49f67cfa6669a5f2bc8d6fcf746a5..4b84ab04a7109cfaf85f81e93efa71dfa94049a6 100644 --- a/tools/test_check.py +++ b/tools/test_check.py @@ -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)""") @@ -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)""") @@ -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)""") @@ -161,7 +158,6 @@ Paragraph of introductory material. ## Other Resources -* [Motivation](motivation.html) * [Reference Guide](reference.html) * [Instructor's Guide](instructors.html) @@ -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")