feat(render): 2.1 lecture page, glossary page, and student reports
Derive each glossary entry's first lecture from teaching order and split a lecture's terms into new and earlier. Add `coursebank lecture page` (objectives with descriptions, targets with explanations and ceilings named by policy.levels, terms, equations, numbers, common mistakes, readings with minutes, materials) and `coursebank lecture glossary`. Render brace references in student prose as links, values, quoted beliefs, or target numbers. Student reports, Markdown and Typst, show what meeting each target looks like, the correction for a registry misconception, and group misses that share one. A test renders every student-facing output from the example and checks that no authoring, notes_private, evidence, conflicts, or status text reaches it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
10 files changed
+1612
-13
No files matched your search
@@ -10,7 +10,9 @@
|
||||
|
||||
use coursebank::course::CourseFile;
|
||||
use coursebank::error::Result;
|
||||
use coursebank::lecture::{objectives_markdown, readings_markdown};
|
||||
use coursebank::lecture::{
|
||||
PageOptions, glossary_markdown, objectives_markdown, page_markdown, readings_markdown,
|
||||
};
|
||||
use coursebank::yaml;
|
||||
|
||||
use crate::cli::{Cli, LectureCommand};
|
||||
@@ -29,6 +31,25 @@ pub(crate) fn lecture(cli: &Cli, sub: &LectureCommand) -> Result<Outcome> {
|
||||
objectives_markdown(&course, id, style.as_style())?,
|
||||
out.as_deref(),
|
||||
),
|
||||
LectureCommand::Page {
|
||||
id,
|
||||
style,
|
||||
glossary_href,
|
||||
out,
|
||||
} => {
|
||||
let options = PageOptions {
|
||||
style: style.as_style(),
|
||||
glossary_href: glossary_href.clone(),
|
||||
};
|
||||
emit(page_markdown(&course, id, &options)?, out.as_deref())
|
||||
}
|
||||
LectureCommand::Glossary { style, out } => {
|
||||
let options = PageOptions {
|
||||
style: style.as_style(),
|
||||
..PageOptions::default()
|
||||
};
|
||||
emit(glossary_markdown(&course, &options), out.as_deref())
|
||||
}
|
||||
LectureCommand::Coverage { lecture: only } => coverage(&course, only.as_deref(), cli.quiet),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user