aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-07-30 23:19:11 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-07-31 14:06:50 -0400
commit5193814934f6cd64ed5554fa262ec579fbef1ab0 (patch)
tree9e32157f1fc04020ee6e8eec248578fb24e15a7b /src/sisudoc
parentchange search result symbols for show index & text (diff)
digest (sha256) for document root heading (title)
corrects an omission this hould have been included to start with reference tests texts regenerated
Diffstat (limited to 'src/sisudoc')
-rw-r--r--src/sisudoc/ocda/meta/metadoc_from_src.d3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sisudoc/ocda/meta/metadoc_from_src.d b/src/sisudoc/ocda/meta/metadoc_from_src.d
index bc00c49..2955ee3 100644
--- a/src/sisudoc/ocda/meta/metadoc_from_src.d
+++ b/src/sisudoc/ocda/meta/metadoc_from_src.d
@@ -1246,6 +1246,9 @@ template docAbstraction() {
}
foreach (ref obj; the_document_head_section) {
if (obj.metainfo.is_a == "heading") {
+ if (obj.metainfo.heading_lev_markup == 0) { // sha for document root heading, caught here, should have been done earlier
+ obj.metainfo.sha256 = obj.obj_digest;
+ }
foreach (pair; pairs) {
if (obj.metainfo.ocn == pair[0]) {
obj.metainfo.last_descendant_ocn = pair[1];