pypsa-meets-earth / pypsa-earth

PyPSA-Earth: A flexible Python-based open optimisation model to study energy system futures around the world.
https://pypsa-earth.readthedocs.io/en/latest/
225 stars 177 forks source link

Fix API-reference in documentation #85

Closed pz-max closed 2 years ago

pz-max commented 3 years ago

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:

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):

davide-f commented 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

davide-f commented 2 years ago

I close this comment as solved by #118