aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/spine.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-11-19 14:34:12 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2019-11-22 09:54:26 -0500
commit2d5d871e51692c30e26c1500fc38879857a754de (patch)
tree0d7bb9b4356a95669f740cc68d75b0c8d491ff14 /src/doc_reform/spine.d
parent0.9.1 spine, post naming development (diff)
segmented html harvest links cli option
Diffstat (limited to 'src/doc_reform/spine.d')
-rwxr-xr-xsrc/doc_reform/spine.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc_reform/spine.d b/src/doc_reform/spine.d
index 51e571d..9dae5c4 100755
--- a/src/doc_reform/spine.d
+++ b/src/doc_reform/spine.d
@@ -124,6 +124,7 @@ void main(string[] args) {
"harvest" : false,
"harvest-authors" : false,
"harvest-topics" : false,
+ "harvest-link" : false,
"html" : false,
"html-seg" : false,
"html-scroll" : false,
@@ -187,6 +188,7 @@ void main(string[] args) {
"harvest", "--harvest extract info on authors & topics from document header metadata", &opts["harvest"],
"harvest-authors", "--harvest-authors extract info on authors from document header metadata", &opts["harvest-authors"],
"harvest-topics", "--harvest-topics extract info on topics from document header metadata", &opts["harvest-topics"],
+ "harvest-link", "--harvest-link place links back to harvest in segmented html", &opts["harvest-link"],
"html", "--html process html output", &opts["html"],
"html-seg", "--html-seg process html output", &opts["html-seg"],
"html-scroll", "--html-seg process html output", &opts["html-scroll"],
@@ -271,6 +273,9 @@ void main(string[] args) {
bool epub() {
return opts["epub"];
}
+ bool harvest_link() {
+ return (opts["harvest-link"]) ? true : false;
+ }
bool harvest() {
return (opts["harvest"] || opts["harvest-authors"] || opts["harvest-topics"]) ? true : false;
}