pip install pdoc
pdoc --html <module_name>
# example_module.py
def add(a, b):
"""
This function adds two numbers.
Parameters:
a (int): The first number.
b (int): The second number.
Returns:
int: The sum of the two numbers.
"""
return a + b
pdoc --html example_module