Skip to content

Commit 4e861d5

Browse files
committed
docs
1 parent 8d185a4 commit 4e861d5

4 files changed

Lines changed: 125 additions & 21 deletions

File tree

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ sphinx:
1010

1111
python:
1212
install:
13-
- requirements: docs/requirements.txt
13+
- requirements: docs/requirements.txt

docs/source/conf.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import datetime
22
import doctest
3+
import os
4+
import sys
5+
36
import sphinx_rtd_theme
47

8+
sys.path.insert(0, os.path.abspath('../../'))
9+
510
extensions = [
6-
'autoapi.extension',
11+
'sphinx.ext.autodoc',
12+
'sphinx.ext.autosummary',
713
'sphinx.ext.doctest',
814
'sphinx.ext.intersphinx',
915
'sphinx.ext.mathjax',
@@ -14,29 +20,28 @@
1420

1521
source_suffix = '.rst'
1622
master_doc = 'index'
17-
author = 'Yixuan He'
23+
1824
project = 'PyTorch Geometric Signed Directed'
25+
author = 'Yixuan He'
1926
copyright = '{}, {}'.format(datetime.datetime.now().year, author)
2027

2128
html_theme = 'sphinx_rtd_theme'
29+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
2230
html_theme_options = {
2331
'collapse_navigation': False,
2432
'display_version': True,
2533
'logo_only': True,
34+
'navigation_depth': 2,
2635
}
2736

28-
doctest_default_flags = doctest.NORMALIZE_WHITESPACE
29-
intersphinx_mapping = {'python': ('https://docs.python.org/', None)}
30-
3137
html_logo = '_static/img/text_logo.jpg'
3238
html_static_path = ['_static']
3339
html_context = {'css_files': ['_static/css/custom.css']}
34-
add_module_names = False
3540

36-
autoapi_type = 'python'
37-
autoapi_dirs = ['../../torch_geometric_signed_directed/']
38-
autoapi_keep_files = True
39-
autoapi_generate_api_docs = True
41+
doctest_default_flags = doctest.NORMALIZE_WHITESPACE
42+
intersphinx_mapping = {'python': ('https://docs.python.org/', None)}
43+
add_module_names = False
44+
autosummary_generate = True
4045

4146
autodoc_mock_imports = [
4247
'torch',
@@ -45,6 +50,9 @@
4550
'torch_scatter',
4651
]
4752

53+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
54+
55+
4856
def setup(app):
4957
def skip(app, what, name, obj, skip, options):
5058
members = ['__init__', '__repr__', '__weakref__', '__dict__', '__module__']

docs/source/index.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
:github_url: https://github.com/SherylHYX/pytorch_geometric_signed_directed
22

33
PyTorch Geometric Signed Directed Documentation
4-
========================================
4+
==============================================
55

6-
PyTorch Geometric Signed Directed is a signed/directed graph neural network extension library for `PyTorch Geometric <https://github.com/rusty1s/pytorch_geometric/>`_.
7-
It builds on open-source deep-learning and graph processing libraries.
8-
*PyTorch Geometric Signed Directed* consists of various signed and directed geometric deep learning, embedding, and clustering methods from a variety of published research papers and selected preprints.
6+
PyTorch Geometric Signed Directed is a signed and directed graph neural
7+
network extension library for PyTorch Geometric. It provides models, data
8+
loaders, and utilities for signed and directed graph learning.
99

10+
This documentation is organized into two parts:
11+
12+
- **Notes** — installation, overview, datasets, and examples.
13+
- **Package Reference** — API documentation for the library.
1014

1115
.. toctree::
12-
:glob:
1316
:maxdepth: 2
1417
:caption: Notes
18+
:glob:
1519

1620
notes/installation
1721
notes/introduction
@@ -20,10 +24,8 @@ It builds on open-source deep-learning and graph processing libraries.
2024
notes/datasets
2125

2226
.. toctree::
23-
:glob:
24-
:maxdepth: 3
27+
:maxdepth: 2
2528
:caption: Package Reference
29+
:glob:
2630

27-
modules/model
28-
modules/data
29-
modules/utils
31+
modules/root

docs/source/modules/root.rst

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
Package Reference
2+
=================
3+
4+
.. contents:: Contents
5+
:local:
6+
7+
Top-level package
8+
-----------------
9+
10+
.. automodule:: torch_geometric_signed_directed
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
Data
16+
----
17+
18+
Directed data
19+
^^^^^^^^^^^^^
20+
21+
.. automodule:: torch_geometric_signed_directed.data.directed
22+
:members:
23+
:undoc-members:
24+
:show-inheritance:
25+
26+
Signed data
27+
^^^^^^^^^^^
28+
29+
.. automodule:: torch_geometric_signed_directed.data.signed
30+
:members:
31+
:undoc-members:
32+
:show-inheritance:
33+
34+
General data
35+
^^^^^^^^^^^^
36+
37+
.. automodule:: torch_geometric_signed_directed.data.general
38+
:members:
39+
:undoc-members:
40+
:show-inheritance:
41+
42+
Neural network modules
43+
----------------------
44+
45+
Directed models
46+
^^^^^^^^^^^^^^^
47+
48+
.. automodule:: torch_geometric_signed_directed.nn.directed
49+
:members:
50+
:undoc-members:
51+
:show-inheritance:
52+
53+
Signed models
54+
^^^^^^^^^^^^^
55+
56+
.. automodule:: torch_geometric_signed_directed.nn.signed
57+
:members:
58+
:undoc-members:
59+
:show-inheritance:
60+
61+
General models
62+
^^^^^^^^^^^^^^
63+
64+
.. automodule:: torch_geometric_signed_directed.nn.general
65+
:members:
66+
:undoc-members:
67+
:show-inheritance:
68+
69+
Utilities
70+
---------
71+
72+
Directed utilities
73+
^^^^^^^^^^^^^^^^^^
74+
75+
.. automodule:: torch_geometric_signed_directed.utils.directed
76+
:members:
77+
:undoc-members:
78+
:show-inheritance:
79+
80+
Signed utilities
81+
^^^^^^^^^^^^^^^^
82+
83+
.. automodule:: torch_geometric_signed_directed.utils.signed
84+
:members:
85+
:undoc-members:
86+
:show-inheritance:
87+
88+
General utilities
89+
^^^^^^^^^^^^^^^^^
90+
91+
.. automodule:: torch_geometric_signed_directed.utils.general
92+
:members:
93+
:undoc-members:
94+
:show-inheritance:

0 commit comments

Comments
 (0)