Skip to content

Support post processing with --watch #411

@valencik

Description

@valencik

TLDR: I would like to invoke some external command every time mdoc finishes generating files while in file watching mode.

Motivation:

I use mdoc to generate typesafe markdown files, and then use pandoc to turn the markdown into html (or any other format pandoc supports). The current workflow looks like:

coursier launch org.scalameta:mdoc_2.13:2.2.10 -- --in hello.md --out mhello.md \
  && pandoc --from=markdown --to=html5 mhello.md --output=hello.html

I'd prefer to be able to leverage mdoc's file watcher mode (--watch) to gain the performance benefits.

I had assumed this would require the life cycle code in #245 but perhaps not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions