old_contents: import os
  import shutil
  from yank import version
  
  if version.release:
      docversion = version.version
  else:
      docversion = 'latest'
  
  os.mkdir("docs/_deploy")
  shutil.copytree("docs/_build/html", "docs/_deploy/{docversion}"
                  .format(docversion=docversion))
new_contents: import os
  import shutil
  from yank import version
  
  if version.release:
      docversion = version.version
  else:
      docversion = 'latest'
  
  os.mkdir("docs/_deploy")
  shutil.copytree("docs/_build", "docs/_deploy/{docversion}"
                  .format(docversion=docversion))
subject: Set the correct doc build dir to copy