Port doc command to core

Nothing too much going on here, but I'm thinking now that changing the `_build` directory shouldn't be an option. It'd make for a lot of weird errors to look out for (`doc` needs things compiled).