Skip to content

Commit f21bd09

Browse files
authored
Merge pull request #66 from neo4j/doc-notebooks
Add notebooks to ref docs
2 parents 3549f01 + 5c1c4fb commit f21bd09

13 files changed

Lines changed: 215 additions & 38 deletions

.github/workflows/render-docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ jobs:
2929
python-version: '3.11'
3030
cache: 'pip'
3131
cache-dependency-path: pyproject.toml
32-
- run: pip install "python-wrapper/[dev, pandas, docs]"
32+
- run: pip install "python-wrapper/[dev, pandas, gds, docs]"
33+
34+
- name: Setup pandoc
35+
uses: pandoc/actions/setup@v1
36+
with:
37+
version: 3.6.2
3338

3439
- name: Render ref docs
3540
run: ./scripts/render_docs.sh

docs/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@
2121
"sphinx.ext.autodoc", # include docs from docstrings
2222
"enum_tools.autoenum", # specialised autoclass for enums
2323
"sphinx.ext.napoleon", # Support for NumPy and Google style docstrings
24+
"nbsphinx", # support for jupyter notebooks
25+
"nbsphinx_link", # support for jupyter notebooks from other directories
2426
]
2527

2628
templates_path = ["_templates"]
2729
exclude_patterns: list[str] = []
2830

31+
# -- Options for notebook extension -------------------------------------------
32+
nbsphinx_execute = "never"
2933

3034
# -- Options for HTML output -------------------------------------------------
3135
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

docs/source/example_cora_graph.png

334 KB
Loading

docs/source/index.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ This API reference manual lists all available endpoints in the `neo4j_viz` `pack
1010

1111

1212
.. toctree::
13-
:maxdepth: 2
13+
:glob:
14+
:maxdepth: 1
1415
:caption: Contents:
1516

16-
from_gds
17-
from_pandas
18-
graph
19-
render_options
17+
*
18+
tutorials/*

docs/source/themes/sphinx_neo4j/layout.html

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,13 @@
2020
<nav class="navbar">
2121
<div class="navbar-brand">
2222
<a class="navbar-item" href="/">
23-
<img class="navbar-logo" src="https://dist.neo4j.com/wp-content/uploads/20210422142941/neo4j-logo-2020.svg" alt="Neo4j Graph Data Science Client API Reference">
23+
<img class="navbar-logo" src="https://dist.neo4j.com/wp-content/uploads/20210422142941/neo4j-logo-2020.svg" alt="Graph Visualization for Python API Reference">
2424
</a>
25-
<a href="{{ pathto(root_doc) }}" class="navbar-item no-left-padding" aria-label="Neo4j Graph Data Science Client API Reference">
26-
Graph Data Science Client API Reference
25+
<a href="{{ pathto(root_doc) }}" class="navbar-item no-left-padding" aria-label="Graph Visualization for Python API Reference">
26+
Graph Visualization for Python API Reference
2727
</a>
2828

2929
</div>
30-
<div id="topbar-nav" class="navbar-menu">
31-
<div class="navbar-start">
32-
<span class="navbar-link">
33-
<a href="/docs/graph-data-science-client" class="project-link external">Graph Data Science Client docs</a>
34-
</span>
35-
</div>
36-
</div>
3730
</nav>
3831
</header>
3932

@@ -68,4 +61,4 @@
6861
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WK23PSS');</script>
6962
{% endif %}
7063
{%- endblock %}
71-
</body>
64+
</body>
334 KB
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"path": "../../../examples/gds-nvl-example.ipynb",
3+
"extra-media": [
4+
"../../../examples/example_cora_graph.png"
5+
]
6+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/neo4j-nvl-example.ipynb"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../examples/snowpark-nvl-example.ipynb"
3+
}

examples/gds-nvl-example.ipynb

Lines changed: 147 additions & 13 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)