1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-07-22 03:05:32 +02:00

fix: correct singlefile.rs docstring (scripts.js concatenates, not isolates)

This commit is contained in:
TheGeneralist 2026-07-08 10:39:59 +02:00
parent b4e092f10d
commit 39c5800ff5
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -12,12 +12,10 @@ use std::{
use crate::downloader::cookies::{domain_from_url, write_netscape_cookie_file}; use crate::downloader::cookies::{domain_from_url, write_netscape_cookie_file};
use crate::hash::hash_file; use crate::hash::hash_file;
/// Mozilla Readability.js (Apache 2.0) — embedded at compile time so captures
/// Combined reader-mode script: Readability.js (Apache 2.0) bundled with the /// Combined reader-mode script: Readability.js (Apache 2.0) bundled with the
/// archivr wrapper in a single IIFE so both share the same execution scope — /// archivr wrapper in a single IIFE. single-file-cli concatenates all
/// passing them as separate `--browser-script` files can put each in its own /// `--browser-script` files into one string before injection (scripts.js:84),
/// context (observed with single-file-cli 1.1.49), making Readability invisible /// so scope sharing is guaranteed; the combined file is kept for clarity.
/// to the wrapper.
/// ///
/// Emits `<meta name="archivr-reader-mode" content="applied|failed:REASON">` /// Emits `<meta name="archivr-reader-mode" content="applied|failed:REASON">`
/// so the outcome is observable in the saved HTML. /// so the outcome is observable in the saved HTML.