core::rt: Add more I/O docs
Tidy
mk: reorganize doc build to fix dependencies. #6042

Most of our documentation requires both pandoc and node.js.
This simplifies the logic around those checks and fixes an
error when building without node.js but with pandoc.