def path_to_url()

in _scripts/convert-recipes-docs.py [0:0]


def path_to_url(path):
  if path.find("#") != -1:
    print "WARNING - URL references anchor tag #: ", path.strip()
  url = url_prefix + path.rpartition("/")[2].replace(".md", "/")
  if url.endswith("/index/"):
    return url.replace("/index/", "/")
  return url