Update the documentation by replacing the deprecated API.