Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify
import guzzle_sphinx_theme
import recommonmark

# -- Project information -----------------------------------------------------

Expand All @@ -25,6 +24,7 @@
'sphinx.ext.ifconfig',
'sphinx.ext.imgmath',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'sphinx.ext.todo',
'sphinx.ext.viewcode',
'sphinx_markdown_tables',
Expand Down Expand Up @@ -64,6 +64,12 @@

suppress_warnings = ['image.nonlocal_uri']


def missing_reference(app, env, node, contnode):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MattiSG here!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand 😅

if node["reftype"] == "class" and node["reftarget"] == "NDArray":
return contnode


def setup(app):
app.add_config_value('recommonmark_config', {
'url_resolver': lambda url: url.replace('.md', '.html'),
Expand All @@ -72,3 +78,4 @@ def setup(app):
app.add_transform(AutoStructify) # Manage avanced Markdown files with AutoStructify
app.add_stylesheet('style.css')
app.add_javascript('scripts.js')
app.connect("missing-reference", missing_reference)
7 changes: 7 additions & 0 deletions source/openfisca-python-api/commons.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
=======
Commons
=======

.. automodule:: openfisca_core.commons
:members:
:special-members: __call__
2 changes: 2 additions & 0 deletions source/openfisca-python-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Modules:
.. toctree::
:maxdepth: 1

commons
tax-benefit-system
variables
parameters
Expand All @@ -21,6 +22,7 @@ Modules:
simulation_generator
periods
errors
types
```

Scripts:
Expand Down
9 changes: 9 additions & 0 deletions source/openfisca-python-api/types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
=====
Types
=====

.. automodule:: openfisca_core.types
:members:

.. automodule:: openfisca_core.types.data_types.arrays
:members: