Skip to content

Commit

Permalink
a minimal API docs example
Browse files Browse the repository at this point in the history
  • Loading branch information
niksirbi committed Oct 22, 2024
1 parent 031fe2d commit 9f71c06
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-e .
linkify-it-py
myst-parser
nbsphinx
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
neuralplayground.agents.agent\_core.AgentCore
=============================================

.. currentmodule:: neuralplayground.agents.agent_core

.. autoclass:: AgentCore
13 changes: 13 additions & 0 deletions docs/source/api_index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
API
===

Agent
-----

.. currentmodule:: neuralplayground.agents.agent_core

.. autosummary::
:toctree: api_generated
:template: class.rst

AgentCore
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
author = "University College London"
try:
release = setuptools_scm.get_version(root="../..", relative_to=__file__)
release = release.split(".dev")[0]
except LookupError:
# if git is not initialised, still allow local build
# with a dummy version
Expand Down

0 comments on commit 9f71c06

Please sign in to comment.