When I was working on PhD thesis 20 years ago, I had a giant makefile that generated my graphs and tables then generated the thesis from LaTeX.
All of it was in version control, made it so much easier, but no way anyone other than someone that uses those tools would be able figure it out.