We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ReadTheDocs configuration issue
The RTD documentation is not updated with my changes in #1096 https://opentelemetry-python.readthedocs.io/en/latest/sdk/resources.html

However, it works fine locally.

**Steps to reproduce**
Reproduced in all builds on RTD. For example, see logs here: https://readthedocs.org/projects/opentelemetry-python/builds/11937984/ (all builds [here](https://readthedocs.org/projects/google-cloud-opentelemetry/builds/))

You can run the commands in the logs to repro locally and see many of these types of errors:
```
WARNING: autodoc: failed to import module 'zipkin' from module 'opentelemetry.exporter'; the following exception was raised:
Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py", line 32, in import_module
    return importlib.import_module(modname)
  File "/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/checkouts/latest/exporter/opentelemetry-exporter-zipkin/src/opentelemetry/exporter/zipkin/__init__.py", line 72, in <module>
    from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult
  File "/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/checkouts/latest/opentelemetry-sdk/src/opentelemetry/sdk/__init__.py", line 19, in <module>
    from . import metrics, trace, util
  File "/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/checkouts/latest/opentelemetry-sdk/src/opentelemetry/sdk/metrics/__init__.py", line 33, in <module>
    from opentelemetry.sdk.resources import Resource
  File "/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/checkouts/latest/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py", line 98, in <module>
    OPENTELEMETRY_SDK_VERSION = pkg_resources.get_distribution(
  File "/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/site-packages/pkg_resources/__init__.py", line 481, in get_distribution
    dist = get_provider(dist)
  File "/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/site-packages/pkg_resources/__init__.py", line 357, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'opentelemetry-sdk' distribution was not found and is required by the application
```

**What is the expected behavior?**
<img width="1218" alt="Screen Shot 2020-09-22 at 3 23 21 PM" src="https://user-images.githubusercontent.com/1510004/93927952-9410df00-fce7-11ea-9328-2d4c9951089e.png">

