|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# This file only contains a selection of the most common options. For a full |
| 4 | +# list see the documentation: |
| 5 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 6 | + |
| 7 | +# -- Path setup -------------------------------------------------------------- |
| 8 | + |
| 9 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 10 | +# add these directories to sys.path here. If the directory is relative to the |
| 11 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 12 | +# |
| 13 | +import os |
| 14 | + |
| 15 | +# import sys |
| 16 | +# sys.path.insert(0, os.path.abspath('.')) |
| 17 | +import pathlib |
| 18 | +import sys |
| 19 | + |
| 20 | +path_to_poli = (pathlib.Path(__file__).parents[2].resolve() / "src").as_posix() |
| 21 | +sys.path.insert(0, path_to_poli) |
| 22 | + |
| 23 | +for x in os.walk(path_to_poli): |
| 24 | + sys.path.insert(0, x[0]) |
| 25 | + |
| 26 | + |
| 27 | +# -- Project information ----------------------------------------------------- |
| 28 | + |
| 29 | +project = "poli" |
| 30 | +copyright = "2023, MLLS" |
| 31 | +author = "MLLS" |
| 32 | + |
| 33 | +# The full version, including alpha/beta/rc tags |
| 34 | +release = "0.0.1" |
| 35 | + |
| 36 | + |
| 37 | +# -- General configuration --------------------------------------------------- |
| 38 | + |
| 39 | +# Add any Sphinx extension module names here, as strings. They can be |
| 40 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 41 | +# ones. |
| 42 | +extensions = [ |
| 43 | + "sphinx.ext.autodoc", |
| 44 | + "sphinx.ext.autosummary", |
| 45 | + "sphinx.ext.napoleon", |
| 46 | +] |
| 47 | +autosummary_generate = True # Turn on sphinx.ext.autosummary |
| 48 | + |
| 49 | +autodoc_mock_imports = [ |
| 50 | + "biopython", |
| 51 | + "Bio", |
| 52 | + "tdc", |
| 53 | + "pdbtools", |
| 54 | + "torch", |
| 55 | + "pandas", |
| 56 | + "rdkit", |
| 57 | + "lambo", |
| 58 | + "selfies", |
| 59 | + "github", |
| 60 | + "yaml", |
| 61 | + "pytz", |
| 62 | + "matplotlib", |
| 63 | + "scipy", |
| 64 | + "sklearn", |
| 65 | + "tensorflow", |
| 66 | + "hydra", |
| 67 | + "ptitprince", |
| 68 | + "seaborn", |
| 69 | + "pdbfixer", |
| 70 | + "openmm", |
| 71 | + "simtk", |
| 72 | + "dockstring", |
| 73 | +] |
| 74 | + |
| 75 | +# Add any paths that contain templates here, relative to this directory. |
| 76 | +templates_path = ["_templates"] |
| 77 | + |
| 78 | +# List of patterns, relative to source directory, that match files and |
| 79 | +# directories to ignore when looking for source files. |
| 80 | +# This pattern also affects html_static_path and html_extra_path. |
| 81 | +exclude_patterns = [] |
| 82 | + |
| 83 | + |
| 84 | +# -- Options for HTML output ------------------------------------------------- |
| 85 | + |
| 86 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 87 | +# a list of builtin themes. |
| 88 | +# |
| 89 | +html_theme = "furo" |
| 90 | + |
| 91 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 92 | +# relative to this directory. They are copied after the builtin static files, |
| 93 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 94 | +html_static_path = ["_static"] |
0 commit comments