Closed H0R5E closed 4 years ago
@H0R5E sorry for the slow reply. Looping in @ssolson since he works on both codes, and @rpauly18 since she's leading MHKiT-MATLAB development.
MHKiT is written in both MATLAB and Python. The MHKiT documentation is hosted here, and the MHKiT-Python and MHKiT-MATLAB source code are hosted on two separate repositories.
We have no issues compiling the MHKiT-Python API documentation. We have a set relative path to clone each repository, and point to the python source code to generate the API documentation. Refer to: https://mhkit-software.github.io/MHKiT/python.html# and https://mhkit-software.github.io/MHKiT/python.html#api-documentation.
However, the only way we could get the MHKiT-MATLAB API documentation to work is by running sphinx locally to compile documentation in the MHKiT-MATLAB repository, and then copy the generated HTML files into the MHKiT documentation repository, and push it online. This creates two issues:
@rpauly18 feel free to clarify and/or create issue on https://github.com/MHKiT-Software/MHKiT/issues
@H0R5E I was able to resolve the API doc issue by pulling MHKiT-MATLAB and MHKiT-Python repositories into the MHKiT documentation repo as submodules. I then specified the MATLAB source path in the conf.py
file, and differentiated between MATLAB and Python source using the .. mat:automodule::
flag described here: https://pypi.org/project/sphinxcontrib-matlabdomain/.
@H0R5E wrote:
@kmruehl wrote:
@kmruehl, continuing on from #65, I wonder if you would mind giving me more details about what problems you are having with this approach (which seems like a facsimile of ours)? I notice you are trying to merge your docs into another set of docs (is this where you lose your index?). What are the other problems you are having?