I use sphinx to generate LaTeX documentation. For this I have a docker setup which is based on python:slim and which adds some TeX libraries etc an
sphinx
python:slim