diff options
Diffstat (limited to 'org/out_metadata.org')
| -rw-r--r-- | org/out_metadata.org | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/org/out_metadata.org b/org/out_metadata.org index b816dad..3a17ffe 100644 --- a/org/out_metadata.org +++ b/org/out_metadata.org @@ -182,7 +182,7 @@ if (doc_matters.opt.action.html_link_markup_source) { ~ " 🫛 tree </a>] "; { auto pths_pod_ = spinePathsPods!()(doc_matters); - string _db_name = doc_matters.src.doc_uid_out ~ ".ocda.db"; + string _db_name = doc_matters.src.doc_uid_out_no_lang ~ ".ocda.db"; string _db_fn = pths_pod_.pod_dir_() ~ "/" ~ _db_name; if (doc_matters.opt.action.ocda_db && _db_fn.exists) { metadata_ ~= "<p class=\"lev1\">● document abstraction:" @@ -205,23 +205,14 @@ if (doc_matters.opt.action.html_link_markup_source) { writeln("WARNING, source doc_matters.src.filename_base not found: ", doc_matters.src.filename_base, pod_archive_suffix, "\n ", fn_pod); } } - if (doc_matters.opt.action.ocda_db) { - try { // sha digest and size for the abstraction database, beside the pod - string _db_fn = pths_pod.pod_dir_() ~ "/" - ~ doc_matters.src.doc_uid_out ~ ".ocda.db"; - if (_db_fn.exists) { - auto data = (cast(byte[]) (_db_fn).read); - metadata_ ~= "<p class=\"lev2\">"; - metadata_ ~= "<tt>" ~ data.sha256Of.toHexString ~ "::" - ~ data.length.to!string ~ "</tt> - " - ~ doc_matters.src.doc_uid_out ~ ".ocda.db"; - metadata_ ~= "</p>"; - } - } catch (Exception ex) { - writeln("WARNING, abstraction db not read for metadata page: ", - doc_matters.src.doc_uid_out, ".ocda.db"); - } - } + /+ ↓ no digest for the .ocda.db here. + One database holds every language of the document and is added to + once per language, so at the time this page is written for a given + language the file is in general not finished: a digest taken here + would be a digest of a file that no longer exists by the end of + the run. The digest is taken once, when the database is complete, + and recorded in <doc>.digests.txt, which is linked above. + +/ } if (doc_matters.conf_make_meta.meta.classify_topic_register_arr.length > 0) { metadata_ ~= "<hr /><p class=\"lev0\">Topics:</p>"; |
