forked from tildetown/tilde-wiki
		
	show full path in toc
This commit is contained in:
		
							parent
							
								
									e96f16c5c3
								
							
						
					
					
						commit
						ff42cf8863
					
				@ -45,7 +45,7 @@ def compile_wiki(source_path: str, dest_path: str) -> None:
 | 
				
			|||||||
            dest_filename = source_filename.split('.')[0] + '.html'
 | 
					            dest_filename = source_filename.split('.')[0] + '.html'
 | 
				
			||||||
            toc_content += '<li><a href="{}">{}</a></li>\n'.format(
 | 
					            toc_content += '<li><a href="{}">{}</a></li>\n'.format(
 | 
				
			||||||
                path_join(current_suffix, dest_filename),
 | 
					                path_join(current_suffix, dest_filename),
 | 
				
			||||||
                dest_filename.split('.')[0])
 | 
					                path_join(current_suffix,dest_filename.split('.')[0]))
 | 
				
			||||||
            with open(path_join(preview_root, dest_filename), 'w') as f:
 | 
					            with open(path_join(preview_root, dest_filename), 'w') as f:
 | 
				
			||||||
                f.write(output)
 | 
					                f.write(output)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user