mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-04-26 00:26:21 +02:00
firx print_toc
This commit is contained in:
parent
d4c910ad5a
commit
d799a0cf67
1 changed files with 0 additions and 1 deletions
|
|
@ -499,7 +499,6 @@ def remove_fields(data, fields=['text']):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def print_toc(tree, indent=0):
|
def print_toc(tree, indent=0):
|
||||||
print(tree)
|
|
||||||
for node in tree:
|
for node in tree:
|
||||||
print(' ' * indent + node['title'])
|
print(' ' * indent + node['title'])
|
||||||
if node.get('nodes'):
|
if node.get('nodes'):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue