2015-12-25 02:23:45 +08:00
|
|
|
#!/usr/bin/env python2
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import os
|
2015-12-25 02:33:20 +08:00
|
|
|
|
2015-12-25 02:46:44 +08:00
|
|
|
from mock import MagicMock
|
2015-12-25 02:23:45 +08:00
|
|
|
|
|
|
|
sys.path.insert(0, os.path.abspath('..'))
|
|
|
|
|
2015-12-25 02:33:20 +08:00
|
|
|
|
|
|
|
class Mock(MagicMock):
|
|
|
|
@classmethod
|
|
|
|
def __getattr__(cls, name):
|
|
|
|
return Mock()
|
|
|
|
|
2015-12-30 05:04:21 +08:00
|
|
|
MOCK_MODULES = ['argparse', 'cv2', 'dlib', 'numpy', 'pandas']
|
2015-12-25 02:33:20 +08:00
|
|
|
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
|
|
|
|
|
2015-12-25 02:23:45 +08:00
|
|
|
extensions = [
|
|
|
|
'sphinx.ext.autodoc',
|
|
|
|
'sphinx.ext.coverage',
|
|
|
|
'sphinx.ext.mathjax',
|
|
|
|
'sphinx.ext.viewcode',
|
|
|
|
]
|
|
|
|
|
|
|
|
templates_path = ['_templates']
|
|
|
|
|
|
|
|
source_suffix = '.rst'
|
|
|
|
|
|
|
|
# The master toctree document.
|
|
|
|
master_doc = 'index'
|
|
|
|
|
2015-12-25 02:48:16 +08:00
|
|
|
project = 'OpenFace API Docs'
|
2015-12-25 02:23:45 +08:00
|
|
|
copyright = '2015, Carnegie Mellon University'
|
|
|
|
author = 'Carnegie Mellon University'
|
|
|
|
|
|
|
|
version = '0.1.1'
|
|
|
|
release = '0.1.1'
|
|
|
|
|
|
|
|
language = None
|
|
|
|
|
|
|
|
exclude_patterns = ['_build']
|
|
|
|
|
|
|
|
pygments_style = 'sphinx'
|
|
|
|
|
|
|
|
todo_include_todos = True
|
|
|
|
|
|
|
|
|
|
|
|
# html_theme = 'alabaster'
|
|
|
|
html_theme = 'sphinx_rtd_theme'
|
|
|
|
html_static_path = ['_static']
|
|
|
|
htmlhelp_basename = 'OpenFacedoc'
|
|
|
|
|
|
|
|
latex_elements = {
|
|
|
|
'papersize': 'letterpaper',
|
|
|
|
'pointsize': '12pt',
|
|
|
|
}
|
|
|
|
|
|
|
|
latex_documents = [
|
2015-12-25 02:33:20 +08:00
|
|
|
(master_doc, 'OpenFace.tex', 'OpenFace Documentation',
|
|
|
|
'Carnegie Mellon University', 'manual'),
|
2015-12-25 02:23:45 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
man_pages = [
|
|
|
|
(master_doc, 'openface', 'OpenFace Documentation',
|
|
|
|
[author], 1)
|
|
|
|
]
|
|
|
|
|
|
|
|
texinfo_documents = [
|
2015-12-25 02:33:20 +08:00
|
|
|
(master_doc, 'OpenFace', 'OpenFace Documentation',
|
|
|
|
author, 'OpenFace', 'One line description of project.',
|
|
|
|
'Miscellaneous'),
|
2015-12-25 02:23:45 +08:00
|
|
|
]
|