diff options
Diffstat (limited to 'src/doc_reform/spine.d')
-rwxr-xr-x | src/doc_reform/spine.d | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/doc_reform/spine.d b/src/doc_reform/spine.d index 9ace644..c70b87c 100755 --- a/src/doc_reform/spine.d +++ b/src/doc_reform/spine.d @@ -79,7 +79,7 @@ import std.algorithm; import std.parallelism; mixin(import("version.txt")); mixin CompileTimeInfo; -string project_name = "DocReform"; +string project_name = "spine"; string program_name = "spine"; /++ name "spine" @@ -87,12 +87,12 @@ description "A SiSU inspired document parser writen in D." homepage "http://sisudoc.org" +/ void main(string[] args) { - mixin DocReformRgxInit; - mixin contentJSONtoDocReformStruct; - mixin DocReformBiblio; - mixin DocReformRgxInitFlags; + mixin spineRgxInit; + mixin contentJSONtoSpineStruct; + mixin spineBiblio; + mixin spineRgxInitFlags; mixin outputHub; - auto hvst = DocReformHarvest!(); + auto hvst = spineHarvest!(); string flag_action; string arg_unrecognized; enum dAM { abstraction, matters } @@ -541,7 +541,7 @@ void main(string[] args) { auto _config_local_site_struct = readConfigSite!()(_manifested, _env); if (_config_local_site_struct.filetype == "yaml") { import doc_reform.meta.conf_make_meta_yaml; - _make_and_meta_struct = _config_local_site_struct.configParseYAMLreturnDocReformStruct!()(_make_and_meta_struct, _manifested); // - get local site config + _make_and_meta_struct = _config_local_site_struct.configParseYAMLreturnSpineStruct!()(_make_and_meta_struct, _manifested); // - get local site config break; } } @@ -552,7 +552,7 @@ void main(string[] args) { auto _config_local_site_struct = readConfigSite!()(_manifested, _env, _opt_action.config_path_set); if (_config_local_site_struct.filetype == "yaml") { import doc_reform.meta.conf_make_meta_yaml; - _make_and_meta_struct = _config_local_site_struct.configParseYAMLreturnDocReformStruct!()(_make_and_meta_struct, _manifested); // - get local site config + _make_and_meta_struct = _config_local_site_struct.configParseYAMLreturnSpineStruct!()(_make_and_meta_struct, _manifested); // - get local site config } } } @@ -756,7 +756,7 @@ void main(string[] args) { ) { writeln("--->\nstepX commence → (document abstraction)"); } - auto t = DocReformAbstraction!()(_env, program_info, _opt_action, manifest, _make_and_meta_struct); + auto t = spineAbstraction!()(_env, program_info, _opt_action, manifest, _make_and_meta_struct); static assert(!isTypeTuple!(t)); static assert(t.length==2); auto doc_abstraction = t[dAM.abstraction]; @@ -771,32 +771,32 @@ void main(string[] args) { || doc_matters.opt.action.show_summary ) { import doc_reform.meta.metadoc_show_summary; - DocReformMetaDocSummary!()(doc_abstraction, doc_matters); + spineMetaDocSummary!()(doc_abstraction, doc_matters); } /+ ↓ debugs +/ if (doc_matters.opt.action.show_metadata ) { import doc_reform.meta.metadoc_show_metadata; - DocReformShowMetaData!()(doc_matters); + spineShowMetaData!()(doc_matters); } /+ ↓ debugs +/ if (doc_matters.opt.action.show_make ) { import doc_reform.meta.metadoc_show_make; - DocReformShowMake!()(doc_matters); + spineShowMake!()(doc_matters); } /+ ↓ debugs +/ if (doc_matters.opt.action.show_config ) { import doc_reform.meta.metadoc_show_config; - DocReformShowConfig!()(doc_matters); + spineShowConfig!()(doc_matters); } if (doc_matters.opt.action.harvest) { - hvst.harvests ~= DocReformMetaDocHarvest!()(doc_matters, hvst); + hvst.harvests ~= spineMetaDocHarvest!()(doc_matters, hvst); } /+ ↓ debugs +/ if (doc_matters.opt.action.debug_do) { - DocReformDebugs!()(doc_abstraction, doc_matters); + spineDebugs!()(doc_abstraction, doc_matters); } /+ ↓ output hub +/ if (!(doc_matters.opt.action.skip_output)) { @@ -860,7 +860,7 @@ void main(string[] args) { ) { writeln("--->\nstepX commence → (document abstraction)"); } - auto t = DocReformAbstraction!()(_env, program_info, _opt_action, manifest, _make_and_meta_struct); + auto t = spineAbstraction!()(_env, program_info, _opt_action, manifest, _make_and_meta_struct); static assert(!isTypeTuple!(t)); static assert(t.length==2); auto doc_abstraction = t[dAM.abstraction]; @@ -875,32 +875,32 @@ void main(string[] args) { || doc_matters.opt.action.show_summary ) { import doc_reform.meta.metadoc_show_summary; - DocReformMetaDocSummary!()(doc_abstraction, doc_matters); + spineMetaDocSummary!()(doc_abstraction, doc_matters); } /+ ↓ debugs +/ if (doc_matters.opt.action.show_metadata ) { import doc_reform.meta.metadoc_show_metadata; - DocReformShowMetaData!()(doc_matters); + spineShowMetaData!()(doc_matters); } /+ ↓ debugs +/ if (doc_matters.opt.action.show_make ) { import doc_reform.meta.metadoc_show_make; - DocReformShowMake!()(doc_matters); + spineShowMake!()(doc_matters); } /+ ↓ debugs +/ if (doc_matters.opt.action.show_config ) { import doc_reform.meta.metadoc_show_config; - DocReformShowConfig!()(doc_matters); + spineShowConfig!()(doc_matters); } if (doc_matters.opt.action.harvest) { - hvst.harvests ~= DocReformMetaDocHarvest!()(doc_matters, hvst); + hvst.harvests ~= spineMetaDocHarvest!()(doc_matters, hvst); } /+ ↓ debugs +/ if (doc_matters.opt.action.debug_do) { - DocReformDebugs!()(doc_abstraction, doc_matters); + spineDebugs!()(doc_abstraction, doc_matters); } /+ ↓ output hub +/ if (!(doc_matters.opt.action.skip_output)) { @@ -936,14 +936,14 @@ void main(string[] args) { } if (hvst.harvests.length > 0) { if (_opt_action.harvest_topics) { - DocReformMetaDocHarvestsTopics!()(hvst, _make_and_meta_struct, _opt_action); + spineMetaDocHarvestsTopics!()(hvst, _make_and_meta_struct, _opt_action); } if (_opt_action.harvest_authors) { - DocReformMetaDocHarvestsAuthors!()(hvst.harvests, _make_and_meta_struct, _opt_action); + spineMetaDocHarvestsAuthors!()(hvst.harvests, _make_and_meta_struct, _opt_action); } if (!(_opt_action.quiet)) { import doc_reform.output.paths_output; - auto out_pth = DocReformPathsHTML!()(_make_and_meta_struct.conf.output_path, ""); + auto out_pth = spinePathsHTML!()(_make_and_meta_struct.conf.output_path, ""); if (_opt_action.harvest_authors) { writeln("- ", out_pth.harvest("authors.html")); } |