Sphinx is a tool for building technical documentation. It combines the ability to intertwine narative document ation with ato generated documentation that pixs things from your code. There's really extensive customisability here, you can then take an aliseit to your specific use case. And this whole thing is combined with the ability to have a variety of outpur for mance as well as a variety of extension points within the toling.