A sequence diagram is really useful for representing system workflow between each entity inside the system.
https://www.websequencediagrams.com is an online tool for generating a sequence diagram from source code easily and you can manage each diagram inside this tool or just copy source code to your own git repository.
We just manage the code like this.
The tool will generate this sequence diagram automatically. We can also export the diagram to pdf, svg, png format.