Skip to content
Draft
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
6 changes: 6 additions & 0 deletions doc/sphinx/source/_templates/gentree.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{%- extends "layout.html" %}
{% set title = _('Tree') %}
{% block body %}
<h1>{{ _('Tree') }}</h1>
{{ toctree(includehidden=True, collapse=False, maxdepth=-1) }}
{% endblock %}
9 changes: 9 additions & 0 deletions doc/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@

html_theme = "neo4j"
html_theme_path = ["themes"]
html_theme_options = {
"sidebar_includehidden": True,
"sidebar_collapse": True,
}


# 01-nav.js is a copy of a js file of the same name that is included in the docs-ui bundle
Expand All @@ -71,6 +75,11 @@ def setup(app): # type: ignore
"networkx": ("https://networkx.org/documentation/stable/", None),
}

# Additional templates that should be rendered to pages, maps page names to
# template names.
html_additional_pages = {"gentree": "gentree.html"}


rst_epilog = """
.. |api-version| replace:: {versionnum}
""".format(
Expand Down
2 changes: 1 addition & 1 deletion doc/sphinx/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Neo4j Graph Data Science Python Client API Reference
This API reference manual lists all available endpoints in the Neo4j Graph Data Science Python Client |api-version|.

.. toctree::
:maxdepth: 1
:maxdepth: 2
:caption: Contents

plugin/index
Expand Down
13 changes: 13 additions & 0 deletions doc/sphinx/source/themes/neo4j/indexnav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div id="indexlinkbox">
<h3 id="indexlinklabel">{{ _('Index') }}</h3>

<div class="indexlinkwrapper nav-menu">
<ul>
<li class="toctree-l1">
<a href="{{ pathto('genindex')|e }}" class="indexlink genindex">
{{ _('Index') }}
</a>
</li>
</ul>
</div>
</div>
3 changes: 0 additions & 3 deletions doc/sphinx/source/themes/neo4j/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@
</div>
</aside>
</div>



Loading