feat: export one source-bound session result as a static ZIP

This commit is contained in:
cflmy committed 2026-11-24 13:43:27 +08:00
1 parent 3081581b0b
commit aa2a2b3ce4
23 files changed
+1816 -114

No files matched your search

+7
View File
@@ -63,6 +63,13 @@ pub fn collect(
result
}
pub fn digests(media: &BTreeMap<String, Arc<Media>>) -> BTreeMap<String, String> {
media
.values()
.map(|item| (item.path.to_string(), item.digest.clone()))
.collect()
}
fn scan_blocks<'a>(blocks: &'a [DocBlock], urls: &mut BTreeSet<&'a str>) {
for block in blocks {
match block {