(docs_dir)
Create markdown files describing all of the data tables.
Create markdown files describing all of the data tables.
Create markdown files describing all of the data tables .
def inventory_everything(docs_dir):
    """
    Create markdown files describing all of the data tables.
    """
    docs_path = pathlib.Path(docs_dir)
    if not docs_path.exists():
        docs_path.mkdir()
    template_loader = jinja2.FileSystemLoader([pathlib.Path(__file__).parent.joinpath("templates")])
    template_env = jinja2.Environment(loader=template_loader)
    list_template = template_env.get_template("table_list.md")
    with open(docs_path.joinpath("TABLES.md"), 'w') as f:
        f.write(list_template.render(object_list=TABLE_LIST))
def inventory_everything ( docs_dir ) : docs_path = pathlib . Path ( docs_dir ) if not docs_path . exists ( ) : docs_path . mkdir ( ) template_loader = jinja2 . FileSystemLoader ( [ pathlib . Path ( __file__ ) . parent . joinpath ( "templates" ) ] ) template_env = jinja2 . Environment ( loader = template_loader ) list_template = template_env . get_template ( "table_list.md" ) with open ( docs_path . joinpath ( "TABLES.md" ) , 'w' ) as f : f . write ( list_template . render ( object_list = TABLE_LIST ) )