fix(lecture): leave prerequisites off a lecture's pages
A target taught in one lecture can name a later lecture that builds on it, and every page printed whatever named the lecture, so L4.2 opened with five objectives from L3.2, L3.5, and L4.1. A lecture's objectives, readings, and page now show an entry only when the lecture lists its objective in teaches, or when no earlier lecture covers it. The lectures: link is unchanged, so assembly, coverage, and the reports' review lists still read it. Reading prose that cites an objective or target from another lecture now renders as its number on that lecture's page (L3.5's T 1) rather than the target's full text. The trailing (T ...) list stays this page's own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
4 files changed
+222
-9
No files matched your search
@@ -177,6 +177,7 @@ $ coursebank lecture glossary --out site/glossary.qmd
|
||||
```
|
||||
|
||||
`lecture page` writes, in order: the lecture's description; each objective with its description and its targets, each with its explanation and its ceiling named by `policy.levels`; the new terms; earlier terms, linked; the equations; the numbers to know; common mistakes; readings, with minutes; and materials.
|
||||
A lecture's pages show what it teaches, not what it builds on: an objective or target already covered in an earlier lecture is left off, even when it names this lecture in `lectures:`, unless the lecture lists its objective in `teaches`.
|
||||
`lecture glossary` lists every term alphabetically with its definition and first lecture, then every equation and value.
|
||||
Both write Quarto Markdown by default (numbered targets as `(@)` example lists, anchors as `{#glossary-term-...}`), or plain Markdown with `--style plain`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user