"""Conf file for documentation builder""" # Configuration file for the Sphinx documentation builder. # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information import os import sys sys.path.insert(0, os.path.abspath("../")) project = "GeoSpatialTools" copyright = "2024, National Oceanography Centre" author = "NOC Surface Processes" release = "0.11.1" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration extensions = [ "sphinx.ext.autodoc", "sphinx.ext.doctest", "sphinx.ext.todo", "sphinx.ext.mathjax", "sphinx.ext.ifconfig", "sphinx.ext.viewcode", "sphinx.ext.githubpages", "sphinx.ext.napoleon", "sphinx.ext.autosummary", "sphinx_autodoc_typehints", ] # 'autoapi.extension', # autoapi_type = 'python' # autoapi_dirs = ['../../'] # add_module_names = False # autoapi_keep_files = False # autodoc_typehints = "description" # autoapi_options = ['members', 'undoc-members', 'private-members'] # autoapi_options = ['members', 'undoc-members', 'private-members', # 'show-inheritance', 'show-module-summary', # 'special-members', 'imported-members'] # autoapi_ignore = ['*mymodel*', '*conf*', '*gather_stats_c99.py*'] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] pygments_style = "gruvbox-light" # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # # "sphinxawesome_theme" # 'sphinx_rtd_theme' # 'alabaster' html_theme = "sphinx_rtd_theme" # html_theme_options = { # "rightsidebar": "true", # "relbarbgcolor": "black" # } # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # html_theme_options = { "style_nav_header_background": "white", "display_version": True, "logo_only": False, "collapse_navigation": False, } # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". # html_static_path = ['_static'] # Custom sidebar templates, must be a dictionary that maps document names # to template names. # # The default sidebars (for documents that don't match any pattern) are # defined by theme itself. Builtin themes are using these templates by # default: ``['localtoc.html', 'relations.html', 'sourcelink.html', # 'searchbox.html']``. # html_sidebars = { "**": ["logo-text.html", "globaltoc.html", "searchbox.html"] # '**': ['logo-text.html', 'globaltoc.html', 'localtoc.html', # 'searchbox.html'] } numfig = True math_numfig = True numfig_secnum_depth = 2 math_eqref_format = "Eq. {number}"