[3.0] Make sure docs can be built
Fix for #2120