Update documentation for 0.40.0.