code: def create_index(config):
      
      filename = pathlib.Path(config.cache_path) / "index.json"
      index = {"version": __version__}
      with open(filename, "w") as out:
          out.write(json.dumps(index, indent=2))
docs: Create the root index.