Revert "Simplified and improved doc build."

This reverts commit b7c21129e5a7fd8ed34cdc44a611c2f5cc7f2269.