@allons-y/course-kit 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/LICENSE +373 -0
  2. package/README.md +90 -2
  3. package/assets/fonts/instrument-sans-italic-var.woff2 +0 -0
  4. package/assets/fonts/instrument-sans-var.woff2 +0 -0
  5. package/assets/fonts/pt-mono.woff2 +0 -0
  6. package/assets/scripts/copy.js +99 -0
  7. package/assets/scripts/deck.js +161 -0
  8. package/assets/scripts/email.js +19 -0
  9. package/assets/scripts/practice.js +545 -0
  10. package/assets/scripts/theme-panel.js +647 -0
  11. package/assets/scripts/theme-restore.js +17 -0
  12. package/assets/styles/base.css +2091 -0
  13. package/assets/styles/deck.css +968 -0
  14. package/assets/styles/font.css +36 -0
  15. package/assets/styles/notes.css +137 -0
  16. package/assets/styles/print.css +428 -0
  17. package/assets/styles/semantics.css +101 -0
  18. package/components/practice/check-controls.webc +50 -0
  19. package/components/practice/choice-list.webc +86 -0
  20. package/components/practice/cite-panel.webc +108 -0
  21. package/components/practice/practice-figure.webc +47 -0
  22. package/components/practice/practice-fill.webc +154 -0
  23. package/components/practice/practice-grid.webc +82 -0
  24. package/components/practice/practice-judge.webc +165 -0
  25. package/components/practice/practice-match.webc +178 -0
  26. package/components/practice/practice-question.webc +141 -0
  27. package/components/practice/practice-selfcheck.webc +40 -0
  28. package/components/practice/practice-terms.webc +95 -0
  29. package/components/practice/practice-tree.webc +91 -0
  30. package/components/practice/practice-worksheet.webc +369 -0
  31. package/components/site/copyright.webc +13 -0
  32. package/components/site/course-documents.webc +27 -0
  33. package/components/site/course-now.webc +393 -0
  34. package/components/site/course-summary.webc +136 -0
  35. package/components/site/demo-weeks.webc +91 -0
  36. package/components/site/glossary-entry.webc +31 -0
  37. package/components/site/glossary-panel.webc +1482 -0
  38. package/components/site/glossary.webc +45 -0
  39. package/components/site/grading.webc +50 -0
  40. package/components/site/instructor.webc +432 -0
  41. package/components/site/masthead.webc +147 -0
  42. package/components/site/nav-links.webc +174 -0
  43. package/components/site/policies.webc +17 -0
  44. package/components/site/practice-index.webc +31 -0
  45. package/components/site/schedule-overview.webc +145 -0
  46. package/components/site/schedule-weeks.webc +589 -0
  47. package/components/site/site-footer.webc +119 -0
  48. package/components/site/slide-timetable.webc +152 -0
  49. package/components/site/syllabus.webc +370 -0
  50. package/components/ui/arrow-link.webc +19 -0
  51. package/components/ui/assigned-list.webc +101 -0
  52. package/components/ui/callout.webc +11 -0
  53. package/components/ui/card-list.webc +124 -0
  54. package/components/ui/codepen-embed.webc +123 -0
  55. package/components/ui/download-button.webc +49 -0
  56. package/components/ui/eyebrow.webc +18 -0
  57. package/components/ui/icons/github.webc +6 -0
  58. package/components/ui/icons/google.webc +9 -0
  59. package/components/ui/link-list.webc +130 -0
  60. package/components/ui/link-section.webc +40 -0
  61. package/components/ui/meeting-card.webc +73 -0
  62. package/components/ui/meeting-decks.webc +38 -0
  63. package/components/ui/table-rubric.webc +251 -0
  64. package/components/ui/today-link.webc +43 -0
  65. package/components/ui/today-marker.webc +149 -0
  66. package/components/ui/week-block.webc +53 -0
  67. package/examples/starter/_data/course.json +20 -0
  68. package/examples/starter/_data/dates.json +16 -0
  69. package/examples/starter/_data/grading.json +6 -0
  70. package/examples/starter/_data/instructor.json +7 -0
  71. package/examples/starter/_data/policies.json +9 -0
  72. package/examples/starter/_data/scale.json +8 -0
  73. package/examples/starter/_data/schedule.json +22 -0
  74. package/examples/starter/_data/theme.json +17 -0
  75. package/examples/starter/content/index.webc +12 -0
  76. package/examples/starter/content/schedule.webc +12 -0
  77. package/examples/starter/content/slides/index.11tydata.js +5 -0
  78. package/examples/starter/content/slides/index.webc +12 -0
  79. package/examples/starter/content/slides/week-1-day-1.md +40 -0
  80. package/examples/starter/eleventy.config.js +8 -0
  81. package/glue/deck-notes.data.js +41 -0
  82. package/glue/deck-notes.webc +32 -0
  83. package/glue/lesson-day.data.js +17 -0
  84. package/glue/lesson-day.webc +0 -0
  85. package/glue/lesson-plans.data.js +13 -0
  86. package/glue/lesson-plans.webc +2 -0
  87. package/index.js +6 -0
  88. package/layouts/base.webc +79 -0
  89. package/layouts/deck.webc +46 -0
  90. package/layouts/demo.webc +16 -0
  91. package/layouts/document.webc +10 -0
  92. package/layouts/lesson-detail.webc +109 -0
  93. package/layouts/lesson.webc +71 -0
  94. package/layouts/notes.webc +23 -0
  95. package/layouts/worksheet.webc +52 -0
  96. package/lib/assets.js +42 -0
  97. package/lib/bundles.js +79 -0
  98. package/lib/check.js +110 -0
  99. package/lib/components.js +19 -0
  100. package/lib/copy.js +656 -0
  101. package/lib/data/build.js +22 -0
  102. package/lib/data/fonts.js +16 -0
  103. package/lib/data/glossary.js +304 -0
  104. package/lib/data/index.js +8 -0
  105. package/lib/data/lessons.js +173 -0
  106. package/lib/data/project.js +22 -0
  107. package/lib/data/read.js +61 -0
  108. package/lib/data/site.js +70 -0
  109. package/lib/data/term.js +80 -0
  110. package/lib/extensions.js +70 -0
  111. package/lib/files.js +14 -0
  112. package/lib/filters.js +584 -0
  113. package/lib/fit.js +106 -0
  114. package/lib/glue.js +26 -0
  115. package/lib/lesson-materials.js +66 -0
  116. package/lib/markdown.js +568 -0
  117. package/lib/minify.js +53 -0
  118. package/lib/paths.js +5 -0
  119. package/lib/pdf.js +134 -0
  120. package/lib/plugin.js +231 -0
  121. package/lib/plugins.js +34 -0
  122. package/lib/postcss.js +93 -0
  123. package/lib/theme-server.js +88 -0
  124. package/lib/theme.js +185 -0
  125. package/lib/worksheet-dialect.js +415 -0
  126. package/lib/worksheets.js +276 -0
  127. package/package.json +119 -4
  128. package/schemas/course.schema.json +161 -0
  129. package/schemas/dates.schema.json +165 -0
  130. package/schemas/grading.schema.json +59 -0
  131. package/schemas/instructor.schema.json +76 -0
  132. package/schemas/policies.schema.json +90 -0
  133. package/schemas/project.schema.json +209 -0
  134. package/schemas/scale.schema.json +68 -0
  135. package/schemas/schedule.schema.json +260 -0
  136. package/schemas/theme.schema.json +704 -0
  137. package/schemas/worksheet.schema.json +449 -0
