|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# For the full list of built-in configuration values, see the documentation: |
| 4 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 5 | + |
| 6 | +# -- Project information ----------------------------------------------------- |
| 7 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 8 | + |
| 9 | +import sys, os |
| 10 | +sys.path.insert(0, os.path.abspath('..')) |
| 11 | +import segfast |
| 12 | + |
| 13 | +master_doc = 'index' |
| 14 | + |
| 15 | +project = 'segfast' |
| 16 | +author = 'Analysis Center' |
| 17 | +copyright = '2024, ' + author |
| 18 | + |
| 19 | +release = segfast.__version__ |
| 20 | +version = '.'.join(release.split('.')) |
| 21 | + |
| 22 | +# -- General configuration --------------------------------------------------- |
| 23 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 24 | + |
| 25 | +extensions = [ |
| 26 | + 'sphinx.ext.autodoc', |
| 27 | + 'sphinx.ext.doctest', |
| 28 | + 'sphinx.ext.coverage', |
| 29 | + 'sphinx.ext.mathjax', |
| 30 | + 'sphinx.ext.viewcode', |
| 31 | + 'sphinx.ext.githubpages', |
| 32 | + 'sphinx.ext.intersphinx', |
| 33 | + 'sphinx.ext.napoleon', |
| 34 | + 'sphinx_rtd_theme', |
| 35 | +] |
| 36 | + |
| 37 | +templates_path = ['_templates'] |
| 38 | +exclude_patterns = [] |
| 39 | +language = 'en' |
| 40 | + |
| 41 | + |
| 42 | +# -- Options for HTML output ------------------------------------------------- |
| 43 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 44 | + |
| 45 | +html_title = "SegFast" |
| 46 | +html_theme = "sphinx_rtd_theme" |
| 47 | +html_static_path = ['_static'] |
| 48 | +html_theme_options = { |
| 49 | + 'logo_only': False |
| 50 | +} |
| 51 | + |
| 52 | +# Example configuration for intersphinx: refer to the Python standard library. |
| 53 | +intersphinx_mapping = { |
| 54 | + 'python': ('https://docs.python.org/', None), |
| 55 | + 'numpy': ('https://docs.scipy.org/doc/numpy/', None), |
| 56 | + 'segyio': ('https://segyio.readthedocs.io/en/latest/', None) |
| 57 | +} |
0 commit comments