diff --git a/lib/tasks/mkdocs/serve.js b/lib/tasks/mkdocs/serve.js index 66efc39c4..8b0f4ffb1 100644 --- a/lib/tasks/mkdocs/serve.js +++ b/lib/tasks/mkdocs/serve.js @@ -40,19 +40,8 @@ export default () => { server.kill() /* Spawn MkDocs server */ - server = child.spawn("mkdocs", ["serve", "-a", "0.0.0.0:8000"]) - - /* Pretty print server log output */ - server.stdout.on("data", data => { - const lines = data.toString().split("\n") - for (const l in lines) - if (lines[l].length) - util.log(lines[l]) - }) - - /* Print errors to stdout */ - server.stderr.on("data", data => { - process.stdout.write(data.toString()) + server = child.spawn("mkdocs", ["serve", "-a", "0.0.0.0:8000"], { + stdio: "inherit" }) } }