Improve doc build

This should simplify the process of building and testing documentation.