aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/paths_output.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-05-25 16:31:55 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2022-05-27 15:33:38 -0400
commit2eff2b6306cc5db64fa444ae070849ec547f038a (patch)
treed055e971cfdc6e36a296a6d20b3d1fea5747501f /src/doc_reform/io_out/paths_output.d
parentsub dependency update, updates D-YAML (diff)
pdf output links, should user choose to have it
Diffstat (limited to 'src/doc_reform/io_out/paths_output.d')
-rw-r--r--src/doc_reform/io_out/paths_output.d24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/doc_reform/io_out/paths_output.d b/src/doc_reform/io_out/paths_output.d
index a6a1a9b..fc31711 100644
--- a/src/doc_reform/io_out/paths_output.d
+++ b/src/doc_reform/io_out/paths_output.d
@@ -540,6 +540,30 @@ template spinePathsODT() {
return _PathsStruct();
}
}
+template spinePathsPDF() {
+ mixin spineRgxIn;
+ static auto rgx = RgxI();
+ auto spinePathsPDF(M)(
+ M doc_matters,
+ ) {
+ struct _PathsStruct {
+ string base_filename(string fn_src) {
+ return fn_src.baseName.stripExtension;
+ }
+ auto out_pth() {
+ string output_dir = doc_matters.output_path ~ "/pdf";
+ return spineOutPaths!()(output_dir);
+ }
+ string base() {
+ return (((out_pth.output_root).chainPath("pdf")).asNormalizedPath).array;
+ }
+ string pdf_path_stuff() {
+ return ((base.chainPath(base_filename(doc_matters.src.filename))).asNormalizedPath).array;
+ }
+ }
+ return _PathsStruct();
+ }
+}
template spinePathsLaTeX() {
mixin spineRgxIn;
static auto rgx = RgxI();