I have created some documentation, and then from some parts of another project I'm working on (in Python) I want to be able to refer to this documentation.
The way I want to do this is by using sphinx to build my documentation to HTML/Latex and also build it to a bunch of JSON files which I can easily read into my other project and use to refer to the documentation.
Is there an easy way to do this, or do I need to create a Sphinx extension? If I need to create a Sphinx extension, what would the best structure for that be? I can't figure out what the structure of such an extension would be: should it be a Builder, which then calls a NodeVisitor?