def write_tableofcontents()

in shelldocs/src/main/python/shelldocs.py [0:0]


    def write_tableofcontents(self, fhout):
        '''build a table of contents'''
        header = None
        for function in self.functions:
            if header != function.header():
                header = function.header()
                fhout.write(f"  * {header}\n")
            markdownsafename = function.name.replace("_", r"\_")
            fhout.write(f"    * [{markdownsafename}](#{function.name})\n")