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