Skip to content

Commit cf3fb84

Browse files
committed
doc
1 parent bc7970c commit cf3fb84

3 files changed

Lines changed: 50 additions & 26 deletions

File tree

docs/source/conf.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
copyright = f'{datetime.datetime.now().year}, {author}'
1212

1313
extensions = [
14-
'autoapi.extension',
14+
'sphinx.ext.autodoc',
1515
'sphinx.ext.intersphinx',
1616
'sphinx.ext.mathjax',
1717
'sphinx.ext.napoleon',
@@ -39,22 +39,20 @@
3939
'python': ('https://docs.python.org/3', None),
4040
}
4141

42-
autoapi_type = 'python'
43-
autoapi_dirs = [os.path.abspath('../../torch_geometric_signed_directed')]
44-
autoapi_file_patterns = ['*.py']
45-
autoapi_root = 'modules/_autoapi'
46-
autoapi_keep_files = True
47-
autoapi_add_toctree_entry = False
48-
autoapi_options = [
49-
'members',
50-
'undoc-members',
51-
'show-inheritance',
52-
'show-module-summary',
53-
'special-members',
54-
'imported-members',
42+
add_module_names = False
43+
autodoc_mock_imports = [
44+
'torch',
45+
'torch_geometric',
46+
'torch_sparse',
47+
'torch_scatter',
5548
]
5649

5750
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
5851

52+
5953
def setup(app):
60-
app.add_css_file('css/custom.css')
54+
def skip(app, what, name, obj, skip, options):
55+
members = ['__init__', '__repr__', '__weakref__', '__dict__', '__module__']
56+
return True if name in members else skip
57+
58+
app.connect('autodoc-skip-member', skip)

docs/source/index.rst

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
PyTorch Geometric Signed Directed
2-
=================================
1+
PyTorch Geometric Signed Directed Documentation
2+
===============================================
33

4-
This documentation is centered on the package API.
4+
PyTorch Geometric Signed Directed is a signed and directed graph neural
5+
network extension library for PyTorch Geometric.
56

67
.. toctree::
78
:maxdepth: 1
9+
:caption: Notes
810

9-
modules/root
1011
notes/installation
11-
notes/introduction
12+
notes/introduction
13+
notes/case_study
14+
notes/resources
15+
notes/datasets
16+
17+
.. toctree::
18+
:maxdepth: 1
19+
:caption: Package Reference
20+
21+
modules/root

docs/source/modules/root.rst

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
11
PyTorch Geometric Signed Directed
22
=================================
33

4-
Signed and directed graph neural network utilities for PyTorch Geometric.
5-
64
.. contents:: Contents
75
:local:
86

9-
Package API
10-
-----------
7+
Data Structures
8+
---------------
9+
10+
.. toctree::
11+
:maxdepth: 1
12+
13+
data
14+
15+
Models
16+
------
17+
18+
.. toctree::
19+
:maxdepth: 1
20+
21+
model
22+
23+
Utilities
24+
---------
25+
26+
.. toctree::
27+
:maxdepth: 1
1128

12-
.. autoapi-tree::
13-
:nosignatures:
29+
utils

0 commit comments

Comments
 (0)