@@ -0,0 +1,165 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Meredith College academic calendar",
4
+ "description": "The `dates` global: one entry per year, one term per season, read by the kit to build the `term` and `lessons` data (the syllabus dates and the per-meeting lesson calendar). Source: the Meredith College Academic Calendar for the years covered.",
5
+ "type": "object",
6
+ "properties": {
7
+ "$schema": {
8
+ "type": "string"
9
+ },
10
+ "LABELS": {
11
+ "description": "Display names for holidays, keyed by the holiday's (start) date.",
12
+ "type": "object",
13
+ "patternProperties": {
14
+ "^\\d{4}-\\d{2}-\\d{2}$": {
15
+ "type": "string"
16
+ }
17
+ },
18
+ "additionalProperties": false
19
+ }
20
+ },
21
+ "patternProperties": {
22
+ "^\\d{4}$": {
23
+ "description": "A calendar year, holding one term per season key.",
24
+ "type": "object",
25
+ "additionalProperties": {
26
+ "$ref": "#/$defs/term"
27
+ }
28
+ }
29
+ },
30
+ "additionalProperties": false,
31
+ "$defs": {
32
+ "isoDate": {
33
+ "type": "string",
34
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
35
+ },
36
+ "term": {
37
+ "type": "object",
38
+ "required": [
39
+ "start",
40
+ "end",
41
+ "deadlines",
42
+ "holidays",
43
+ "midTerm",
44
+ "finalExams"
45
+ ],
46
+ "properties": {
47
+ "start": {
48
+ "description": "First day of classes.",
49
+ "$ref": "#/$defs/isoDate"
50
+ },
51
+ "end": {
52
+ "description": "Last day of classes.",
53
+ "$ref": "#/$defs/isoDate"
54
+ },
55
+ "deadlines": {
56
+ "description": "Registrar deadlines, keyed by name. `audience` says who the date is surfaced to — \"students\" entries appear in the syllabus Key Semester Dates list, \"faculty\" entries only on the instructor lesson pages.",
57
+ "type": "object",
58
+ "additionalProperties": {
59
+ "type": "object",
60
+ "required": [
61
+ "date",
62
+ "label",
63
+ "audience"
64
+ ],
65
+ "properties": {
66
+ "date": {
67
+ "$ref": "#/$defs/isoDate"
68
+ },
69
+ "label": {
70
+ "type": "string"
71
+ },
72
+ "audience": {
73
+ "enum": [
74
+ "students",
75
+ "faculty"
76
+ ]
77
+ }
78
+ },
79
+ "additionalProperties": false
80
+ }
81
+ },
82
+ "preRegistration": {
83
+ "description": "The day pre-registration for the NEXT term opens; instructor-facing (a heads-up that advisees will come asking about the schedule).",
84
+ "$ref": "#/$defs/isoDate"
85
+ },
86
+ "substitutions": {
87
+ "description": "College-wide schedule-substitution days, mapping an ISO date to the weekday whose class schedule runs that day. Example: 2026-09-09 is a Wednesday, but the College runs Monday classes that day to make up the meeting lost to Labor Day — so a MWF section meets, a Tue/Thu section does not. The kit flags these on the lesson overview and per-day pages.",
88
+ "type": "object",
89
+ "patternProperties": {
90
+ "^\\d{4}-\\d{2}-\\d{2}$": {
91
+ "enum": [
92
+ "Monday",
93
+ "Tuesday",
94
+ "Wednesday",
95
+ "Thursday",
96
+ "Friday"
97
+ ]
98
+ }
99
+ },
100
+ "additionalProperties": false
101
+ },
102
+ "holidays": {
103
+ "description": "No-class days: a bare ISO date for a single day, or `{ start, end }` for a multi-day break (inclusive). Display names live in LABELS, keyed by the (start) date.",
104
+ "type": "array",
105
+ "items": {
106
+ "anyOf": [
107
+ {
108
+ "$ref": "#/$defs/isoDate"
109
+ },
110
+ {
111
+ "type": "object",
112
+ "required": [
113
+ "start",
114
+ "end"
115
+ ],
116
+ "properties": {
117
+ "start": {
118
+ "$ref": "#/$defs/isoDate"
119
+ },
120
+ "end": {
121
+ "$ref": "#/$defs/isoDate"
122
+ }
123
+ },
124
+ "additionalProperties": false
125
+ }
126
+ ]
127
+ }
128
+ },
129
+ "midTerm": {
130
+ "description": "The official mid-point of the term (progress-report cutoff), used when planning test placement.",
131
+ "$ref": "#/$defs/isoDate"
132
+ },
133
+ "readingDays": {
134
+ "description": "Study days between classes and exams — no classes or exams may be held.",
135
+ "type": "array",
136
+ "items": {
137
+ "$ref": "#/$defs/isoDate"
138
+ }
139
+ },
140
+ "readingDay": {
141
+ "description": "Single-day form of readingDays.",
142
+ "$ref": "#/$defs/isoDate"
143
+ },
144
+ "finalExams": {
145
+ "description": "The College's examination window; each section's exact slot comes from the registrar and lives in the course data (`finalExam`).",
146
+ "type": "object",
147
+ "required": [
148
+ "start",
149
+ "end"
150
+ ],
151
+ "properties": {
152
+ "start": {
153
+ "$ref": "#/$defs/isoDate"
154
+ },
155
+ "end": {
156
+ "$ref": "#/$defs/isoDate"
157
+ }
158
+ },
159
+ "additionalProperties": false
160
+ }
161
+ },
162
+ "additionalProperties": false
163
+ }
164
+ }
165
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "/schemas/grading.schema.json",
4
+ "title": "Grading",
5
+ "description": "Grade breakdown keyed by category — the evaluation components and the formula for the final grade that Meredith requires on the syllabus. Every graded activity needs its own category, and the weights MUST total 100%; the build warns when they do not. The PRESENCE of `homework`, `project`, and `final` keys toggles related copy in templates, so key names are part of the contract. Key order is display order.",
6
+ "type": "object",
7
+ "properties": {
8
+ "$schema": {
9
+ "type": "string",
10
+ "description": "Relative path to this schema, for editor validation."
11
+ },
12
+ "participation": {
13
+ "$ref": "#/$defs/gradingCategory",
14
+ "description": "In-class credit (labs, participation). If this category exists, attendance affects the grade, and Meredith requires policies.attendance to state expectations AND consequences."
15
+ },
16
+ "homework": {
17
+ "$ref": "#/$defs/gradingCategory"
18
+ },
19
+ "tests": {
20
+ "$ref": "#/$defs/gradingCategory"
21
+ },
22
+ "project": {
23
+ "$ref": "#/$defs/gradingCategory"
24
+ },
25
+ "final": {
26
+ "$ref": "#/$defs/gradingCategory",
27
+ "description": "The final exam — the culminating experience Meredith strongly encourages during the exam period. Its presence renders the exam-slot copy from schedule.finalExam (or the exam-period fallback until the registrar publishes the slot)."
28
+ }
29
+ },
30
+ "additionalProperties": true,
31
+ "required": [],
32
+ "minProperties": 2,
33
+ "$defs": {
34
+ "gradingCategory": {
35
+ "type": "object",
36
+ "properties": {
37
+ "title": {
38
+ "type": "string",
39
+ "description": "Category heading as shown on the syllabus."
40
+ },
41
+ "weight": {
42
+ "type": "string",
43
+ "pattern": "^[0-9]{1,2}%$",
44
+ "description": "Share of the final grade, as a percentage string. All categories together must total 100%."
45
+ },
46
+ "body": {
47
+ "type": "string",
48
+ "description": "Policy prose for the category (due dates, make-up rules, late-work pointer)."
49
+ }
50
+ },
51
+ "required": [
52
+ "title",
53
+ "weight",
54
+ "body"
55
+ ],
56
+ "additionalProperties": false
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "/schemas/instructor.schema.json",
4
+ "title": "Instructor",
5
+ "description": "The `instructor` global (_data/instructor.json): the instructor's name, office location, contact information, and office hours that Meredith College requires on every syllabus. Rendered by the `<instructor>` component. The kit encodes `email` so the address never appears in served markup; a script decodes it for the reader. Property order here is the suggested authoring order.",
6
+ "type": "object",
7
+ "properties": {
8
+ "$schema": {
9
+ "type": "string",
10
+ "description": "Relative path to this schema, for editor validation."
11
+ },
12
+ "name": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "Full name as it should appear on the syllabus."
16
+ },
17
+ "office": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "description": "Office location — building and room (e.g. SMB 251). Meredith requires it on the syllabus."
21
+ },
22
+ "hours": {
23
+ "type": "array",
24
+ "minItems": 1,
25
+ "items": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "description": "Office hours as displayed, one entry per block; \"by appointment\" is a valid single entry. Meredith requires office hours on the syllabus. Joined with semicolons in the template."
30
+ },
31
+ "email": {
32
+ "type": "string",
33
+ "format": "email",
34
+ "description": "Plain address; write it normally. The kit encodes it at build time and a script fills in the link for the reader. The printed syllabus shows it."
35
+ },
36
+ "profile": {
37
+ "type": "string",
38
+ "format": "uri",
39
+ "description": "Optional public profile the name links to."
40
+ },
41
+ "blog": {
42
+ "type": "string",
43
+ "format": "uri",
44
+ "description": "Optional personal site or blog, shown as its own row in the instructor panel."
45
+ },
46
+ "contactLinks": {
47
+ "enum": [
48
+ "rows",
49
+ "icons"
50
+ ],
51
+ "default": "rows",
52
+ "description": "How the email, the message link and the blog are shown in the instructor panel: `rows` (the default) lists them in the fact list; `icons` shows each as an icon link in the top right of the panel, with the address or host printed in its place. The `<instructor>` tag's `contact-links` attribute overrides it."
53
+ },
54
+ "photo": {
55
+ "type": "string",
56
+ "pattern": "^/images/",
57
+ "description": "Optional headshot, a site-relative path under /images/ (the file lives in content/assets/images/). Shown on screen beside the instructor details; omitted from print, where the instructor collapses to one line."
58
+ },
59
+ "note": {
60
+ "type": "string",
61
+ "description": "Response-time expectation, rendered muted after the contact details."
62
+ },
63
+ "contact": {
64
+ "type": "string",
65
+ "pattern": "^/",
66
+ "description": "Site-relative path of the contact page, shown on screen in place of the address."
67
+ }
68
+ },
69
+ "required": [
70
+ "name",
71
+ "office",
72
+ "hours",
73
+ "email"
74
+ ],
75
+ "additionalProperties": false
76
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "/schemas/policies.schema.json",
4
+ "title": "Policies",
5
+ "description": "The `policies` global (_data/policies.json): every policy in the syllabus Policies section (the `<policies>` component renders one <details> per key, forced open in the printed PDF). Key order is display order. The `required` list is exactly what Meredith College requires on every syllabus — the attendance policy and the five College statements. College statements use the College's approved wording from my.meredith.edu/pages/syllabus_statements or reference it by link; never paraphrase one.",
6
+ "type": "object",
7
+ "properties": {
8
+ "$schema": {
9
+ "type": "string",
10
+ "description": "Relative path to this schema, for editor validation."
11
+ },
12
+ "ai": {
13
+ "$ref": "#/$defs/policy",
14
+ "description": "Course AI-use summary; `href` links the full policy page."
15
+ },
16
+ "attendance": {
17
+ "$ref": "#/$defs/policy",
18
+ "description": "Attendance Policy (Meredith-required). If attendance affects the grade — any in-class credit category in grading.json — state expectations AND consequences."
19
+ },
20
+ "lateWork": {
21
+ "$ref": "#/$defs/policy",
22
+ "description": "Late-work penalty and extension rules."
23
+ },
24
+ "honorCode": {
25
+ "$ref": "#/$defs/policy",
26
+ "description": "Honor Code Statement (Meredith-required). By reference until the College's approved wording is pasted into `body`."
27
+ },
28
+ "dei": {
29
+ "$ref": "#/$defs/policy",
30
+ "description": "Diversity, Equity, and Inclusion Statement (Meredith-required). By reference until the College's approved wording is pasted into `body`."
31
+ },
32
+ "disabilities": {
33
+ "$ref": "#/$defs/policy",
34
+ "description": "Accessibility Statement (Meredith-required): Disability Services contact and the accommodation process."
35
+ },
36
+ "titleIX": {
37
+ "$ref": "#/$defs/policy",
38
+ "description": "Sexual Misconduct / Title IX Statement (Meredith-required). By reference until the College's approved wording is pasted into `body`."
39
+ },
40
+ "inclementWeather": {
41
+ "$ref": "#/$defs/policy",
42
+ "description": "Inclement Weather Policy (Meredith-required)."
43
+ },
44
+ "collegePolicies": {
45
+ "$ref": "#/$defs/policy",
46
+ "description": "Pointer to the College's full syllabus-statements page for anything not stated above."
47
+ }
48
+ },
49
+ "required": [
50
+ "attendance",
51
+ "honorCode",
52
+ "dei",
53
+ "disabilities",
54
+ "titleIX",
55
+ "inclementWeather"
56
+ ],
57
+ "additionalProperties": {
58
+ "$ref": "#/$defs/policy"
59
+ },
60
+ "$defs": {
61
+ "policy": {
62
+ "type": "object",
63
+ "properties": {
64
+ "title": {
65
+ "type": "string",
66
+ "minLength": 1,
67
+ "description": "Heading shown in the <summary>."
68
+ },
69
+ "body": {
70
+ "type": "string",
71
+ "minLength": 1,
72
+ "description": "The policy text, one paragraph."
73
+ },
74
+ "href": {
75
+ "type": "string",
76
+ "description": "Optional link to the full policy or the College's page."
77
+ },
78
+ "hrefText": {
79
+ "type": "string",
80
+ "description": "Link text; the template defaults to \"Read the full policy\"."
81
+ }
82
+ },
83
+ "required": [
84
+ "title",
85
+ "body"
86
+ ],
87
+ "additionalProperties": false
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,209 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "/schemas/project.schema.json",
4
+ "title": "Project",
5
+ "description": "A staged course project. Present only for sections that run one. Structured, cross-referenced values live here rather than in the page prose so the syllabus, the schedule and the project page cannot drift apart.",
6
+ "type": "object",
7
+ "properties": {
8
+ "$schema": {
9
+ "type": "string",
10
+ "description": "Relative path to this schema, for editor validation."
11
+ },
12
+ "title": {
13
+ "type": "string",
14
+ "description": "Display name; should match `grading.project.title`."
15
+ },
16
+ "url": {
17
+ "type": "string",
18
+ "description": "Site path of the project page; schedule deadlines derived from the milestones link here."
19
+ },
20
+ "weight": {
21
+ "type": "number",
22
+ "description": "Share of the COURSE grade, as a percentage (25 means 25%). This is not the project's own scale, and `components` do not sum to it."
23
+ },
24
+ "scale": {
25
+ "type": "number",
26
+ "description": "The project's OWN point scale. The milestones (`components`, or the rubric's milestone criteria when the rubric is the milestone list) sum to exactly this."
27
+ },
28
+ "introduced": {
29
+ "type": "string",
30
+ "format": "date",
31
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
32
+ "description": "Date the project is introduced in class, ISO 8601."
33
+ },
34
+ "due": {
35
+ "type": "string",
36
+ "format": "date",
37
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
38
+ "description": "Date the final submission is due, ISO 8601."
39
+ },
40
+ "dueTime": {
41
+ "type": "string",
42
+ "description": "Clock time the final submission is due, as displayed (e.g. 11:59pm)."
43
+ },
44
+ "components": {
45
+ "type": "array",
46
+ "minItems": 1,
47
+ "items": {
48
+ "$ref": "#/$defs/projectComponent"
49
+ },
50
+ "description": "The dated pieces the project is marked in; their points must sum to `scale`. Omit when the rubric's milestone criteria are the pieces, so the dates live once."
51
+ },
52
+ "rubric": {
53
+ "type": "object",
54
+ "description": "Final-project grading rubric, rendered by the standalone rubric page.",
55
+ "properties": {
56
+ "total": {
57
+ "type": "number",
58
+ "description": "Total available points; should equal the sum of each criterion's best level."
59
+ },
60
+ "levels": {
61
+ "type": "array",
62
+ "minItems": 1,
63
+ "items": {
64
+ "type": "string"
65
+ },
66
+ "description": "Achievement-level column headings, best first (e.g. Excellent, Satisfactory, Unsatisfactory)."
67
+ },
68
+ "criteria": {
69
+ "type": "array",
70
+ "minItems": 1,
71
+ "items": {
72
+ "$ref": "#/$defs/rubricCriterion"
73
+ }
74
+ }
75
+ },
76
+ "required": [
77
+ "total",
78
+ "levels",
79
+ "criteria"
80
+ ],
81
+ "additionalProperties": false
82
+ }
83
+ },
84
+ "required": [
85
+ "title",
86
+ "weight",
87
+ "scale",
88
+ "due",
89
+ "rubric"
90
+ ],
91
+ "additionalProperties": true,
92
+ "$defs": {
93
+ "projectComponent": {
94
+ "type": "object",
95
+ "properties": {
96
+ "name": {
97
+ "type": "string",
98
+ "description": "Display name of the piece (e.g. Plan, Check-in, Final submission, Demo)."
99
+ },
100
+ "date": {
101
+ "type": "string",
102
+ "format": "date",
103
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
104
+ "description": "Date the piece is due, ISO 8601 (interpreted as UTC when formatted). Rendered through the `fullDate` filter — never author a display string here."
105
+ },
106
+ "points": {
107
+ "type": "number",
108
+ "description": "Points this piece carries on the project's own scale."
109
+ },
110
+ "dueTime": {
111
+ "type": "string",
112
+ "description": "When on that date the piece is due, as students read it (e.g. 11:59PM, start of class, in class). Omit when the date is enough. Shown on the schedule beside the date."
113
+ }
114
+ },
115
+ "required": [
116
+ "name",
117
+ "date",
118
+ "points"
119
+ ],
120
+ "additionalProperties": false
121
+ },
122
+ "rubricCriterion": {
123
+ "oneOf": [
124
+ {
125
+ "$ref": "#/$defs/matrixCriterion"
126
+ },
127
+ {
128
+ "$ref": "#/$defs/milestoneCriterion"
129
+ }
130
+ ]
131
+ },
132
+ "matrixCriterion": {
133
+ "type": "object",
134
+ "description": "A row of the levels matrix: one criterion scored at each achievement level.",
135
+ "properties": {
136
+ "title": {
137
+ "type": "string"
138
+ },
139
+ "levels": {
140
+ "type": "array",
141
+ "minItems": 1,
142
+ "items": {
143
+ "$ref": "#/$defs/rubricLevel"
144
+ },
145
+ "description": "One entry per achievement level, in the same order as `rubric.levels`."
146
+ }
147
+ },
148
+ "required": [
149
+ "title",
150
+ "levels"
151
+ ],
152
+ "additionalProperties": false
153
+ },
154
+ "milestoneCriterion": {
155
+ "type": "object",
156
+ "description": "A dated milestone with a point value, rendered as a row of the milestone table.",
157
+ "properties": {
158
+ "id": {
159
+ "type": "string",
160
+ "description": "Short label shown above the title (e.g. M1)."
161
+ },
162
+ "title": {
163
+ "type": "string"
164
+ },
165
+ "due": {
166
+ "type": "string",
167
+ "format": "date",
168
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
169
+ "description": "ISO date, rendered through the `fullDate` filter; never a display string."
170
+ },
171
+ "dueTime": {
172
+ "type": "string",
173
+ "description": "Clock time or phrase as students read it (e.g. 11:59PM, in class)."
174
+ },
175
+ "points": {
176
+ "type": "number"
177
+ },
178
+ "description": {
179
+ "type": "string",
180
+ "description": "What is graded."
181
+ }
182
+ },
183
+ "required": [
184
+ "title",
185
+ "points"
186
+ ],
187
+ "additionalProperties": false
188
+ },
189
+ "rubricLevel": {
190
+ "type": "object",
191
+ "properties": {
192
+ "points": {
193
+ "type": "number",
194
+ "minimum": 0,
195
+ "description": "Points awarded at this level."
196
+ },
197
+ "description": {
198
+ "type": "string",
199
+ "description": "What work at this level looks like."
200
+ }
201
+ },
202
+ "required": [
203
+ "points",
204
+ "description"
205
+ ],
206
+ "additionalProperties": false
207
+ }
208
+ }
209
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "/schemas/scale.schema.json",
4
+ "title": "Grading scale",
5
+ "description": "The `scale` global (_data/scale.json): letter-grade bands — the grading scale Meredith College requires on every syllabus, rendered by the `<grading>` component. Bands are a MINIMUM, not a closed range: closed integer ranges (90–100, 80–89, …) leave every fractional average between them unassigned, so a weighted 89.5 belonged to no letter. `min` reads \"this score and above\"; the failing band carries `max` instead and reads \"below that score\". Key order is display order — keep letters descending.",
6
+ "type": "object",
7
+ "properties": {
8
+ "$schema": {
9
+ "type": "string",
10
+ "description": "Relative path to this schema, for editor validation."
11
+ },
12
+ "A": {
13
+ "$ref": "#/$defs/band"
14
+ },
15
+ "B": {
16
+ "$ref": "#/$defs/band"
17
+ },
18
+ "C": {
19
+ "$ref": "#/$defs/band"
20
+ },
21
+ "D": {
22
+ "$ref": "#/$defs/band"
23
+ },
24
+ "F": {
25
+ "$ref": "#/$defs/band",
26
+ "description": "The failing band; carries `max`, not `min`."
27
+ }
28
+ },
29
+ "required": [
30
+ "A",
31
+ "F"
32
+ ],
33
+ "additionalProperties": {
34
+ "$ref": "#/$defs/band"
35
+ },
36
+ "$defs": {
37
+ "band": {
38
+ "type": "object",
39
+ "properties": {
40
+ "min": {
41
+ "type": "number",
42
+ "minimum": 0,
43
+ "maximum": 100,
44
+ "description": "Lowest weighted average that earns this letter (inclusive)."
45
+ },
46
+ "max": {
47
+ "type": "number",
48
+ "minimum": 0,
49
+ "maximum": 100,
50
+ "description": "Failing band only: every average below this score."
51
+ }
52
+ },
53
+ "oneOf": [
54
+ {
55
+ "required": [
56
+ "min"
57
+ ]
58
+ },
59
+ {
60
+ "required": [
61
+ "max"
62
+ ]
63
+ }
64
+ ],
65
+ "additionalProperties": false
66
+ }
67
+ }
68
+ }