|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# |
| 3 | +# Configuration file for the Sphinx documentation builder. |
| 4 | +# |
| 5 | +# This file does only contain a selection of the most common options. For a |
| 6 | +# full list see the documentation: |
| 7 | +# http://www.sphinx-doc.org/en/master/config |
| 8 | + |
| 9 | +# -- Path setup -------------------------------------------------------------- |
| 10 | + |
| 11 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 12 | +# add these directories to sys.path here. If the directory is relative to the |
| 13 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 14 | +# |
| 15 | +import os |
| 16 | +import sys |
| 17 | +import shutil |
| 18 | + |
| 19 | +# Add python modules to be documented |
| 20 | +python_root = '..' |
| 21 | +python_modules = ('geosx_mesh_tools_package', |
| 22 | + 'geosx_xml_tools_package', |
| 23 | + 'geosx_mesh_doctor', |
| 24 | + 'hdf5_wrapper_package', |
| 25 | + 'pygeosx_tools_package', |
| 26 | + 'timehistory_package') |
| 27 | +for m in python_modules: |
| 28 | + sys.path.insert(0, os.path.abspath(os.path.join(python_root, m))) |
| 29 | + |
| 30 | + |
| 31 | +# -- Project information ----------------------------------------------------- |
| 32 | + |
| 33 | +project = u'GEOS Python Packages' |
| 34 | +copyright = u'2018-2021 Lawrence Livermore National Security, The Board of Trustees of the Leland Stanford Junior University, TotalEnergies, and GEOSX Contributors.' |
| 35 | +author = u'GEOS Contributors' |
| 36 | + |
| 37 | +# The short X.Y version |
| 38 | +version = u'' |
| 39 | +# The full version, including alpha/beta/rc tags |
| 40 | +release = u'' |
| 41 | + |
| 42 | + |
| 43 | +# -- General configuration --------------------------------------------------- |
| 44 | + |
| 45 | +# If your documentation needs a minimal Sphinx version, state it here. |
| 46 | +# |
| 47 | +# needs_sphinx = '1.0' |
| 48 | + |
| 49 | +# Add any Sphinx extension module names here, as strings. They can be |
| 50 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 51 | +# ones. |
| 52 | +extensions = [ |
| 53 | + 'sphinx_design', |
| 54 | + 'sphinx.ext.todo', |
| 55 | + 'sphinx.ext.autodoc', |
| 56 | + 'sphinx.ext.doctest', |
| 57 | + 'sphinx.ext.imgmath', |
| 58 | + 'sphinxarg.ext', |
| 59 | + 'sphinx.ext.napoleon', |
| 60 | + 'sphinxcontrib.programoutput' |
| 61 | +] |
| 62 | + |
| 63 | + |
| 64 | +autodoc_mock_imports = ["pygeosx", "pylvarray", "meshio", "lxml", "mpi4py", "h5py"] |
| 65 | + |
| 66 | +# The suffix(es) of source filenames. |
| 67 | +# You can specify multiple suffix as a list of string: |
| 68 | +# |
| 69 | +# source_suffix = ['.rst', '.md'] |
| 70 | +source_suffix = '.rst' |
| 71 | + |
| 72 | +# The master toctree document. |
| 73 | +master_doc = 'index' |
| 74 | + |
| 75 | +# The language for content autogenerated by Sphinx. Refer to documentation |
| 76 | +# for a list of supported languages. |
| 77 | +# |
| 78 | +# This is also used if you do content translation via gettext catalogs. |
| 79 | +# Usually you set "language" from the command line for these cases. |
| 80 | +language = 'en' |
| 81 | + |
| 82 | +# List of patterns, relative to source directory, that match files and |
| 83 | +# directories to ignore when looking for source files. |
| 84 | +# This pattern also affects html_static_path and html_extra_path . |
| 85 | +exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store', 'cmake/*'] |
| 86 | + |
| 87 | +todo_include_todos = True |
| 88 | + |
| 89 | +# The name of the Pygments (syntax highlighting) style to use. |
| 90 | +pygments_style = 'sphinx' |
| 91 | + |
| 92 | + |
| 93 | +# -- Theme options ---------------------------------------------- |
| 94 | +extensions += [ |
| 95 | + 'sphinx_rtd_theme', |
| 96 | +] |
| 97 | + |
| 98 | +html_theme = "sphinx_rtd_theme" |
| 99 | + |
| 100 | +html_theme_options = { |
| 101 | + 'navigation_depth': -1, |
| 102 | + 'collapse_navigation': False |
| 103 | +} |
| 104 | + |
| 105 | +html_static_path = ['./_static'] |
| 106 | + |
| 107 | +html_css_files = [ |
| 108 | + 'theme_overrides.css', |
| 109 | +] |
| 110 | + |
| 111 | + |
| 112 | +# -- Options for HTMLHelp output --------------------------------------------- |
| 113 | +# Output file base name for HTML help builder. |
| 114 | +htmlhelp_basename = 'geosPythonPackagesDoc' |
| 115 | + |
0 commit comments