generate_routes_directory
Generate routes for a directory.
def generate_routes_directory(path: Path, markdown_component=None) -> List[solara.Route]:
...
This is a recursive function that will generate routes for all subdirectories and files in the directory. It will skip any files or directories that start with an underscore or a dot.
Markdown files ending in .md will be rendered as markdown.
Python files ending in .py, or Jupyter notebooks ending in .ipynb
will be executed and its Page
component will be rendered.
Automatic titles will be generated as explained in the multipage guide.