Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Apr 16, 2024
1 parent 0dc98cd commit 820303b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions anemoi/utils/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ def _paths(path_or_object):


def git_check(*args):
"""_summary_
Returns
-------
_type_
_description_
"""
paths = _paths(args if len(args) > 0 else None)

git = _check_for_git(paths, full=True)
Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
"nbsphinx",
"sphinx.ext.graphviz",
"sphinx.ext.intersphinx",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
8 changes: 8 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ of the *Anemoi* packages.

installing

***********
functions
***********

.. currentmodule:: anemoi.utils.provenance

.. autofunction:: git_check

*****************
Anemoi packages
*****************
Expand Down

0 comments on commit 820303b

Please sign in to comment.