View Single Post
Old 09-28-2024, 01:10 PM   #541
PubFut
Junior Member
PubFut began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Sigil
Plugin code needs review/corrections

The python code in the attached plugin is based on input from Chat GPT (unfortunately I am not a developer myself). It needs review/corrections, as it does not process properly. Is there anyone willing to help me with this?

The plugin is supposed to create a table of contents in the <nav> section of every html file. This TOC shall include references/hyperlinks to all H1, H2 and H3 headings of the current page itself and all other pages that have the first 11 characters of the file name in common (this identifies these files as part of the same main chapter).

Any advise is very much appreciated.
Attached Files
File Type: zip TOC-nav.zip (1.9 KB, 118 views)
PubFut is offline   Reply With Quote