Skip to content
Snippets Groups Projects
Commit 667f8799 authored by Vermaat's avatar Vermaat
Browse files

Compilation of developer documentation on Read The Docs

We use a separate `doc/requirements.txt` file for building the
documentation. Since on Read The Docs where we cannot install
packages depending on C libraries, we mock these packages in
`doc/conf.py` and omit them from the requirements.
parent 0def67bd
No related branches found
No related tags found
No related merge requests found
......@@ -12,9 +12,9 @@ User documentation can be found on the `wiki
<https://humgenprojects.lumc.nl/trac/mutalyzer>`_. From there, you can also
submit bug reports and feature requests.
Developer documentation can be found in the ``doc/`` subdirectory and can be
compiled to HTML by running ``make html`` from there. This requires `Sphinx`_
to be installed.
Developer documentation is `hosted at Read The Docs
<http://mutalyzer.readthedocs.org>`_. Contributions to Mutalyzer are welcome
as `GitHub pull requests <https://github.com/LUMC/mutalyzer/pulls>`_.
Copyright
......
......@@ -15,6 +15,18 @@
import sys
import os
# http://read-the-docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
from mock import MagicMock
class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()
MOCK_MODULES = ['MySQLdb', 'cchardet', 'lxml', 'lxml.builder', 'lxml.etree',
'magic']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
# 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.
......
Sphinx
alembic
biopython
flask
mock
pyparsing
redis
sqlalchemy
sphinx-rtd-theme
spyne
suds
xlrd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment