Closed pz-max closed 2 years ago
Commit fd4add803db80190c24fd34ae7b957b3b58da4c4 fixes the issue on the documentation, which now is generated. In the future we should create the images that are used in the documentation, as done in PyPSA-Eur
Issues where generated by specifying elements in the list autodoc_mock_imports
in doc/conf.py file.
I commented all the packages listed in that list and the documentation runs.
Moreover, I improved the API_reference to improve the readability.
Note: on my computer it works, but the documentation online here on github is not update; to be finalized
I close this comment as solved by #118
Our documentation is currently not build automatically see: https://pypsa-meets-africa.readthedocs.io/en/latest/api_reference.html We should fix that before the prototype is released.
To reproduce the error message:
conda env create -f envs/environment.docs.yaml
cd /doc
make html
to build the documentation locally.Some places that can help solving the issue: Readthedocs uses Sphinx. In particular, the sphinx.ext.autodoc creates the automated documentation. It is documented here.
Examples of other API's (automated documentation):