MCPcopy
hub / github.com/VectifyAI/PageIndex / print_toc

Function print_toc

pageindex/utils.py:474–478  ·  view source on GitHub ↗
(tree, indent=0)

Source from the content-addressed store, hash-verified

472 return data
473
474def print_toc(tree, indent=0):
475 for node in tree:
476 print(' ' * indent + node['title'])
477 if node.get('nodes'):
478 print_toc(node['nodes'], indent + 1)
479
480def print_json(data, max_len=40, indent=2):
481 def simplify_data(obj):

Callers 1

page_index_md.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected