Skip to content

Commit

Permalink
Push 2 for RTD,
Browse files Browse the repository at this point in the history
hopefully this works.
  • Loading branch information
Ragav Venkatesan committed Nov 13, 2016
1 parent af2b236 commit c9d26b0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
*.pyc
*.txt
*.pkl.gz
*.jpg
*.pkl
*.mat
*.zip
/docs/build
/docs/build
/_dev
33 changes: 24 additions & 9 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,38 @@

import sys
import os
import shlex
import sphinx_fontawesome

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('../..'))

# fool rtd into thinking a GPU is available, so all modules are importable
try:
from unittest.mock import Mock
except ImportError:
from mock import Mock

import theano
import theano.sandbox.cuda

theano.config = Mock(device='gpu')
theano.sandbox.cuda.cuda_enabled = True
theano.sandbox.cuda.dnn = Mock(dnn_available=lambda: True)

import sys
from unittest.mock import MagicMock

class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()
sys.modules['pylearn2'] = Mock()
sys.modules['pylearn2.sandbox'] = Mock()
sys.modules['pylearn2.sandbox.cuda_convnet'] = Mock()
sys.modules['pylearn2.sandbox.cuda_convnet.filter_acts'] = \
Mock(FilterActs=None)

sys.modules['theano.sandbox.cuda.blas'] = Mock(GpuCorrMM=None)
sys.modules['sphinx_fontawesome'] = Mock()

MOCK_MODULES = ['sphinx_fontawesome']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
import shlex
import sphinx_fontawesome

# General configuration
# ---------------------
Expand Down Expand Up @@ -75,6 +89,7 @@ def __getattr__(cls, name):
version = '0.1'
# The full version, including alpha/beta/rc tags.
release = '0.1 alpha'
copyright = u'2015–2016, Ragav Venkatesan'


# There are two options for replacing |today|: either, you set today to some
Expand Down
5 changes: 5 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-r requirements.txt
mock
numpydoc
Sphinx==1.2.3
sphinx_rtd_theme
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Theano==0.9.0
6 changes: 6 additions & 0 deletions to_do.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
** Test all features and make an alpha release.
** Parse code for visualizing filters possibly in matlab similar to the other thing ..
with GUI options to load choice of epoch.
** Provide support for PASCAL VOC and ImageNet.


0 comments on commit c9d26b0

Please sign in to comment.