Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.43 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.43 KB

sphinx-inventory

The code used to generate the sphinx inventory of the all the Google Earth Engine objects.

Usage

This repository is generating and storing the Sphinx inventory of the GEE objects. The inventory is generated by the generate_inventory.py script. The script is using the ee module to get the list of the objects and their methods. The inventory is stored in the inventory/earthengine-api.inv file. The inventory.json file is used by the sphinx to generate the documentation.

To link Earth Engine object in your sphinx documentation, add the following to your conf.py file:

intersphinx_mapping = {
    'ee': (
        "https://developers.google.com/earth-engine/apidocs",
        "https://raw.githubusercontent.com/gee-community/sphinx-inventory/refs/heads/main/inventory/earthengine-api.inv"
    ),
}

Then you can use the :py:class:'ee.Image' role to link the Earth Engine object in your Sphinx files. It will appear as ee.Image in the built documentation.

Note

  • To know more about earthengine-api read their documentation here
  • To know more about sphinx read their documentation here
  • To know more about sphinx.ext.intersphinx usage read their documentation here