add patch for install_docs function