aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/meta/metadoc.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-02-22 14:23:35 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2022-02-23 11:00:55 -0500
commit614e44ad155e693f82a8228897bba2f4869167dd (patch)
tree4ba674ba60fb3b00460c37bf7b3f30d3cc9da49d /src/doc_reform/meta/metadoc.d
parentpod org file, minor (diff)
rethink verbose & debug flags, introduce show
Diffstat (limited to 'src/doc_reform/meta/metadoc.d')
-rw-r--r--src/doc_reform/meta/metadoc.d33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/doc_reform/meta/metadoc.d b/src/doc_reform/meta/metadoc.d
index d8b252e..b912c24 100644
--- a/src/doc_reform/meta/metadoc.d
+++ b/src/doc_reform/meta/metadoc.d
@@ -36,18 +36,17 @@ template spineAbstraction() {
/+ ↓ read file (filename with path) +/
/+ ↓ file tuple of header and content +/
if ((_opt_action.debug_do)
- || (_opt_action.very_verbose)
+ || (_opt_action.debug_do_stages)
) {
- writeln("step1 commence → (get document header & body & insert file list & if needed image list)"
- );
+ writeln("step1 commence → (get document header & body & insert file list & if needed image list) [", _manifest.src.filename, "]");
}
auto _header_body_insertfilelist_imagelist
= spineRawMarkupContent!()(_opt_action, _manifest.src.path_and_fn);
static assert(_header_body_insertfilelist_imagelist.length==4);
if ((_opt_action.debug_do)
- || (_opt_action.very_verbose)
+ || (_opt_action.debug_do_stages)
) {
- writeln("- step1 complete");
+ writeln("- step1 complete for [", _manifest.src.filename, "]");
}
debug(header_and_body) {
writeln(header);
@@ -56,9 +55,9 @@ template spineAbstraction() {
}
/+ ↓ split header into make and meta +/
if ((_opt_action.debug_do)
- || (_opt_action.very_verbose)
+ || (_opt_action.debug_do_stages)
) {
- writeln("step2 commence → (read document header (yaml) return struct)");
+ writeln("step2 commence → (read document header (yaml) return struct) [", _manifest.src.filename, "]");
}
import doc_reform.meta.conf_make_meta_yaml;
_make_and_meta_struct =
@@ -70,15 +69,15 @@ template spineAbstraction() {
_cfg,
);
if ((_opt_action.debug_do)
- || (_opt_action.very_verbose)
+ || (_opt_action.debug_do_stages)
) {
- writeln("- step2 complete");
+ writeln("- step2 complete for [", _manifest.src.filename, "]");
}
/+ ↓ document abstraction: process document, return abstraction as tuple +/
if ((_opt_action.debug_do)
- || (_opt_action.very_verbose)
+ || (_opt_action.debug_do_stages)
) {
- writeln("step3 commence → (document abstraction (da); da keys; segnames; doc_matters)");
+ writeln("step3 commence → (document abstraction (da); da keys; segnames; doc_matters) [", _manifest.src.filename, "]");
}
auto da = docAbstraction!()(
_header_body_insertfilelist_imagelist[headBody.body_content],
@@ -91,14 +90,14 @@ template spineAbstraction() {
auto doc_abstraction = da[docAbst.doc_abstract_obj]; /+ head ~ toc ~ body ~ endnotes_seg ~ glossary ~ bibliography ~ bookindex ~ blurb; +/
auto _doc_has_struct = da[docAbst.doc_has];
if ((_opt_action.debug_do)
- || (_opt_action.very_verbose)
+ || (_opt_action.debug_do_stages)
) {
- writeln("- step3 complete");
+ writeln("- step3 complete for [", _manifest.src.filename, "]");
}
if ((_opt_action.debug_do)
- || (_opt_action.very_verbose)
+ || (_opt_action.debug_do_stages)
) {
- writeln("step4 commence → (doc_matters)");
+ writeln("step4 commence → (doc_matters) [", _manifest.src.filename, "]");
}
struct DocumentMatters {
@safe auto generator_program() {
@@ -241,9 +240,9 @@ template spineAbstraction() {
}
auto doc_matters = DocumentMatters();
if ((_opt_action.debug_do)
- || (_opt_action.very_verbose)
+ || (_opt_action.debug_do_stages)
) {
- writeln("- step4 complete");
+ writeln("- step4 complete for [", _manifest.src.filename, "]");
}
auto t = tuple(doc_abstraction, doc_matters);
return t;