Skip to content

Commit

Permalink
fix(entities): fix broken core documentation (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko authored Oct 1, 2024
2 parents 07639df + c1fd8e5 commit c434a5b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
.idea
.python-version
.venv
build/*
4 changes: 4 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,14 @@
'ignore-module-all': True
}

napoleon_custom_sections = [('Returns', 'params_style')]


def missing_reference(app, env, node, contnode):
if node['reftype'] == 'class' and node['reftarget'].startswith('nptyping'):
return contnode


def setup(app):
app.add_config_value('recommonmark_config', {
'url_resolver': lambda url: url.replace('.md', '.html'),
Expand Down
2 changes: 1 addition & 1 deletion source/openfisca-python-api/commons.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Commons

.. automodule:: openfisca_core.commons
:members:
:special-members: __call__
:imported-members:
16 changes: 3 additions & 13 deletions source/openfisca-python-api/entities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@
Entities
========

.. module:: openfisca_core.entities

.. autoclass:: Role
:noindex:
:members:

.. autoclass:: Entity
:members:

.. autoclass:: GroupEntity
:members:

.. automodule:: openfisca_core.entities.helpers
.. automodule:: openfisca_core.entities
:members:
:imported-members:
:inherited-members:

0 comments on commit c434a5b

Please sign in to comment.