The mdoc task runs the mdoc command-line interface so it's possible to pass in
arguments like --watch to start file watcher with livereload. It's recommended
to use --watch while writing documentation to enjoy 3-4x faster compilation
performance.

Consult the mdoc source to learn more how to use the library API. Scaladocs are
available
here
but beware there are limited docstrings for classes and methods. Keep in mind
that code in the package mdoc.internal is subject to binary and source
breaking changes between any release, including PATCH versions.