#!/usr/bin/python3
from pathlib import Path
with open("index.md", "w") as out:
   out.write("# risorse:\n")
   pwd=Path(".")
   for p in pwd.glob("**/*.*"):
     fn=str(p)
     suf=p.suffix
     if fn!="index.md" and suf in [".py", ".ipynb", ".md", ".csv"] and not fn.startswith("."):
       out.write(f"  - [{fn}]({fn})\n")
