aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc/meta
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2024-06-29 14:17:35 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2024-06-29 15:39:08 -0400
commit03b6742825eefcdf4ac58b2563f9d17333982392 (patch)
tree4db704a75ba340023fd0f4b12ae4f0e52e1ece9a /src/sisudoc/meta
parentreduction in use of tuples (diff)
digest tuple rearrange
Diffstat (limited to 'src/sisudoc/meta')
-rw-r--r--src/sisudoc/meta/metadoc.d7
-rw-r--r--src/sisudoc/meta/metadoc_from_src.d6
2 files changed, 9 insertions, 4 deletions
diff --git a/src/sisudoc/meta/metadoc.d b/src/sisudoc/meta/metadoc.d
index ed9a5b1..035f57e 100644
--- a/src/sisudoc/meta/metadoc.d
+++ b/src/sisudoc/meta/metadoc.d
@@ -51,7 +51,9 @@ module sisudoc.meta.metadoc;
@safe:
template spineAbstraction() {
import
- std.datetime;
+ std.datetime,
+ std.digest.crc,
+ std.digest.sha;
import
sisudoc.meta,
sisudoc.meta.metadoc_from_src,
@@ -88,6 +90,9 @@ template spineAbstraction() {
}
auto _header_body_insertfilelist_imagelist
= spineRawMarkupContent!()(_opt_action, _manifest.src.path_and_fn);
+ writeln("src doc digest: ", _header_body_insertfilelist_imagelist.doc_digest.markup_doc.toHexString, " ", _header_body_insertfilelist_imagelist.doc_digest.markup_doc.toHexString.length);
+ writeln("header: ", _header_body_insertfilelist_imagelist.doc_digest.header.toHexString, " ", _header_body_insertfilelist_imagelist.doc_digest.header.toHexString.length);
+ writeln("text: ", _header_body_insertfilelist_imagelist.doc_digest.text.toHexString, " ", _header_body_insertfilelist_imagelist.doc_digest.text.toHexString.length);
if ((_opt_action.debug_do)
|| (_opt_action.debug_do_stages)
) {
diff --git a/src/sisudoc/meta/metadoc_from_src.d b/src/sisudoc/meta/metadoc_from_src.d
index 4bd747d..c9112ef 100644
--- a/src/sisudoc/meta/metadoc_from_src.d
+++ b/src/sisudoc/meta/metadoc_from_src.d
@@ -971,7 +971,7 @@ template docAbstraction() {
}
obj = _links(obj);
}
- if (the_document_toc_section.length > 1) { // writeln("toc"); // scroll
+ if (the_document_toc_section.length > 1) { // writeln("toc"); // scroll
dom_structure_markedup_tags_status_buffer = dom_structure_markedup_tags_status.dup;
dom_structure_collapsed_tags_status_buffer = dom_structure_collapsed_tags_status.dup;
foreach (ref obj; the_document_toc_section) {
@@ -1044,8 +1044,8 @@ template docAbstraction() {
// read_image
auto data = (cast(byte[]) (manifested.src.image_dir_path ~ "/" ~ img).read);
// calculate, digest, hash
- writefln("%s\n%-(%02x%)::%s ⋅ %s", img, data.sha256Of, data.length, img);
- writefln("%-(%02x%) ⋅ %s ⋅ %s", data.sha256Of, img, data.length);
+ writeln(img, "\n", data.sha256Of.toHexString, "::", data.length, " ", img);
+ writeln(data.sha256Of.toHexString, " ", img, " ", data.length);
} catch (Exception ex) {
writeln("WARNING, image not found: ", img, "\n ", manifested.src.image_dir_path ~ "/" ~ img);
}