| 1 | # Copyright 2024 The ML Collections Authors. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | # Configuration file for the Sphinx documentation builder. |
| 16 | # |
| 17 | # This file only contains a selection of the most common options. For a full |
| 18 | # list see the documentation: |
| 19 | # https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 20 | |
| 21 | # -- Path setup -------------------------------------------------------------- |
| 22 | |
| 23 | # If extensions (or modules to document with autodoc) are in another directory, |
| 24 | # add these directories to sys.path here. If the directory is relative to the |
| 25 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
| 26 | # |
| 27 | # import os |
| 28 | # import sys |
| 29 | # sys.path.insert(0, os.path.abspath('.')) |
| 30 | |
| 31 | import os |
| 32 | import sys |
| 33 | sys.path.insert(0, os.path.abspath('..')) |
| 34 | |
| 35 | # -- Project information ----------------------------------------------------- |
| 36 | |
| 37 | project = 'ml_collections' |
| 38 | copyright = '2020, The ML Collection Authors' |
| 39 | author = 'The ML Collection Authors' |
| 40 | |
| 41 | # The full version, including alpha/beta/rc tags |
| 42 | release = '0.1.0' |
| 43 | |
| 44 | |
| 45 | # -- General configuration --------------------------------------------------- |
| 46 | |
| 47 | # Add any Sphinx extension module names here, as strings. They can be |
| 48 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 49 | # ones. |
| 50 | extensions = [ |
| 51 | 'sphinx.ext.autodoc', |
| 52 | 'sphinx.ext.autosummary', |
| 53 | 'sphinx.ext.intersphinx', |
| 54 | 'sphinx.ext.mathjax', |
| 55 | 'sphinx.ext.napoleon', |
| 56 | 'sphinx.ext.viewcode', |
| 57 | 'nbsphinx', |
| 58 | 'recommonmark', |
| 59 | ] |
| 60 | |
| 61 | # Add any paths that contain templates here, relative to this directory. |
| 62 | templates_path = ['_templates'] |
| 63 | |
| 64 | # List of patterns, relative to source directory, that match files and |
| 65 | # directories to ignore when looking for source files. |
| 66 | # This pattern also affects html_static_path and html_extra_path. |
| 67 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 68 | |
| 69 | autosummary_generate = True |
| 70 | |
| 71 | master_doc = 'index' |
| 72 | |
| 73 | # -- Options for HTML output ------------------------------------------------- |
| 74 | |
| 75 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 76 | # a list of builtin themes. |
| 77 | # |
| 78 | html_theme = 'sphinx_rtd_theme' |
| 79 | |
| 80 | # Add any paths that contain custom static files (such as style sheets) here, |
| 81 | # relative to this directory. They are copied after the builtin static files, |
| 82 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 83 | html_static_path = ['_static'] |