Did you try to generate it on your development environment and push it to prod?
I think this is the best way to manage the API docs, as there should not be any changes made to the docs and the API itself on the production environment directly.
But the issue @DMehaffy linked could also be the issue for you.