can use some type of document generating script to create nice docs for enstars.
there are API ones to document what your code is doing and then also general docs ones.
- This is what civi uses for their documentation
There are also other ones, this one is laravel specific mkdocs
Also this website
This is is an automatic php one:
- https://github.com/phpDocumentor/phpDocumentor2 might be better from apis?