feat: preserve and display archived course file versions

This commit is contained in:
Meghdad committed 2026-08-13 16:55:59 +03:30
1 parent 53b6dad560
commit 3869d94cfe
11 files changed
+301 -16

No files matched your search

+5 -1
View File
@@ -99,6 +99,10 @@ SECTION_NUMBER--ACTIVITY_POSITION--ACTIVITY_ID
Original filenames stay unchanged in the bundle's `files/` directory. Interrupted downloads use a `.part` suffix and resume with HTTP byte ranges. Completed files are skipped unless `--overwrite` is supplied.
When an instructor replaces a resource, the manifest treats the filename currently published by Moodle as the **current** version and keeps other local files as **archived** versions. A replacement with the same filename and a different known size is downloaded automatically; `--overwrite` can force a same-name refresh when Moodle does not report a size. In both cases the existing file is preserved under `files/archive/` before the new download takes its place.
The library's main Play or Open action always uses the current file. Older files remain available in an expandable archived-version list. If a transcript was generated from an archived file, both it and its dependent summary are marked stale; run `ravin transcribe COURSE_ID` and then `ravin summarize COURSE_ID` to regenerate them for the current file.
An activity can also contain generated study material:
```text
@@ -255,7 +259,7 @@ ravin scan
ravin serve --open
```
The site provides course search, chapter grouping, local availability and artifact states, video playback, document and assessment links, transcript and summary readers, Markdown question rendering, dark mode, and browser-local completion checkboxes.
The site provides course search, chapter grouping, local availability and artifact states, current and archived file playback, document and assessment links, transcript and summary readers, Markdown question rendering, dark mode, and browser-local completion checkboxes.
The layout is: