Skip to content

Commit

Permalink
add mockimport
Browse files Browse the repository at this point in the history
  • Loading branch information
KindXiaoming committed Apr 29, 2024
1 parent f032e48 commit 4cad580
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ def skip(app, what, name, obj, would_skip, options):
def setup(app):
app.connect("autodoc-skip-member", skip)


autodoc_mock_imports = ["sphinx_rtd_theme",
"sphinx.ext.autodoc",
"sphinx.ext.autosectionlabel"
]


source_suffix = [".rst", ".md"]
#source_suffix = [".rst", ".md", ".ipynb"]
Expand Down
27 changes: 24 additions & 3 deletions docs/kan.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
kan package
===========

Submodules
----------

kan.KAN module
--------------

.. automodule:: kan.KAN
:members:
:undoc-members:
:show-inheritance:

kan.KANLayer module
-------------------

.. automodule:: kan.KANLayer
:members:
:undoc-members:
:show-inheritance:


kan.LBFGS module
----------------

.. automodule:: kan.LBFGS
:members:
:undoc-members:
:show-inheritance:

kan.Symbolic\_KANLayer module
-----------------------------

Expand All @@ -29,7 +43,7 @@ kan.spline module
:members:
:undoc-members:
:show-inheritance:

kan.utils module
----------------

Expand All @@ -38,3 +52,10 @@ kan.utils module
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: kan
:members:
:undoc-members:
:show-inheritance:

0 comments on commit 4cad580

Please sign in to comment.