aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/doc_reform/doc_reform.d19
-rw-r--r--src/doc_reform/meta/metadoc_summary.d4
2 files changed, 18 insertions, 5 deletions
diff --git a/src/doc_reform/doc_reform.d b/src/doc_reform/doc_reform.d
index 2378785..6275963 100755
--- a/src/doc_reform/doc_reform.d
+++ b/src/doc_reform/doc_reform.d
@@ -142,6 +142,7 @@ void main(string[] args) {
"quiet" : false,
"pod" : false,
"serial" : false,
+ "show-summary" : false,
"source" : false,
"sqlite-discrete" : false,
"sqlite-db-create" : false,
@@ -201,6 +202,7 @@ void main(string[] args) {
"pdf", "--pdf latex output for pdfs", &opts["pdf"],
"pod", "--pod doc reform pod source content bundled", &opts["pod"],
"serial", "--serial serial processing", &opts["serial"],
+ "show-summary", "--show-summary", &opts["show-summary"],
"source", "--source markup source text content", &opts["source"],
"sqlite-discrete", "--sqlite process discrete sqlite output", &opts["sqlite-discrete"],
"sqlite-db-create", "--sqlite-db-create create db, create tables", &opts["sqlite-db-create"],
@@ -338,6 +340,9 @@ void main(string[] args) {
bool pod() {
return opts["pod"];
}
+ bool show_summary() {
+ return opts["show-summary"];
+ }
bool source() {
return opts["source"];
}
@@ -647,7 +652,7 @@ void main(string[] args) {
}
if (_manifests.length > 1 // _manifests[0] initialized dummy element
&& _opt_action.abstraction) {
- if (_opt_action.parallelise) { // note cannot parallelise sqlite shared db
+ if (_opt_action.parallelise) { // see else
foreach(manifest; parallel(_manifests[1..$])) {
if (!empty(manifest.src.filename)) {
scope(success) {
@@ -689,7 +694,10 @@ void main(string[] args) {
writeln("- stepX complete");
}
/+ ↓ debugs +/
- if (doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.verbose
+ || doc_matters.opt.action.show_summary
+ ) {
+ import doc_reform.meta.metadoc_summary;
DocReformMetaDocSummary!()(doc_abstraction, doc_matters);
}
if (doc_matters.opt.action.harvest) {
@@ -729,7 +737,7 @@ void main(string[] args) {
break; // terminate, stop
}
}
- } else {
+ } else { // note cannot parallelise sqlite shared db
foreach(manifest; _manifests[1..$]) {
writeln("parallelisation off: actions include sqlite shared db");
if (!empty(manifest.src.filename)) {
@@ -772,7 +780,10 @@ void main(string[] args) {
writeln("- stepX complete");
}
/+ ↓ debugs +/
- if (doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.verbose
+ || doc_matters.opt.action.show_summary
+ ) {
+ import doc_reform.meta.metadoc_summary;
DocReformMetaDocSummary!()(doc_abstraction, doc_matters);
}
if (doc_matters.opt.action.harvest) {
diff --git a/src/doc_reform/meta/metadoc_summary.d b/src/doc_reform/meta/metadoc_summary.d
index 4beada8..7395e81 100644
--- a/src/doc_reform/meta/metadoc_summary.d
+++ b/src/doc_reform/meta/metadoc_summary.d
@@ -20,7 +20,9 @@ template DocReformMetaDocSummary() {
std.conv : to;
mixin InternalMarkup;
auto markup = InlineMarkup();
- if (doc_matters.opt.action.verbose) {
+ if (doc_matters.opt.action.verbose
+ || doc_matters.opt.action.show_summary
+ ) {
string[string] check = [
"last_object_number" : "NA [debug \"checkdoc\" not run]",
"last_object_number_body" : "0",