-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem disabling create_index_from_dir_structure #327
Comments
Yes that is correct, the following block causes this error: if pb.gc('toggles/features/styling/add_dir_list', cached=True):
if dir_repstring in html:
dir_list = pb.treeobj.BuildIndex(current_page=node['url']) and pb.treeobj is loaded here: if pb.gc('toggles/features/create_index_from_dir_structure/enabled'):
rel_output_path = pb.gc('toggles/features/create_index_from_dir_structure/rel_output_path')
op = paths['html_output_folder'].joinpath(rel_output_path)
print(f'\t> COMPILING INDEX FROM DIR STRUCTURE ({op})')
treeobj = CreateIndexFromDirStructure(pb, pb.paths['html_output_folder'])
pb.treeobj = treeobj
treeobj.html = treeobj. So for toggles:
features:
create_index_from_dir_structure:
enabled: True
rel_output_path: 'obs.html/dir_index.html'
styling:
show_icon: False I guess the best solution here is to add a check whether pb.treeobj exists and then load it in anyways if it doesn't yet. Just curious, why did you disable the create_index_from_dir_structure feature? |
Should be fixed in master now |
Yeah I just wanted to get rid of the icon. Cheers! |
I would like to disable create_index_from_dir_structure but get an error when doing it. I have found this issue on all the obsidianhtml-generated sites I maintain which have default styling. Perhaps this feature is needed to generate the file tree - if so a note in the docs would be great.
PS - loving obsidianhtml, as usual.
To reproduce:
Observe:
The text was updated successfully, but these errors were encountered: