aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/doc_reform/output/hub.d18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/doc_reform/output/hub.d b/src/doc_reform/output/hub.d
index e8d0dc4..4cff15e 100644
--- a/src/doc_reform/output/hub.d
+++ b/src/doc_reform/output/hub.d
@@ -5,11 +5,7 @@
module doc_reform.output.hub;
template outputHub() {
import doc_reform.output,
- doc_reform.output.epub3,
- doc_reform.output.html,
- doc_reform.output.sqlite,
doc_reform.output.xmls,
- doc_reform.output.source_pod,
doc_reform.output.create_zip_file,
doc_reform.output.paths_output;
import std.parallelism;
@@ -23,31 +19,37 @@ template outputHub() {
auto msg = Msg!()(doc_matters);
if (sched == outTask.pod) {
msg.v("sisu source processing... ");
+ import doc_reform.output.source_pod;
DocReformPod!()(doc_matters);
msg.vv("sisu source done");
}
if (sched == outTask.epub) {
msg.v("epub3 processing... ");
+ import doc_reform.output.epub3;
outputEPub3!()(doc_abstraction, doc_matters);
msg.vv("epub3 done");
}
if (sched == outTask.html_scroll) {
msg.v("html scroll processing... ");
+ import doc_reform.output.html;
outputHTML!().scroll(doc_abstraction, doc_matters);
msg.vv("html scroll done");
}
if (sched == outTask.html_seg) {
msg.v("html seg processing... ");
+ import doc_reform.output.html;
outputHTML!().seg(doc_abstraction, doc_matters);
msg.vv("html seg done");
}
if (sched == outTask.html_stuff) {
+ import doc_reform.output.html;
outputHTML!().css(doc_matters);
outputHTML!().images_cp(doc_matters);
msg.vv("html css & images done");
}
if (sched == outTask.sqlite) {
msg.v("sqlite processing... ");
+ import doc_reform.output.sqlite;
SQLiteHubDiscreteBuildTablesAndPopulate!()(doc_matters, doc_abstraction);
msg.vv("sqlite done");
}
@@ -63,10 +65,12 @@ template outputHub() {
}
if (doc_matters.opt.action.sqlite_update) {
msg.v("sqlite update processing...");
+ import doc_reform.output.sqlite;
SQLiteHubBuildTablesAndPopulate!()(doc_matters, doc_abstraction);
msg.vv("sqlite update done");
} else if (doc_matters.opt.action.sqlite_delete) {
msg.v("sqlite delete processing...");
+ import doc_reform.output.sqlite;
SQLiteHubBuildTablesAndPopulate!()(doc_matters, doc_abstraction);
msg.vv("sqlite delete done");
}
@@ -74,11 +78,7 @@ template outputHub() {
}
template outputHubOp() {
import doc_reform.output,
- doc_reform.output.epub3,
- doc_reform.output.html,
- doc_reform.output.sqlite,
doc_reform.output.xmls,
- doc_reform.output.source_pod,
doc_reform.output.create_zip_file,
doc_reform.output.paths_output;
void outputHubOp(E,O)(E env, O opt_action) {
@@ -88,6 +88,7 @@ template outputHubOp() {
if ((opt_action.verbose)) {
writeln("sqlite drop db...");
}
+ import doc_reform.output.sqlite;
SQLiteDbDrop!()(opt_action);
if ((opt_action.very_verbose)) {
writeln("sqlite drop db done");
@@ -97,6 +98,7 @@ template outputHubOp() {
if ((opt_action.verbose)) {
writeln("sqlite create table...");
}
+ import doc_reform.output.sqlite;
SQLiteTablesCreate!()(env, opt_action);
if ((opt_action.very_verbose)) {
writeln("sqlite create table done");