|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# type: ignore |
| 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 | +import os |
| 12 | +import sys |
| 13 | +from importlib.metadata import version as _pkg_version |
| 14 | + |
| 15 | +# Add the openai provider package source to the path |
| 16 | +sys.path.insert(0, os.path.abspath('../src')) |
| 17 | + |
| 18 | +import ldai_openai # noqa: F401 |
| 19 | + |
| 20 | +# -- Project information ----------------------------------------------------- |
| 21 | + |
| 22 | +project = u'launchdarkly-server-sdk-ai-openai' |
| 23 | +copyright = u'2026, LaunchDarkly' |
| 24 | +author = u'LaunchDarkly' |
| 25 | + |
| 26 | +# The short X.Y version. |
| 27 | +version = _pkg_version('launchdarkly-server-sdk-ai-openai') |
| 28 | +# The full version, including alpha/beta/rc tags. |
| 29 | +release = version |
| 30 | + |
| 31 | + |
| 32 | +# -- General configuration --------------------------------------------------- |
| 33 | + |
| 34 | +extensions = [ |
| 35 | + 'sphinx.ext.autodoc', |
| 36 | + 'sphinx.ext.coverage', |
| 37 | + 'sphinx.ext.viewcode', |
| 38 | + 'sphinx.ext.intersphinx', |
| 39 | +] |
| 40 | + |
| 41 | +# Add any paths that contain templates here, relative to this directory. |
| 42 | +templates_path = ['_templates'] |
| 43 | + |
| 44 | +# The suffix(es) of source filenames. |
| 45 | +source_suffix = '.rst' |
| 46 | + |
| 47 | +# The master toctree document. |
| 48 | +master_doc = 'index' |
| 49 | + |
| 50 | +# The language for content autogenerated by Sphinx. |
| 51 | +language = 'en' |
| 52 | + |
| 53 | +# List of patterns, relative to source directory, that match files and |
| 54 | +# directories to ignore when looking for source files. |
| 55 | +exclude_patterns = ['build'] |
| 56 | + |
| 57 | +# The name of the Pygments (syntax highlighting) style to use. |
| 58 | +pygments_style = 'sphinx' |
| 59 | + |
| 60 | + |
| 61 | +# -- Options for HTML output ------------------------------------------------- |
| 62 | + |
| 63 | +# RTD sets html_theme = 'sphinx_rtd_theme' itself |
| 64 | + |
| 65 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 66 | +# relative to this directory. |
| 67 | +html_static_path = ['_static'] |
| 68 | + |
| 69 | + |
| 70 | +# -- Options for HTMLHelp output --------------------------------------------- |
| 71 | + |
| 72 | +# Output file base name for HTML help builder. |
| 73 | +htmlhelp_basename = 'launchdarkly-server-sdk-ai-openai-doc' |
| 74 | + |
| 75 | + |
| 76 | +# -- Extension configuration ------------------------------------------------- |
| 77 | + |
| 78 | +intersphinx_mapping = { |
| 79 | + 'python': ('https://docs.python.org/3', None), |
| 80 | + 'ldai': ('https://launchdarkly-python-sdk-ai.readthedocs.io/en/latest/', None), |
| 81 | +} |
| 82 | + |
| 83 | +autodoc_default_options = { |
| 84 | + 'undoc-members': False |
| 85 | +} |
0 commit comments