def main()

in scripts/nb_to_md.py [0:0]


def main(argv):
  """[nb_to_md.py] Publish Jupyter notebooks as a Kubeflow on Google Cloud Markdown page"""
  
  if FLAGS.notebook is not None:
    notebook = NotebookFile(FLAGS.notebook)
    if notebook.exists():
      notebook.publish_markdown()
      print('Markdown content has been updated!')
    else:
      print(('Could not update Markdown content.'
             ' Notebook file was not found at "{}"').format(FLAGS.notebook))
  else:
    print(('Could not update Markdown content.'
           ' No notebook parameter was specified.'))