Create the "doc" dir before generating docs.

The documentation wouldn't be generated if the path didn't exist.