aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/meta/metadoc.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/meta/metadoc.d')
-rw-r--r--src/sdp/meta/metadoc.d26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/sdp/meta/metadoc.d b/src/sdp/meta/metadoc.d
index e302db8..b2f6270 100644
--- a/src/sdp/meta/metadoc.d
+++ b/src/sdp/meta/metadoc.d
@@ -1,10 +1,10 @@
module sdp.meta.metadoc;
template SiSUabstraction() {
- import sdp.meta;
import
std.getopt,
std.process;
import
+ sdp.meta,
sdp.meta.metadoc_summary,
sdp.meta.metadoc_from_src,
sdp.meta.conf_make_meta,
@@ -39,19 +39,34 @@ template SiSUabstraction() {
auto conf_files_composite_make = confFilesSDLtoStruct!()(sdl_root_config_share, sdl_root_config_local);
/+ ↓ read file (filename with path) +/
/+ ↓ file tuple of header and content +/
+ debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step1 commence → (get document header & body & insert files)");
+ }
auto _header_body_inserts =
SiSUrawMarkupContent!()(fn_src);
static assert(!isTypeTuple!(_header_body_inserts));
static assert(_header_body_inserts.length==3);
+ debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step1 complete");
+ }
debug(header_and_body) {
writeln(header);
writeln(_header_body_inserts.length);
writeln(_header_body_inserts.length[headBody.body_content][0]);
}
/+ ↓ split header into make and meta +/
+ debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step2 commence → (doc header: make & meta as struct)");
+ }
auto _make_and_meta_struct =
docHeaderMakeAndMetaTupExtractAndConvertToStruct!()(conf_files_composite_make, _header_body_inserts[headBody.header]); // breakage ...
+ debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step2 complete");
+ }
/+ ↓ document abstraction: process document, return abstraction as tuple +/
+ debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step3 commence → (document abstraction (da); da keys; segnames; doc_matters)");
+ }
auto da = SiSUdocAbstraction!()(
_header_body_inserts[headBody.body_content],
_make_and_meta_struct,
@@ -64,6 +79,12 @@ template SiSUabstraction() {
string[] _doc_html_segnames = da[docAbst.segnames];
string[] _doc_epub_segnames_0_4 = da[docAbst.segnames_0_4];
auto _images = da[docAbst.images];
+ debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step3 complete");
+ }
+ debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step4 commence → (doc_matters)");
+ }
struct DocumentMatters {
auto keys_seq() {
/+ contains .seg & .scroll sequences +/
@@ -118,6 +139,9 @@ template SiSUabstraction() {
}
}
auto doc_matters = DocumentMatters();
+ debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step4 complete");
+ }
auto t = tuple(doc_abstraction, doc_matters);
static assert(t.length==2);
return t;