conf.py 790 Bytes
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
import os
import sys
import datetime
import sphinx_rtd_theme
rusty1s's avatar
rusty1s committed
5
import doctest
rusty1s's avatar
rusty1s committed
6
7
8

sys.path.insert(0, os.path.abspath('../..'))

rusty1s's avatar
rusty1s committed
9
from torch_scatter import __version__  # noqa
rusty1s's avatar
rusty1s committed
10
11
12
13

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.doctest',
rusty1s's avatar
rusty1s committed
14
    'sphinx.ext.intersphinx',
rusty1s's avatar
rusty1s committed
15
16
17
18
19
20
21
22
23
24
    'sphinx.ext.mathjax',
    'sphinx.ext.napoleon',
    'sphinx.ext.viewcode',
    'sphinx.ext.githubpages',
]

source_suffix = '.rst'
master_doc = 'index'

author = 'Matthias Fey'
rusty1s's avatar
rusty1s committed
25
26
27
project = 'pytorch_scatter'
copyright = '{}, {}'.format(datetime.datetime.now().year, author)
version = release = __version__
rusty1s's avatar
rusty1s committed
28
29
30

html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
rusty1s's avatar
rusty1s committed
31
32
33

doctest_default_flags = doctest.NORMALIZE_WHITESPACE
intersphinx_mapping = {'python': ('https://docs.python.org/', None)}