diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2024-07-04 11:37:18 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2024-07-04 11:37:24 -0400 |
commit | d7e7c79253697a7b34df04f547c70669acb67ea1 (patch) | |
tree | 55c1fd75ff17de8776599fc633ef71c3648353a1 /src/sisudoc/meta | |
parent | markup source digest to metadata.html (diff) |
[fn].digest.txt, sha256 of pod source files & pod
Diffstat (limited to 'src/sisudoc/meta')
-rw-r--r-- | src/sisudoc/meta/metadoc.d | 5 | ||||
-rw-r--r-- | src/sisudoc/meta/metadoc_from_src.d | 15 | ||||
-rw-r--r-- | src/sisudoc/meta/metadoc_from_src_functions.d | 5 | ||||
-rw-r--r-- | src/sisudoc/meta/metadoc_show_summary.d | 9 |
4 files changed, 5 insertions, 29 deletions
diff --git a/src/sisudoc/meta/metadoc.d b/src/sisudoc/meta/metadoc.d index 34212a5..25f28b6 100644 --- a/src/sisudoc/meta/metadoc.d +++ b/src/sisudoc/meta/metadoc.d @@ -90,10 +90,7 @@ 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); - auto doc_digests = _header_body_insertfilelist_imagelist.doc_digest; + auto doc_digests = _header_body_insertfilelist_imagelist.doc_digest; // CHECK, REVIEW, discard likely, other route taken 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 c9112ef..70fec62 100644 --- a/src/sisudoc/meta/metadoc_from_src.d +++ b/src/sisudoc/meta/metadoc_from_src.d @@ -1037,20 +1037,7 @@ template docAbstraction() { obj = _links(obj); } } - auto image_list = (_images.sort()).uniq; // also get digest on each image here? // workon - if (_images.length > 0) { - foreach (img; image_list) { - try { // also get sha digest on image file - // read_image - auto data = (cast(byte[]) (manifested.src.image_dir_path ~ "/" ~ img).read); - // calculate, digest, hash - 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); - } - } - } + auto image_list = (_images.sort()).uniq; // endnotes optional only one 1~ level if (the_document_endnotes_section.length > 1) { // writeln("endnotes"); dom_structure_markedup_tags_status_buffer = dom_structure_markedup_tags_status.dup; diff --git a/src/sisudoc/meta/metadoc_from_src_functions.d b/src/sisudoc/meta/metadoc_from_src_functions.d index b5956c0..953e75a 100644 --- a/src/sisudoc/meta/metadoc_from_src_functions.d +++ b/src/sisudoc/meta/metadoc_from_src_functions.d @@ -2991,11 +2991,6 @@ template docAbstractionFunctions() { ObjGenericComposite obj, ) { obj.metainfo.sha256 = obj.text.sha256Of; - // if (obj.metainfo.is_a == "heading") { - // writeln(obj.metainfo.sha256.toHexString, " ", obj.metainfo.ocn, " ", obj.metainfo.is_a, " ", obj.metainfo.heading_lev_markup); - // } else { - // writeln(obj.metainfo.sha256.toHexString, " ", obj.metainfo.ocn, " ", obj.metainfo.is_a); - // } return obj.metainfo.sha256; } // ↑ - object digest diff --git a/src/sisudoc/meta/metadoc_show_summary.d b/src/sisudoc/meta/metadoc_show_summary.d index 36ed3c1..92d476c 100644 --- a/src/sisudoc/meta/metadoc_show_summary.d +++ b/src/sisudoc/meta/metadoc_show_summary.d @@ -104,7 +104,7 @@ template spineMetaDocSummary() { } } writefln( - "%s\n\"%s\", %s\n%s [%s]\n%s \n%s%s\n%s%s\n%s%s\n%s\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%s", + "%s\n\"%s\", %s\n%s [%s]\n%s \n%s - %s [%s]\n%s\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%40-s%10-d\n%s", markup.repeat_character_by_number_provided("-", char_repeat_number), doc_matters.conf_make_meta.meta.title_full, doc_matters.conf_make_meta.meta.creator_author, @@ -112,11 +112,8 @@ template spineMetaDocSummary() { doc_matters.src.language, markup.repeat_character_by_number_provided("-", char_repeat_number), doc_matters.doc_digest.markup_doc.toHexString, - " - src doc digest", - doc_matters.doc_digest.header.toHexString, - " - doc header", - doc_matters.doc_digest.text.toHexString, - " - doc text", + doc_matters.src.filename, + doc_matters.src.language, markup.repeat_character_by_number_provided("-", char_repeat_number), "- toc arr length:", to!int(doc_abstraction["toc"].length), |