Skip to content

Commit

Permalink
docs: only keep the last atom in API documetnation (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored Nov 29, 2024
2 parents 39054f7 + 6bb3150 commit f1fdb6d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/_templates/python/class.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if obj.display %}
{% if is_own_page %}
{{ obj.id }}
{{ "=" * obj.id | length }}
{{ obj.id.split(".")[-1] }}
{{ "=" * obj.id.split(".")[-1] | length }}

{% endif %}
{% set visible_children = obj.children|selectattr("display")|list %}
Expand Down
4 changes: 2 additions & 2 deletions docs/_templates/python/function.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if obj.display %}
{% if is_own_page %}
{{ obj.id }}
{{ "=" * obj.id | length }}
{{ obj.id.split(".")[-1] }}
{{ "=" * obj.id.split(".")[-1] | length }}

{% endif %}
.. py:function:: {% if is_own_page %}{{ obj.id }}{% else %}{{ obj.short_name }}{% endif %}({{ obj.args }}){% if obj.return_annotation is not none %} -> {{ obj.return_annotation }}{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions docs/_templates/python/method.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if obj.display %}
{% if is_own_page %}
{{ obj.id }}
{{ "=" * obj.id | length }}
{{ obj.id.split(".")[-1] }}
{{ "=" * obj.id.split(".")[-1] | length }}

{% endif %}
.. py:method:: {% if is_own_page %}{{ obj.id }}{% else %}{{ obj.short_name }}{% endif %}({{ obj.args }}){% if obj.return_annotation is not none %} -> {{ obj.return_annotation }}{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions docs/_templates/python/module.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if obj.display %}
{% if is_own_page %}
{{obj.id}}
{{"=" * obj.id|length}}
{{ obj.id.split(".")[-1] }}
{{ "=" * obj.id.split(".")[-1] | length }}

.. py:module:: {{obj.name}}
Expand Down
2 changes: 1 addition & 1 deletion geetools/ee_image_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@ def reduceRegion(
The result will be shaped as a dictionary with the idProperty as key and for each f them the reduced band values.
.. code-block:: json
.. code-block::
{
"image1": {"band1": value1, "band2": value2, ...},
Expand Down

0 comments on commit f1fdb6d

Please sign in to comment.