FOREACH(f 
  "GettingStartedWithCora"
  "CoraDoc-Weights"
) # Put jupyter file names in the previous list without the ".ipynb"

#Command to generate html from ipynb
  add_custom_target("gs-cora-${f}"
    COMMAND "${NBCONVERT}" "--to=html" "--output-dir=${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/${f}.ipynb")
  add_dependencies(build-gs "gs-cora-${f}")

#Command to upload html and ipyn files to files.awali.org
  add_custom_target("gs-cora-upload-${f}"
    COMMAND "${SCRIPT_DIR}/upload_gs.sh" "${CMAKE_CURRENT_SOURCE_DIR}/${f}.ipynb" "${CMAKE_CURRENT_BINARY_DIR}/${f}.html"
    DEPENDS "gs-cora-${f}"
  )
  add_dependencies("upload-gs" "gs-cora-upload-${f}")
ENDFOREACH(f)
