Skip to content

Commit 1f506dd

Browse files
committed
Init api-ref docs for v2 endpoints
1 parent a17ade6 commit 1f506dd

35 files changed

+743
-171
lines changed

doc/sphinx/source/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,24 @@
2525
"sphinx.ext.autodoc", # include docs from docstrings
2626
"enum_tools.autoenum", # specialised autoclass for enums
2727
"sphinx.ext.napoleon", # Support for NumPy and Google style docstrings
28+
"sphinxcontrib.autodoc_pydantic", # Support for Pydantic models
2829
]
2930

3031
autodoc_class_signature = "separated"
3132

3233
templates_path = ["_templates"]
3334
exclude_patterns = [] # type: ignore
3435

36+
# -- Options for Autodoc Pydantic ------------------------------------------------
37+
autodoc_pydantic_model_show_json = False
38+
autodoc_pydantic_settings_show_json = False
39+
autodoc_pydantic_model_show_config_summary = False
40+
autodoc_pydantic_model_show_field_summary = False
41+
autodoc_pydantic_field_show_alias = False
42+
autodoc_pydantic_field_show_required = False
43+
autodoc_pydantic_field_show_optional = False
44+
autodoc_pydantic_field_show_default = False
45+
3546
# -- Options for HTML output -------------------------------------------------
3647
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
3748

doc/sphinx/source/index.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Neo4j Graph Data Science Python Client API Reference
99
This API reference manual lists all available endpoints in the Neo4j Graph Data Science Python Client |api-version|.
1010

1111
.. toctree::
12-
:maxdepth: 1
12+
:maxdepth: 2
1313
:caption: Contents
1414

1515
graphdatascience
@@ -31,8 +31,5 @@ This API reference manual lists all available endpoints in the Neo4j Graph Data
3131
model/simple_rel_embedding_model
3232
misc
3333
server_version
34-
sessions/gds_sessions
35-
sessions/dbms_connection_info
36-
sessions/session_memory
37-
sessions/algorithm_category
38-
sessions/cloud_location
34+
sessions/index
35+
v2_endpoints/index
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
AuraGraphDataScience
2+
--------------------
3+
4+
.. autoclass:: graphdatascience.session.AuraGraphDataScience
5+
:members:
6+
:exclude-members: __init__
7+
:inherited-members:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.. toctree::
2+
:maxdepth: 1
3+
:caption: Contents
4+
5+
gds_sessions
6+
dbms_connection_info
7+
session_memory
8+
algorithm_category
9+
cloud_location
10+
aura_graphdatascience
11+
12+
.. toctree::
13+
:hidden:
14+
15+
session_v2_endpoints
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
AuraGraphDataScience
2+
--------------------
3+
4+
.. autoclass:: graphdatascience.session.session_v2_endpoints.SessionV2Endpoints
5+
:members:
6+
:exclude-members: __init__, set_progress
7+
:inherited-members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Catalog Arrow Endpoints
2+
========================
3+
4+
.. automodule:: graphdatascience.procedure_surface.arrow.catalog
5+
:exclude-members: __init__
6+
:members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Catalog Arrow Endpoints
2+
========================
3+
4+
.. automodule:: graphdatascience.procedure_surface.api.catalog
5+
:exclude-members: __init__
6+
:members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Centrality Algorithms
2+
=======================
3+
4+
.. automodule:: graphdatascience.procedure_surface.api.centrality
5+
:members:
6+
:exclude-members: __init__
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Community Algorithms
2+
====================
3+
4+
.. automodule:: graphdatascience.procedure_surface.api.community
5+
:members:
6+
:exclude-members: __init__
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Estimation Result
2+
=================
3+
4+
.. automodule:: graphdatascience.procedure_surface.api.estimation_result
5+
:members:
6+

0 commit comments

Comments
 (0)