diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-05-23 08:00:06 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-05-23 08:00:06 +0200 |
| commit | efc49c3e902a7ab89db2e669867e0e2aab3cdc50 (patch) | |
| tree | 210c65c38e98b6b0f32fafff98672f597b05fb0a /workflow | |
| parent | 7e56c94c03727894dec1b65da923bb4bd532df52 (diff) | |
add argument output_format to workflow
Diffstat (limited to 'workflow')
| -rwxr-xr-x | workflow/pandoc-filter-tool.cwl | 11 | ||||
| -rwxr-xr-x | workflow/phase1.cwl | 2 | ||||
| -rwxr-xr-x | workflow/phases.cwl | 21 |
3 files changed, 28 insertions, 6 deletions
diff --git a/workflow/pandoc-filter-tool.cwl b/workflow/pandoc-filter-tool.cwl index a433081..d657d08 100755 --- a/workflow/pandoc-filter-tool.cwl +++ b/workflow/pandoc-filter-tool.cwl @@ -13,20 +13,25 @@ inputs: type: File inputBinding: position: 1 + output_format: + type: string + inputBinding: + prefix: -t + position: 2 outputs: html_with_rdfa: type: File outputBinding: - glob: output + glob: output.${output_format} latex_with_xmp: type: File outputBinding: - glob: output + glob: output.${output_format} markdown: type: File outputBinding: - glob: output + glob: output.${output_format} stdout: output baseCommand: pandoc diff --git a/workflow/phase1.cwl b/workflow/phase1.cwl index f531e69..1aa0bc2 100755 --- a/workflow/phase1.cwl +++ b/workflow/phase1.cwl @@ -18,6 +18,8 @@ steps: strip: in: input_file: annotated_markdown + output_format: + default: commonmark run: pandoc-filter-tool.cwl out: - markdown diff --git a/workflow/phases.cwl b/workflow/phases.cwl index 95df658..e4562be 100755 --- a/workflow/phases.cwl +++ b/workflow/phases.cwl @@ -12,10 +12,10 @@ inputs: outputs: annotated_html: type: File - outputSource: convert/html_with_rdfa + outputSource: convert_to_html/html_with_rdfa annotated_pdf: type: File - outputSource: convert/latex_with_xmp + outputSource: convert_to_pdf/latex_with_xmp markdown_with_metadata: type: File outputSource: extract/markdown @@ -24,9 +24,20 @@ outputs: outputSource: strip/markdown steps: - convert: + convert_to_html: in: input_file: annotated_markdown + output_format: + default: html + run: pandoc-filter-tool.cwl + out: + - html_with_rdfa + - latex_with_xmp + convert_to_pdf: + in: + input_file: annotated_markdown + output_format: + default: pdf run: pandoc-filter-tool.cwl out: - html_with_rdfa @@ -34,12 +45,16 @@ steps: extract: in: input_file: annotated_markdown + output_format: + default: commonmark run: pandoc-filter-tool.cwl out: - markdown strip: in: input_file: annotated_markdown + output_format: + default: commonmark run: pandoc-filter-tool.cwl out: - markdown |
