aboutsummaryrefslogtreecommitdiff
path: root/workflow/phases.cwl
blob: 208ef638c00447046923f58060a5ae22f48a48f3 (plain)
  1. #!/usr/bin/env cwl-runner
  2. cwlVersion: v1.0
  3. class: Workflow
  4. $namespaces:
  5. dc: http://purl.org/dc/elements/1.1/
  6. license: https://spdx.org/licenses/
  7. inputs:
  8. annotated_markdown: File
  9. outputs:
  10. annotated_html:
  11. type: File
  12. outputSource: phase3_convert_to_html/html_with_rdfa
  13. annotated_pdf:
  14. type: File
  15. outputSource: phase3_convert_to_pdf/latex_with_xmp
  16. markdown_with_metadata:
  17. type: File
  18. outputSource: phase2_extract/markdown
  19. plain_markdown:
  20. type: File
  21. outputSource: phase1_strip/markdown
  22. steps:
  23. phase3_convert_to_html:
  24. in:
  25. input_file: annotated_markdown
  26. output_format:
  27. default: html
  28. run: pandoc-filter-tool.cwl
  29. out:
  30. - html_with_rdfa
  31. - latex_with_xmp
  32. phase3_convert_to_pdf:
  33. in:
  34. input_file: annotated_markdown
  35. output_format:
  36. default: pdf
  37. run: pandoc-filter-tool.cwl
  38. out:
  39. - html_with_rdfa
  40. - latex_with_xmp
  41. phase2_extract:
  42. in:
  43. input_file: annotated_markdown
  44. output_format:
  45. default: commonmark
  46. run: pandoc-filter-tool.cwl
  47. out:
  48. - markdown
  49. phase1_strip:
  50. in:
  51. input_file: annotated_markdown
  52. output_format:
  53. default: commonmark
  54. run: pandoc-filter-tool.cwl
  55. out:
  56. - markdown
  57. dc:license: license:GPL-3.0-or-later
  58. dc:rights: Copyright 2025, Jonas Smedegaard <dr@jones.dk>