I have prepared a simple code that creates an html page from a Python (*.py, or *.pyc) script using the pdoc module. The code is the following:
def make_pdoc():
import pdoc
import sys
from os import path
libpath = r'C:\path\to\file'
if path.exists(libpath) and libpath not in sys.path:
sys.path.append(libpath)
pdoc.import_path.append(libpath)
mod = pdoc.import_module('my_script')
doc = pdoc.Module(mod, allsubmodules=True)
string = doc.html(external_links=True)
with open('doc.html', 'w') as html_file:
html_file.write(string.encode('utf-8'))
if __name__ == '__main__':
make_pdoc()
I have prepared several html pages with the documentation and would like to create one page with links to all html pages I've created. In other words, I would like to create something like the main pdoc documentation page.
Is it possible to make the main page using the pdoc module?