Here is an example of how to export live documentation:
https://gist.github.com/amirrajan/d2206cd820adeba44ce384e549b69b18