Skip to content

Commit

Permalink
readthedocs support
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Jun 29, 2019
1 parent 229c93d commit b5c075e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
4 changes: 0 additions & 4 deletions docs/.gitignore

This file was deleted.

6 changes: 6 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
-f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
numpy
torch_nightly
torch-scatter
torch-sparse
torch-spline-cluster
sphinx
sphinx_rtd_theme
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime
import sphinx_rtd_theme
import doctest
from torch_geometric import __version__
import torch_geometric

extensions = [
'sphinx.ext.autodoc',
Expand All @@ -20,8 +20,8 @@
project = 'pytorch_geometric'
copyright = '{}, {}'.format(datetime.datetime.now().year, author)

version = 'master ({})'.format(__version__)
release = 'master'
version = torch_geometric.__version__
release = torch_geometric.__version__

html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
Expand Down
11 changes: 11 additions & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
image: latest

python:
version: 3.7
install:
- requirements: docs/requirements.txt
setup_py_install: true
system_packages: true

formats: []

0 comments on commit b5c075e

Please sign in to comment.