@allons-y/course-kit 0.0.0-stage → 0.1.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.
- package/LICENSE +373 -0
- package/README.md +90 -2
- package/assets/fonts/instrument-sans-italic-var.woff2 +0 -0
- package/assets/fonts/instrument-sans-var.woff2 +0 -0
- package/assets/fonts/pt-mono.woff2 +0 -0
- package/assets/scripts/copy.js +99 -0
- package/assets/scripts/deck.js +161 -0
- package/assets/scripts/email.js +17 -0
- package/assets/scripts/practice.js +545 -0
- package/assets/scripts/theme-panel.js +647 -0
- package/assets/scripts/theme-restore.js +17 -0
- package/assets/styles/base.css +2090 -0
- package/assets/styles/deck.css +968 -0
- package/assets/styles/font.css +36 -0
- package/assets/styles/notes.css +137 -0
- package/assets/styles/print.css +428 -0
- package/assets/styles/semantics.css +101 -0
- package/components/practice/check-controls.webc +50 -0
- package/components/practice/choice-list.webc +86 -0
- package/components/practice/cite-panel.webc +108 -0
- package/components/practice/practice-figure.webc +47 -0
- package/components/practice/practice-fill.webc +154 -0
- package/components/practice/practice-grid.webc +82 -0
- package/components/practice/practice-judge.webc +165 -0
- package/components/practice/practice-match.webc +178 -0
- package/components/practice/practice-question.webc +141 -0
- package/components/practice/practice-selfcheck.webc +40 -0
- package/components/practice/practice-terms.webc +95 -0
- package/components/practice/practice-tree.webc +91 -0
- package/components/practice/practice-worksheet.webc +369 -0
- package/components/site/copyright.webc +13 -0
- package/components/site/course-documents.webc +27 -0
- package/components/site/course-now.webc +393 -0
- package/components/site/course-summary.webc +136 -0
- package/components/site/demo-weeks.webc +91 -0
- package/components/site/glossary-entry.webc +31 -0
- package/components/site/glossary-panel.webc +1482 -0
- package/components/site/glossary.webc +45 -0
- package/components/site/grading.webc +50 -0
- package/components/site/instructor.webc +269 -0
- package/components/site/masthead.webc +147 -0
- package/components/site/nav-links.webc +174 -0
- package/components/site/policies.webc +17 -0
- package/components/site/practice-index.webc +31 -0
- package/components/site/schedule-overview.webc +145 -0
- package/components/site/schedule-weeks.webc +589 -0
- package/components/site/site-footer.webc +119 -0
- package/components/site/slide-timetable.webc +152 -0
- package/components/site/syllabus.webc +217 -0
- package/components/ui/arrow-link.webc +19 -0
- package/components/ui/assigned-list.webc +101 -0
- package/components/ui/callout.webc +11 -0
- package/components/ui/card-list.webc +124 -0
- package/components/ui/codepen-embed.webc +123 -0
- package/components/ui/download-button.webc +49 -0
- package/components/ui/eyebrow.webc +18 -0
- package/components/ui/icons/github.webc +6 -0
- package/components/ui/icons/google.webc +9 -0
- package/components/ui/link-list.webc +130 -0
- package/components/ui/link-section.webc +40 -0
- package/components/ui/meeting-card.webc +73 -0
- package/components/ui/meeting-decks.webc +38 -0
- package/components/ui/table-rubric.webc +251 -0
- package/components/ui/today-link.webc +43 -0
- package/components/ui/today-marker.webc +149 -0
- package/components/ui/week-block.webc +53 -0
- package/examples/starter/_data/course.json +20 -0
- package/examples/starter/_data/dates.json +16 -0
- package/examples/starter/_data/grading.json +6 -0
- package/examples/starter/_data/instructor.json +7 -0
- package/examples/starter/_data/policies.json +9 -0
- package/examples/starter/_data/scale.json +8 -0
- package/examples/starter/_data/schedule.json +22 -0
- package/examples/starter/_data/theme.json +17 -0
- package/examples/starter/content/index.webc +12 -0
- package/examples/starter/content/schedule.webc +12 -0
- package/examples/starter/content/slides/index.11tydata.js +5 -0
- package/examples/starter/content/slides/index.webc +12 -0
- package/examples/starter/content/slides/week-1-day-1.md +40 -0
- package/examples/starter/eleventy.config.js +8 -0
- package/glue/deck-notes.data.js +41 -0
- package/glue/deck-notes.webc +32 -0
- package/glue/lesson-day.data.js +17 -0
- package/glue/lesson-day.webc +0 -0
- package/glue/lesson-plans.data.js +13 -0
- package/glue/lesson-plans.webc +2 -0
- package/index.js +6 -0
- package/layouts/base.webc +79 -0
- package/layouts/deck.webc +46 -0
- package/layouts/demo.webc +16 -0
- package/layouts/document.webc +10 -0
- package/layouts/lesson-detail.webc +109 -0
- package/layouts/lesson.webc +71 -0
- package/layouts/notes.webc +23 -0
- package/layouts/worksheet.webc +52 -0
- package/lib/assets.js +42 -0
- package/lib/bundles.js +79 -0
- package/lib/check.js +110 -0
- package/lib/components.js +19 -0
- package/lib/copy.js +653 -0
- package/lib/data/build.js +22 -0
- package/lib/data/fonts.js +16 -0
- package/lib/data/glossary.js +304 -0
- package/lib/data/index.js +8 -0
- package/lib/data/lessons.js +173 -0
- package/lib/data/project.js +22 -0
- package/lib/data/read.js +46 -0
- package/lib/data/site.js +70 -0
- package/lib/data/term.js +80 -0
- package/lib/extensions.js +70 -0
- package/lib/files.js +14 -0
- package/lib/filters.js +584 -0
- package/lib/fit.js +106 -0
- package/lib/glue.js +26 -0
- package/lib/lesson-materials.js +66 -0
- package/lib/markdown.js +568 -0
- package/lib/minify.js +53 -0
- package/lib/paths.js +5 -0
- package/lib/pdf.js +134 -0
- package/lib/plugin.js +228 -0
- package/lib/plugins.js +34 -0
- package/lib/postcss.js +93 -0
- package/lib/theme-server.js +88 -0
- package/lib/theme.js +185 -0
- package/lib/worksheet-dialect.js +415 -0
- package/lib/worksheets.js +276 -0
- package/package.json +118 -4
- package/schemas/course.schema.json +156 -0
- package/schemas/dates.schema.json +165 -0
- package/schemas/grading.schema.json +59 -0
- package/schemas/instructor.schema.json +68 -0
- package/schemas/policies.schema.json +90 -0
- package/schemas/project.schema.json +209 -0
- package/schemas/scale.schema.json +68 -0
- package/schemas/schedule.schema.json +260 -0
- package/schemas/theme.schema.json +704 -0
- package/schemas/worksheet.schema.json +449 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "/schemas/schedule.schema.json",
|
|
4
|
+
"title": "Schedule",
|
|
5
|
+
"description": "Content model for the course schedule (_data/schedule.json) — the course outline Meredith requires on the syllabus: class topics per session, assignment and exam dates, and the final exam. The screen syllabus renders `weeks` as the schedule table; the printed PDF omits the table and prints the fixed dates derived from it instead.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Relative path to this schema, for editor validation."
|
|
11
|
+
},
|
|
12
|
+
"meetings": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"description": "Weekly meeting pattern. Day slots also anchor the lesson calendar (day 1 = the week's first meeting).",
|
|
15
|
+
"properties": {
|
|
16
|
+
"days": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"minItems": 1,
|
|
19
|
+
"uniqueItems": true,
|
|
20
|
+
"items": {
|
|
21
|
+
"enum": [
|
|
22
|
+
"Monday",
|
|
23
|
+
"Tuesday",
|
|
24
|
+
"Wednesday",
|
|
25
|
+
"Thursday",
|
|
26
|
+
"Friday"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"time": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"pattern": "^[0-9]{1,2}:[0-9]{2}(am|AM|pm|PM)[–-][0-9]{1,2}:[0-9]{2}(am|AM|pm|PM)$",
|
|
33
|
+
"description": "Meeting time range, en dash between start and end (e.g. 11:00am–12:20pm)."
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"days",
|
|
38
|
+
"time"
|
|
39
|
+
],
|
|
40
|
+
"additionalProperties": false
|
|
41
|
+
},
|
|
42
|
+
"finalExam": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"description": "The College-assigned slot for the final exam (the culminating experience). Omit until the registrar publishes it — templates fall back to the exam-period copy (\"the exact date and time will be announced in class\"). Rendered through the `examSlot` filter — never author a display string here.",
|
|
45
|
+
"properties": {
|
|
46
|
+
"date": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": "date",
|
|
49
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
|
|
50
|
+
"description": "Exam date, ISO 8601 (interpreted as UTC when formatted)."
|
|
51
|
+
},
|
|
52
|
+
"start": {
|
|
53
|
+
"$ref": "#/$defs/clockTime"
|
|
54
|
+
},
|
|
55
|
+
"end": {
|
|
56
|
+
"$ref": "#/$defs/clockTime"
|
|
57
|
+
},
|
|
58
|
+
"note": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Callout for anything surprising about the slot (e.g. an earlier start than the usual meeting time)."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"date",
|
|
65
|
+
"start",
|
|
66
|
+
"end"
|
|
67
|
+
],
|
|
68
|
+
"additionalProperties": false
|
|
69
|
+
},
|
|
70
|
+
"weeks": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"minItems": 1,
|
|
73
|
+
"items": {
|
|
74
|
+
"$ref": "#/$defs/scheduleWeek"
|
|
75
|
+
},
|
|
76
|
+
"description": "Week-by-week plan; the week number is derived from the array index (draft against the academic calendar in dates.json). Also the source for the per-meeting `lessons` array."
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": [
|
|
80
|
+
"meetings",
|
|
81
|
+
"weeks"
|
|
82
|
+
],
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"$defs": {
|
|
85
|
+
"link": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"title": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"description": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Optional description of the link."
|
|
94
|
+
},
|
|
95
|
+
"href": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "Absolute URL for external material, or site-relative path (e.g. /resources/…) for published files."
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": [
|
|
101
|
+
"title",
|
|
102
|
+
"href"
|
|
103
|
+
],
|
|
104
|
+
"additionalProperties": false
|
|
105
|
+
},
|
|
106
|
+
"reading": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"description": "A reading, optionally carrying the reading check students complete before class.",
|
|
109
|
+
"properties": {
|
|
110
|
+
"title": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"description": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "Optional description of the link."
|
|
116
|
+
},
|
|
117
|
+
"href": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"description": "Absolute URL for external material, or site-relative path (e.g. /resources/…) for published files."
|
|
120
|
+
},
|
|
121
|
+
"check": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"description": "What the Brightspace reading check for this reading asks for, phrased for students (e.g. \"3 questions, due by the next class\"). Omit for a reading with no check. Keep the questions themselves in your instructor-only notes, not in this file."
|
|
124
|
+
},
|
|
125
|
+
"kind": {
|
|
126
|
+
"enum": ["test", "graded", "practice", "reading"],
|
|
127
|
+
"description": "What kind of item this is, for its chip on the schedule and the home page. Omit for the default: a due item is \"graded\", a reading with a due date is \"reading\". A reading without a due date has no chip."
|
|
128
|
+
},
|
|
129
|
+
"due": {
|
|
130
|
+
"$ref": "#/$defs/isoDate"
|
|
131
|
+
},
|
|
132
|
+
"dueTime": {
|
|
133
|
+
"$ref": "#/$defs/dueTime"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"required": [
|
|
137
|
+
"title",
|
|
138
|
+
"href"
|
|
139
|
+
],
|
|
140
|
+
"additionalProperties": false
|
|
141
|
+
},
|
|
142
|
+
"isoDate": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"format": "date",
|
|
145
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
|
|
146
|
+
"description": "ISO 8601 date, interpreted as UTC when formatted. Shown through the `dueLabel` helper, never authored as display text."
|
|
147
|
+
},
|
|
148
|
+
"dueTime": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"description": "Time of day the item is due, as students read it (e.g. 11:59PM, noon). Omit for \"during class\" or when the date is enough."
|
|
151
|
+
},
|
|
152
|
+
"deadline": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"description": "Something students hand in, with the date it is due (the Brightspace due date, which is the one that counts). Listed on the meeting on or before the due date.",
|
|
155
|
+
"properties": {
|
|
156
|
+
"title": {
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
"href": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "Optional page for the item: the spec, the brief, or the Brightspace assignment."
|
|
162
|
+
},
|
|
163
|
+
"kind": {
|
|
164
|
+
"enum": ["test", "graded", "practice", "reading"],
|
|
165
|
+
"description": "What kind of item this is, for its chip on the schedule and the home page. Omit for the default: a due item is \"graded\", a reading with a due date is \"reading\". A reading without a due date has no chip."
|
|
166
|
+
},
|
|
167
|
+
"due": {
|
|
168
|
+
"$ref": "#/$defs/isoDate"
|
|
169
|
+
},
|
|
170
|
+
"dueTime": {
|
|
171
|
+
"$ref": "#/$defs/dueTime"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"required": [
|
|
175
|
+
"title",
|
|
176
|
+
"due"
|
|
177
|
+
],
|
|
178
|
+
"additionalProperties": false
|
|
179
|
+
},
|
|
180
|
+
"clockTime": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"pattern": "^[0-9]{1,2}:[0-9]{2}(am|AM|pm|PM)$",
|
|
183
|
+
"description": "12-hour clock time, lowercase meridiem, no space (e.g. 9:00am)."
|
|
184
|
+
},
|
|
185
|
+
"scheduleWeek": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"topics": {
|
|
189
|
+
"type": "array",
|
|
190
|
+
"minItems": 1,
|
|
191
|
+
"items": {
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"description": "Week-level topic summary shown in the public schedule table. A topic that is exactly \"Test <n>\" (e.g. \"Test 1\" — no suffix) is also picked up as a fixed test date on the printed syllabus; descriptive forms like \"Test 1: HTML\" are not. Rendered as HTML, so a topic may carry trusted inline HTML — e.g. <s>…</s> to note a schedule change without deleting the superseded text, the same convention course.json's textbook.access steps use."
|
|
195
|
+
},
|
|
196
|
+
"days": {
|
|
197
|
+
"type": "array",
|
|
198
|
+
"items": {
|
|
199
|
+
"$ref": "#/$defs/dayOverride"
|
|
200
|
+
},
|
|
201
|
+
"description": "Optional per-meeting breakdown; omitted meetings fall back to the week's `topics`. Meredith asks for the outline to be as specific per class session as possible and updated as needed — add a week's days as soon as its meetings are planned."
|
|
202
|
+
},
|
|
203
|
+
"readings": {
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": {
|
|
206
|
+
"$ref": "#/$defs/reading"
|
|
207
|
+
},
|
|
208
|
+
"description": "Reference material students work through BEFORE the week's first meeting (MDN modules, the PHP manual). Optional — omit the key for a week with no assigned reading. Material handed out or posted after class belongs in `resources`."
|
|
209
|
+
},
|
|
210
|
+
"resources": {
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"$ref": "#/$defs/link"
|
|
214
|
+
},
|
|
215
|
+
"description": "Material posted after class (handouts, specs, worksheets, external references); an empty array renders \"Nothing posted yet.\" Pre-class reading belongs in `readings`. Never list slide decks or demos here: each meeting links its own deck (matched by week and day from your slides folder) and demos automatically."
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"required": [
|
|
219
|
+
"topics"
|
|
220
|
+
],
|
|
221
|
+
"additionalProperties": false
|
|
222
|
+
},
|
|
223
|
+
"dayOverride": {
|
|
224
|
+
"type": "object",
|
|
225
|
+
"properties": {
|
|
226
|
+
"day": {
|
|
227
|
+
"type": "integer",
|
|
228
|
+
"minimum": 1,
|
|
229
|
+
"description": "Meeting slot within the week — 1 = the week's first meeting per `meetings.days`, not a weekday number."
|
|
230
|
+
},
|
|
231
|
+
"topics": {
|
|
232
|
+
"type": "array",
|
|
233
|
+
"minItems": 1,
|
|
234
|
+
"items": {
|
|
235
|
+
"type": "string"
|
|
236
|
+
},
|
|
237
|
+
"description": "Replaces the week's `topics` for this meeting on lesson pages. The exact-match \"Test <n>\" convention applies here too — it is how a test lands on one meeting (and one printed date) instead of the whole week. Rendered with @raw, same trusted-inline-HTML convention as the week-level `topics`."
|
|
238
|
+
},
|
|
239
|
+
"readings": {
|
|
240
|
+
"type": "array",
|
|
241
|
+
"items": {
|
|
242
|
+
"$ref": "#/$defs/reading"
|
|
243
|
+
},
|
|
244
|
+
"description": "Reading to finish BEFORE this meeting, with its reading check's due date. Use it instead of the week-level `readings` when the reading checks fall on different days."
|
|
245
|
+
},
|
|
246
|
+
"due": {
|
|
247
|
+
"type": "array",
|
|
248
|
+
"items": {
|
|
249
|
+
"$ref": "#/$defs/deadline"
|
|
250
|
+
},
|
|
251
|
+
"description": "Deadlines to announce at this meeting: the last class on or before each due date, so a Friday deadline sits on Thursday's meeting."
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"required": [
|
|
255
|
+
"day"
|
|
256
|
+
],
|
|
257
|
+
"additionalProperties": false
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|