**What is the actual behavior?**
See logs above


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `docs/conf.py`
Content:
```
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 # http://www.sphinx-doc.org/en/master/config
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 import sys
15 from os import listdir
16 from os.path import isdir, join
17 
18 # configure django to avoid the following exception:
19 # django.core.exceptions.ImproperlyConfigured: Requested settings, but settings
20 # are not configured. You must either define the environment variable
21 # DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
22 from django.conf import settings
23 
24 settings.configure()
25 
26 
27 source_dirs = [
28     os.path.abspath("../opentelemetry-api/src/"),
29     os.path.abspath("../opentelemetry-sdk/src/"),
30     os.path.abspath("../opentelemetry-instrumentation/src/"),
31 ]
32 
33 exp = "../exporter"
34 exp_dirs = [
35     os.path.abspath("/".join(["../exporter", f, "src"]))
36     for f in listdir(exp)
37     if isdir(join(exp, f))
38 ]
39 
40 instr = "../instrumentation"
41 instr_dirs = [
42     os.path.abspath("/".join(["../instrumentation", f, "src"]))
43     for f in listdir(instr)
44     if isdir(join(instr, f))
45 ]
46 
47 sys.path[:0] = source_dirs + exp_dirs + instr_dirs
48 
49 # -- Project information -----------------------------------------------------
50 
51 project = "OpenTelemetry Python"
52 copyright = "OpenTelemetry Authors"  # pylint: disable=redefined-builtin
53 author = "OpenTelemetry Authors"
54 
55 
56 # -- General configuration ---------------------------------------------------
57 
58 # Easy automatic cross-references for `code in backticks`
59 default_role = "any"
60 
61 # Add any Sphinx extension module names here, as strings. They can be
62 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
63 # ones.
64 extensions = [
65     # API doc generation
66     "sphinx.ext.autodoc",
67     # Support for google-style docstrings
68     "sphinx.ext.napoleon",
69     # Infer types from hints instead of docstrings
70     "sphinx_autodoc_typehints",
71     # Add links to source from generated docs
72     "sphinx.ext.viewcode",
73     # Link to other sphinx docs
74     "sphinx.ext.intersphinx",
75     # Add a .nojekyll file to the generated HTML docs
76     # https://help.github.com/en/articles/files-that-start-with-an-underscore-are-missing
77     "sphinx.ext.githubpages",
78     # Support external links to different versions in the Github repo
79     "sphinx.ext.extlinks",
80 ]
81 
82 intersphinx_mapping = {
83     "python": ("https://docs.python.org/3/", None),
84     "opentracing": (
85         "https://opentracing-python.readthedocs.io/en/latest/",
86         None,
87     ),
88     "aiohttp": ("https://aiohttp.readthedocs.io/en/stable/", None),
89     "wrapt": ("https://wrapt.readthedocs.io/en/latest/", None),
90     "pymongo": ("https://pymongo.readthedocs.io/en/stable/", None),
91 }
92 
93 # http://www.sphinx-doc.org/en/master/config.html#confval-nitpicky
94 # Sphinx will warn about all references where the target cannot be found.
95 nitpicky = True
96 # Sphinx does not recognize generic type TypeVars
97 # Container supposedly were fixed, but does not work
98 # https://github.com/sphinx-doc/sphinx/pull/3744
99 nitpick_ignore = [
100     ("py:class", "ValueT"),
101     ("py:class", "MetricT"),
102     # Even if wrapt is added to intersphinx_mapping, sphinx keeps failing
103     # with "class reference target not found: ObjectProxy".
104     ("py:class", "ObjectProxy"),
105     # TODO: Understand why sphinx is not able to find this local class
106     ("py:class", "opentelemetry.trace.propagation.textmap.TextMapPropagator",),
107     (
108         "any",
109         "opentelemetry.trace.propagation.textmap.TextMapPropagator.extract",
110     ),
111     (
112         "any",
113         "opentelemetry.trace.propagation.textmap.TextMapPropagator.inject",
114     ),
115 ]
116 
117 # Add any paths that contain templates here, relative to this directory.
118 templates_path = ["_templates"]
119 
120 # List of patterns, relative to source directory, that match files and
121 # directories to ignore when looking for source files.
122 # This pattern also affects html_static_path and html_extra_path.
123 exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
124 
125 autodoc_default_options = {
126     "members": True,
127     "undoc-members": True,
128     "show-inheritance": True,
129     "member-order": "bysource",
130 }
131 
132 # -- Options for HTML output -------------------------------------------------
133 
134 # The theme to use for HTML and HTML Help pages.  See the documentation for
135 # a list of builtin themes.
136 #
137 html_theme = "sphinx_rtd_theme"
138 
139 # Add any paths that contain custom static files (such as style sheets) here,
140 # relative to this directory. They are copied after the builtin static files,
141 # so a file named "default.css" will overwrite the builtin "default.css".
142 html_static_path = []
143 
144 # Support external links to specific versions of the files in the Github repo
145 branch = os.environ.get("READTHEDOCS_VERSION")
146 if branch is None or branch == "latest":
147     branch = "master"
148 
149 REPO = "open-telemetry/opentelemetry-python/"
150 scm_raw_web = "https://raw.githubusercontent.com/" + REPO + branch
151 scm_web = "https://github.com/" + REPO + "blob/" + branch
152 
153 # Store variables in the epilogue so they are globally available.
154 rst_epilog = """
155 .. |SCM_WEB| replace:: {s}
156 .. |SCM_RAW_WEB| replace:: {sr}
157 .. |SCM_BRANCH| replace:: {b}
158 """.format(
159     s=scm_web, sr=scm_raw_web, b=branch
160 )
161 
162 # used to have links to repo files
163 extlinks = {
164     "scm_raw_web": (scm_raw_web + "/%s", "scm_raw_web"),
165     "scm_web": (scm_web + "/%s", "scm_web"),
166 }
167
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -25,8 +25,6 @@
 
 
 source_dirs = [
-    os.path.abspath("../opentelemetry-api/src/"),
-    os.path.abspath("../opentelemetry-sdk/src/"),
     os.path.abspath("../opentelemetry-instrumentation/src/"),
 ]

{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -25,8 +25,6 @@\n \n \n source_dirs = [\n-    os.path.abspath(\"../opentelemetry-api/src/\"),\n-    os.path.abspath(\"../opentelemetry-sdk/src/\"),\n     os.path.abspath(\"../opentelemetry-instrumentation/src/\"),\n ]\n", "issue": "ReadTheDocs configuration issue\nThe RTD documentation is not updated with my changes in #1096 https://opentelemetry-python.readthedocs.io/en/latest/sdk/resources.html\r\n\r\nHowever, it works fine locally.\r\n\r\n**Steps to reproduce**\r\nReproduced in all builds on RTD. For example, see logs here: https://readthedocs.org/projects/opentelemetry-python/builds/11937984/ (all builds [here](https://readthedocs.org/projects/google-cloud-opentelemetry/builds/))\r\n\r\nYou can run the commands in the logs to repro locally and see many of these types of errors:\r\n```\r\nWARNING: autodoc: failed to import module 'zipkin' from module 'opentelemetry.exporter'; the following exception was raised:\r\nTraceback (most recent call last):\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py\", line 32, in import_module\r\n    return importlib.import_module(modname)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/importlib/__init__.py\", line 127, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 975, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 783, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/checkouts/latest/exporter/opentelemetry-exporter-zipkin/src/opentelemetry/exporter/zipkin/__init__.py\", line 72, in <module>\r\n    from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/checkouts/latest/opentelemetry-sdk/src/opentelemetry/sdk/__init__.py\", line 19, in <module>\r\n    from . import metrics, trace, util\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/checkouts/latest/opentelemetry-sdk/src/opentelemetry/sdk/metrics/__init__.py\", line 33, in <module>\r\n    from opentelemetry.sdk.resources import Resource\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/checkouts/latest/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py\", line 98, in <module>\r\n    OPENTELEMETRY_SDK_VERSION = pkg_resources.get_distribution(\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/site-packages/pkg_resources/__init__.py\", line 481, in get_distribution\r\n    dist = get_provider(dist)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/site-packages/pkg_resources/__init__.py\", line 357, in get_provider\r\n    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/site-packages/pkg_resources/__init__.py\", line 900, in require\r\n    needed = self.resolve(parse_requirements(requirements))\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/opentelemetry-python/envs/latest/lib/python3.8/site-packages/pkg_resources/__init__.py\", line 786, in resolve\r\n    raise DistributionNotFound(req, requirers)\r\npkg_resources.DistributionNotFound: The 'opentelemetry-sdk' distribution was not found and is required by the application\r\n```\r\n\r\n**What is the expected behavior?**\r\n<img width=\"1218\" alt=\"Screen Shot 2020-09-22 at 3 23 21 PM\" src=\"https://user-images.githubusercontent.com/1510004/93927952-9410df00-fce7-11ea-9328-2d4c9951089e.png\">\r\n\r\n**What is the actual behavior?**\r\nSee logs above\r\n\n", "before_files": [{"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# http://www.sphinx-doc.org/en/master/config\n\n# -- Path setup --------------------------------------------------------------\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n\nimport os\nimport sys\nfrom os import listdir\nfrom os.path import isdir, join\n\n# configure django to avoid the following exception:\n# django.core.exceptions.ImproperlyConfigured: Requested settings, but settings\n# are not configured. You must either define the environment variable\n# DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.\nfrom django.conf import settings\n\nsettings.configure()\n\n\nsource_dirs = [\n    os.path.abspath(\"../opentelemetry-api/src/\"),\n    os.path.abspath(\"../opentelemetry-sdk/src/\"),\n    os.path.abspath(\"../opentelemetry-instrumentation/src/\"),\n]\n\nexp = \"../exporter\"\nexp_dirs = [\n    os.path.abspath(\"/\".join([\"../exporter\", f, \"src\"]))\n    for f in listdir(exp)\n    if isdir(join(exp, f))\n]\n\ninstr = \"../instrumentation\"\ninstr_dirs = [\n    os.path.abspath(\"/\".join([\"../instrumentation\", f, \"src\"]))\n    for f in listdir(instr)\n    if isdir(join(instr, f))\n]\n\nsys.path[:0] = source_dirs + exp_dirs + instr_dirs\n\n# -- Project information -----------------------------------------------------\n\nproject = \"OpenTelemetry Python\"\ncopyright = \"OpenTelemetry Authors\"  # pylint: disable=redefined-builtin\nauthor = \"OpenTelemetry Authors\"\n\n\n# -- General configuration ---------------------------------------------------\n\n# Easy automatic cross-references for `code in backticks`\ndefault_role = \"any\"\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = [\n    # API doc generation\n    \"sphinx.ext.autodoc\",\n    # Support for google-style docstrings\n    \"sphinx.ext.napoleon\",\n    # Infer types from hints instead of docstrings\n    \"sphinx_autodoc_typehints\",\n    # Add links to source from generated docs\n    \"sphinx.ext.viewcode\",\n    # Link to other sphinx docs\n    \"sphinx.ext.intersphinx\",\n    # Add a .nojekyll file to the generated HTML docs\n    # https://help.github.com/en/articles/files-that-start-with-an-underscore-are-missing\n    \"sphinx.ext.githubpages\",\n    # Support external links to different versions in the Github repo\n    \"sphinx.ext.extlinks\",\n]\n\nintersphinx_mapping = {\n    \"python\": (\"https://docs.python.org/3/\", None),\n    \"opentracing\": (\n        \"https://opentracing-python.readthedocs.io/en/latest/\",\n        None,\n    ),\n    \"aiohttp\": (\"https://aiohttp.readthedocs.io/en/stable/\", None),\n    \"wrapt\": (\"https://wrapt.readthedocs.io/en/latest/\", None),\n    \"pymongo\": (\"https://pymongo.readthedocs.io/en/stable/\", None),\n}\n\n# http://www.sphinx-doc.org/en/master/config.html#confval-nitpicky\n# Sphinx will warn about all references where the target cannot be found.\nnitpicky = True\n# Sphinx does not recognize generic type TypeVars\n# Container supposedly were fixed, but does not work\n# https://github.com/sphinx-doc/sphinx/pull/3744\nnitpick_ignore = [\n    (\"py:class\", \"ValueT\"),\n    (\"py:class\", \"MetricT\"),\n    # Even if wrapt is added to intersphinx_mapping, sphinx keeps failing\n    # with \"class reference target not found: ObjectProxy\".\n    (\"py:class\", \"ObjectProxy\"),\n    # TODO: Understand why sphinx is not able to find this local class\n    (\"py:class\", \"opentelemetry.trace.propagation.textmap.TextMapPropagator\",),\n    (\n        \"any\",\n        \"opentelemetry.trace.propagation.textmap.TextMapPropagator.extract\",\n    ),\n    (\n        \"any\",\n        \"opentelemetry.trace.propagation.textmap.TextMapPropagator.inject\",\n    ),\n]\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = [\"_templates\"]\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This pattern also affects html_static_path and html_extra_path.\nexclude_patterns = [\"_build\", \"Thumbs.db\", \".DS_Store\"]\n\nautodoc_default_options = {\n    \"members\": True,\n    \"undoc-members\": True,\n    \"show-inheritance\": True,\n    \"member-order\": \"bysource\",\n}\n\n# -- Options for HTML output -------------------------------------------------\n\n# The theme to use for HTML and HTML Help pages.  See the documentation for\n# a list of builtin themes.\n#\nhtml_theme = \"sphinx_rtd_theme\"\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = []\n\n# Support external links to specific versions of the files in the Github repo\nbranch = os.environ.get(\"READTHEDOCS_VERSION\")\nif branch is None or branch == \"latest\":\n    branch = \"master\"\n\nREPO = \"open-telemetry/opentelemetry-python/\"\nscm_raw_web = \"https://raw.githubusercontent.com/\" + REPO + branch\nscm_web = \"https://github.com/\" + REPO + \"blob/\" + branch\n\n# Store variables in the epilogue so they are globally available.\nrst_epilog = \"\"\"\n.. |SCM_WEB| replace:: {s}\n.. |SCM_RAW_WEB| replace:: {sr}\n.. |SCM_BRANCH| replace:: {b}\n\"\"\".format(\n    s=scm_web, sr=scm_raw_web, b=branch\n)\n\n# used to have links to repo files\nextlinks = {\n    \"scm_raw_web\": (scm_raw_web + \"/%s\", \"scm_raw_web\"),\n    \"scm_web\": (scm_web + \"/%s\", \"scm_web\"),\n}\n", "path": "docs/conf.py"}], "after_files": [{"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# http://www.sphinx-doc.org/en/master/config\n\n# -- Path setup --------------------------------------------------------------\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n\nimport os\nimport sys\nfrom os import listdir\nfrom os.path import isdir, join\n\n# configure django to avoid the following exception:\n# django.core.exceptions.ImproperlyConfigured: Requested settings, but settings\n# are not configured. You must either define the environment variable\n# DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.\nfrom django.conf import settings\n\nsettings.configure()\n\n\nsource_dirs = [\n    os.path.abspath(\"../opentelemetry-instrumentation/src/\"),\n]\n\nexp = \"../exporter\"\nexp_dirs = [\n    os.path.abspath(\"/\".join([\"../exporter\", f, \"src\"]))\n    for f in listdir(exp)\n    if isdir(join(exp, f))\n]\n\ninstr = \"../instrumentation\"\ninstr_dirs = [\n    os.path.abspath(\"/\".join([\"../instrumentation\", f, \"src\"]))\n    for f in listdir(instr)\n    if isdir(join(instr, f))\n]\n\nsys.path[:0] = source_dirs + exp_dirs + instr_dirs\n\n# -- Project information -----------------------------------------------------\n\nproject = \"OpenTelemetry Python\"\ncopyright = \"OpenTelemetry Authors\"  # pylint: disable=redefined-builtin\nauthor = \"OpenTelemetry Authors\"\n\n\n# -- General configuration ---------------------------------------------------\n\n# Easy automatic cross-references for `code in backticks`\ndefault_role = \"any\"\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = [\n    # API doc generation\n    \"sphinx.ext.autodoc\",\n    # Support for google-style docstrings\n    \"sphinx.ext.napoleon\",\n    # Infer types from hints instead of docstrings\n    \"sphinx_autodoc_typehints\",\n    # Add links to source from generated docs\n    \"sphinx.ext.viewcode\",\n    # Link to other sphinx docs\n    \"sphinx.ext.intersphinx\",\n    # Add a .nojekyll file to the generated HTML docs\n    # https://help.github.com/en/articles/files-that-start-with-an-underscore-are-missing\n    \"sphinx.ext.githubpages\",\n    # Support external links to different versions in the Github repo\n    \"sphinx.ext.extlinks\",\n]\n\nintersphinx_mapping = {\n    \"python\": (\"https://docs.python.org/3/\", None),\n    \"opentracing\": (\n        \"https://opentracing-python.readthedocs.io/en/latest/\",\n        None,\n    ),\n    \"aiohttp\": (\"https://aiohttp.readthedocs.io/en/stable/\", None),\n    \"wrapt\": (\"https://wrapt.readthedocs.io/en/latest/\", None),\n    \"pymongo\": (\"https://pymongo.readthedocs.io/en/stable/\", None),\n}\n\n# http://www.sphinx-doc.org/en/master/config.html#confval-nitpicky\n# Sphinx will warn about all references where the target cannot be found.\nnitpicky = True\n# Sphinx does not recognize generic type TypeVars\n# Container supposedly were fixed, but does not work\n# https://github.com/sphinx-doc/sphinx/pull/3744\nnitpick_ignore = [\n    (\"py:class\", \"ValueT\"),\n    (\"py:class\", \"MetricT\"),\n    # Even if wrapt is added to intersphinx_mapping, sphinx keeps failing\n    # with \"class reference target not found: ObjectProxy\".\n    (\"py:class\", \"ObjectProxy\"),\n    # TODO: Understand why sphinx is not able to find this local class\n    (\"py:class\", \"opentelemetry.trace.propagation.textmap.TextMapPropagator\",),\n    (\n        \"any\",\n        \"opentelemetry.trace.propagation.textmap.TextMapPropagator.extract\",\n    ),\n    (\n        \"any\",\n        \"opentelemetry.trace.propagation.textmap.TextMapPropagator.inject\",\n    ),\n]\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = [\"_templates\"]\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This pattern also affects html_static_path and html_extra_path.\nexclude_patterns = [\"_build\", \"Thumbs.db\", \".DS_Store\"]\n\nautodoc_default_options = {\n    \"members\": True,\n    \"undoc-members\": True,\n    \"show-inheritance\": True,\n    \"member-order\": \"bysource\",\n}\n\n# -- Options for HTML output -------------------------------------------------\n\n# The theme to use for HTML and HTML Help pages.  See the documentation for\n# a list of builtin themes.\n#\nhtml_theme = \"sphinx_rtd_theme\"\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = []\n\n# Support external links to specific versions of the files in the Github repo\nbranch = os.environ.get(\"READTHEDOCS_VERSION\")\nif branch is None or branch == \"latest\":\n    branch = \"master\"\n\nREPO = \"open-telemetry/opentelemetry-python/\"\nscm_raw_web = \"https://raw.githubusercontent.com/\" + REPO + branch\nscm_web = \"https://github.com/\" + REPO + \"blob/\" + branch\n\n# Store variables in the epilogue so they are globally available.\nrst_epilog = \"\"\"\n.. |SCM_WEB| replace:: {s}\n.. |SCM_RAW_WEB| replace:: {sr}\n.. |SCM_BRANCH| replace:: {b}\n\"\"\".format(\n    s=scm_web, sr=scm_raw_web, b=branch\n)\n\n# used to have links to repo files\nextlinks = {\n    \"scm_raw_web\": (scm_raw_web + \"/%s\", \"scm_raw_web\"),\n    \"scm_web\": (scm_web + \"/%s\", \"scm_web\"),\n}\n", "path": "docs/conf.py"}]}