openface/api-docs/conf.py

74 lines
1.4 KiB
Python
Raw Normal View History

2015-12-25 02:23:45 +08:00
#!/usr/bin/env python2
import sys
2016-01-06 02:59:06 +08:00
import mock
2015-12-25 02:23:45 +08:00
import os
2015-12-25 02:33:20 +08:00
2015-12-25 02:23:45 +08:00
sys.path.insert(0, os.path.abspath('..'))
2015-12-30 05:04:21 +08:00
MOCK_MODULES = ['argparse', 'cv2', 'dlib', 'numpy', 'pandas']
2016-01-06 02:59:06 +08:00
for mod_name in MOCK_MODULES:
2016-01-06 04:11:50 +08:00
sys.modules[mod_name] = mock.MagicMock()
2015-12-25 02:33:20 +08:00
2015-12-25 02:23:45 +08:00
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
]
autoclass_content = 'both'
2015-12-25 02:23:45 +08:00
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'
copyright = '2015-2016, Carnegie Mellon University'
2015-12-25 02:23:45 +08:00
author = 'Carnegie Mellon University'
version = '0.1.1'
release = '0.1.1'
language = None
exclude_patterns = ['_build']
pygments_style = 'sphinx'
todo_include_todos = True
2016-01-08 07:43:25 +08:00
def setup(app):
app.add_javascript("sp.js")
app.add_javascript("track.js")
2015-12-25 02:23:45 +08:00
# 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
]