Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangyanCai committed Sep 2, 2024
2 parents b6f350c + 01feff2 commit 7906ff4
Show file tree
Hide file tree
Showing 34 changed files with 1,440 additions and 689 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ instance/

# Sphinx documentation
docs/build/
docs/source/irtk_stubs

# PyBuilder
target/
Expand Down
9 changes: 9 additions & 0 deletions docs/source/_templates/autosummary/class.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{ fullname | escape | underline}}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}
:members:

.. automethod:: __init__

64 changes: 64 additions & 0 deletions docs/source/_templates/autosummary/module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{{ fullname | escape | underline}}

.. automodule:: {{ fullname }}

{% block attributes %}
{%- if attributes %}
.. rubric:: {{ _('Module Attributes') }}

.. autosummary::
:toctree:
{% for item in attributes %}
{{ item }}
{%- endfor %}
{% endif %}
{%- endblock %}

{%- block classes %}
{%- if classes %}
.. rubric:: {{ _('Classes') }}

.. autosummary::
:toctree:
{% for item in classes %}
{{ item }}
{%- endfor %}
{% endif %}
{%- endblock %}

{%- block functions %}
{%- if functions %}
.. rubric:: {{ _('Functions') }}

.. autosummary::
:toctree:
{% for item in functions %}
{{ item }}
{%- endfor %}
{% endif %}
{%- endblock %}

{%- block exceptions %}
{%- if exceptions %}
.. rubric:: {{ _('Exceptions') }}

.. autosummary::
:toctree:
{% for item in exceptions %}
{{ item }}
{%- endfor %}
{% endif %}
{%- endblock %}

{%- block modules %}
{%- if modules %}
.. rubric:: Modules

.. autosummary::
:toctree:
:recursive:
{% for item in modules %}
{{ item }}
{%- endfor %}
{% endif %}
{%- endblock %}
2 changes: 0 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@

sys.path.insert(0, os.path.abspath("../.."))

import irtk

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

project = "irtk"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.10.14"
},
"orig_nbformat": 4
},
Expand Down
6 changes: 0 additions & 6 deletions docs/source/irtk_stubs/irtk.config.rst

This file was deleted.

20 changes: 0 additions & 20 deletions docs/source/irtk_stubs/irtk.connector.rst

This file was deleted.

32 changes: 0 additions & 32 deletions docs/source/irtk_stubs/irtk.connectors.mitsuba_connector.rst

This file was deleted.

54 changes: 0 additions & 54 deletions docs/source/irtk_stubs/irtk.connectors.nvdiffrast_connector.rst

This file was deleted.

27 changes: 0 additions & 27 deletions docs/source/irtk_stubs/irtk.connectors.psdr_enzyme_connector.rst

This file was deleted.

29 changes: 0 additions & 29 deletions docs/source/irtk_stubs/irtk.connectors.psdr_jit_connector.rst

This file was deleted.

23 changes: 0 additions & 23 deletions docs/source/irtk_stubs/irtk.connectors.pytorch3d_connector.rst

This file was deleted.

26 changes: 0 additions & 26 deletions docs/source/irtk_stubs/irtk.connectors.redner_connector.rst

This file was deleted.

18 changes: 0 additions & 18 deletions docs/source/irtk_stubs/irtk.connectors.rst

This file was deleted.

25 changes: 0 additions & 25 deletions docs/source/irtk_stubs/irtk.io.rst

This file was deleted.

14 changes: 0 additions & 14 deletions docs/source/irtk_stubs/irtk.loss.rst

This file was deleted.

Loading

0 comments on commit 7906ff4

Please sign in to comment.