20 from os.path
import abspath, dirname, join
as pjoin
22 this_dir = dirname(abspath(__file__))
23 root_path = abspath(pjoin(this_dir,
'../'))
24 if os.path.isdir(root_path):
25 sys.path.insert(0, root_path)
27 on_rtd = os.environ.get(
'READTHEDOCS',
None) ==
'True' 30 from unittest.mock
import MagicMock
32 from mock
import Mock
as MagicMock
39 MOCK_MODULES = [
"pyccl.ccllib",
"pyccl.background.ccllib",
"pyccl.constants.ccllib",
"pyccl.correlation.ccllib",
40 "pyccl.lsst_specs.ccllib",
"pyccl.neutrinos.ccllib",
"pyccl.ccllibutils.ccllib",
41 "pyccl.cls.ccllib",
"pyccl.core.ccllib",
"pyccl.massfunction.ccllib",
"pyccl.power.ccllib",
"yaml"]
44 sys.modules.update((mod_name,
Mock())
for mod_name
in MOCK_MODULES)
58 'sphinx.ext.intersphinx',
60 'sphinx.ext.coverage',
61 'sphinx.ext.ifconfig',
63 'sphinx.ext.viewcode',
64 'sphinx.ext.napoleon']
67 templates_path = [
'_templates']
73 source_suffix =
'.rst' 80 copyright =
u'2018, LSST DESC' 102 exclude_patterns = [
'_build',
'Thumbs.db',
'.DS_Store']
105 pygments_style =
'sphinx' 108 todo_include_todos =
True 116 import sphinx_rtd_theme
117 html_theme =
"sphinx_rtd_theme" 118 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
129 html_static_path = []
150 htmlhelp_basename =
'CoreCosmologyLibrarydoc' 177 (master_doc,
'CoreCosmologyLibrary.tex',
u'Core Cosmology Library Documentation',
178 u'LSST DESC',
'manual'),
187 (master_doc,
'corecosmologylibrary',
u'Core Cosmology Library Documentation',
197 texinfo_documents = [
198 (master_doc,
'CoreCosmologyLibrary',
u'Core Cosmology Library Documentation',
199 author,
'LSSTDESC',
'Routines for cosmological calculations.',
207 intersphinx_mapping = {
'https://docs.python.org/':
None}
def __getattr__(cls, name)