Docstrings are the documnetation for your code. A very useful python module to create a web page with links that you can use to generate documentation is the pdoc or pdoc3 module(s). The following was generated by the pdoc module for the dice module. You may wish ro review:
The logic in these links extend to the design of classes and the documention for methods.
Tutorial: how to run and use pdoc for generating documentation