Is it possible to auto-generate JSDocs/PHPDocs on push?

I am new to Gitlab and have been searching the docs for ideas on how to regenerate code documentation through JSDoc and PHPDoc any time there is a push to a specific branch. It would be really sweet if we could auto-update the gitlab wiki for our project with this documentation, but we would also be happy just getting a trigger to update a directory outside of the project as well.

We are using our own Gitlab server and I’m sure there are multiple approaches we could use, but I don’t want to dive into a custom solution if there are any tools available that may simplify the process.

Does anyone have any advice or links to other resources on a sensible way to achieve this?