We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
sunpy logo link broken
The link to "sunpy logo" here: https://sunpy.org/about#acknowledging-sunpy-in-posters-and-talks just redirects to the same page instead of a logo.

--- 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 """
2 Configuration file for the Sphinx documentation builder.
3 
4 isort:skip_file
5 """
6 # flake8: NOQA: E402
7 
8 # -- stdlib imports ------------------------------------------------------------
9 import os
10 import sys
11 import datetime
12 from pkg_resources import get_distribution, DistributionNotFound
13 
14 # -- Check for dependencies ----------------------------------------------------
15 
16 doc_requires = get_distribution("sunpy").requires(extras=("docs",))
17 missing_requirements = []
18 for requirement in doc_requires:
19     try:
20         get_distribution(requirement)
21     except Exception as e:
22         missing_requirements.append(requirement.name)
23 if missing_requirements:
24     print(
25         f"The {' '.join(missing_requirements)} package(s) could not be found and "
26         "is needed to build the documentation, please install the 'docs' requirements."
27     )
28     sys.exit(1)
29 
30 # -- Read the Docs Specific Configuration --------------------------------------
31 
32 # This needs to be done before sunpy is imported
33 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
34 if on_rtd:
35     os.environ['SUNPY_CONFIGDIR'] = '/home/docs/'
36     os.environ['HOME'] = '/home/docs/'
37     os.environ['LANG'] = 'C'
38     os.environ['LC_ALL'] = 'C'
39 
40 # -- Non stdlib imports --------------------------------------------------------
41 
42 import ruamel.yaml as yaml  # NOQA
43 from sphinx_gallery.sorting import ExplicitOrder  # NOQA
44 from sphinx_gallery.sorting import ExampleTitleSortKey  # NOQA
45 
46 import sunpy  # NOQA
47 from sunpy import __version__  # NOQA
48 
49 # -- Project information -------------------------------------------------------
50 
51 project = 'SunPy'
52 author = 'The SunPy Community'
53 copyright = '{}, {}'.format(datetime.datetime.now().year, author)
54 
55 # The full version, including alpha/beta/rc tags
56 release = __version__
57 is_development = '.dev' in __version__
58 
59 # -- SunPy Sample Data and Config ----------------------------------------------
60 
61 # We set the logger to debug so that we can see any sample data download errors
62 # in the CI, especially RTD.
63 ori_level = sunpy.log.level
64 sunpy.log.setLevel("DEBUG")
65 import sunpy.data.sample  # NOQA
66 sunpy.log.setLevel(ori_level)
67 
68 # For the linkcheck
69 linkcheck_ignore = [r"https://doi.org/\d+",
70                     r"https://riot.im/\d+",
71                     r"https://github.com/\d+",
72                     r"https://docs.sunpy.org/\d+"]
73 linkcheck_anchors = False
74 
75 # This is added to the end of RST files - a good place to put substitutions to
76 # be used globally.
77 rst_epilog = """
78 .. SunPy
79 .. _SunPy: https://sunpy.org
80 .. _`SunPy mailing list`: https://groups.google.com/group/sunpy
81 .. _`SunPy dev mailing list`: https://groups.google.com/group/sunpy-dev
82 """
83 
84 # -- General configuration -----------------------------------------------------
85 
86 # Suppress warnings about overriding directives as we overload some of the
87 # doctest extensions.
88 suppress_warnings = ['app.add_directive', ]
89 
90 # Add any Sphinx extension module names here, as strings. They can be
91 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
92 # ones.
93 extensions = [
94     'matplotlib.sphinxext.plot_directive',
95     'sphinx_automodapi.automodapi',
96     'sphinx_automodapi.smart_resolver',
97     'sphinx_gallery.gen_gallery',
98     'sphinx.ext.autodoc',
99     'sphinx.ext.coverage',
100     'sphinx.ext.doctest',
101     'sphinx.ext.inheritance_diagram',
102     'sphinx.ext.intersphinx',
103     'sphinx.ext.mathjax',
104     'sphinx.ext.napoleon',
105     'sphinx.ext.todo',
106     'sphinx.ext.viewcode',
107     'sunpy.util.sphinx.changelog',
108     'sunpy.util.sphinx.doctest',
109     'sunpy.util.sphinx.generate',
110 ]
111 
112 # Add any paths that contain templates here, relative to this directory.
113 # templates_path = ['_templates']
114 
115 # List of patterns, relative to source directory, that match files and
116 # directories to ignore when looking for source files.
117 # This pattern also affects html_static_path and html_extra_path.
118 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
119 
120 # The suffix(es) of source filenames.
121 # You can specify multiple suffix as a list of string:
122 source_suffix = '.rst'
123 
124 # The master toctree document.
125 master_doc = 'index'
126 
127 # The reST default role (used for this markup: `text`) to use for all
128 # documents. Set to the "smart" one.
129 default_role = 'obj'
130 
131 # Disable having a separate return type row
132 napoleon_use_rtype = False
133 
134 # Disable google style docstrings
135 napoleon_google_docstring = False
136 
137 # -- Options for intersphinx extension -----------------------------------------
138 
139 # Example configuration for intersphinx: refer to the Python standard library.
140 intersphinx_mapping = {
141     'python': ('https://docs.python.org/3/',
142                (None, 'http://www.astropy.org/astropy-data/intersphinx/python3.inv')),
143     'numpy': ('https://numpy.org/doc/stable/',
144               (None, 'http://www.astropy.org/astropy-data/intersphinx/numpy.inv')),
145     'scipy': ('https://docs.scipy.org/doc/scipy/reference/',
146               (None, 'http://www.astropy.org/astropy-data/intersphinx/scipy.inv')),
147     'matplotlib': ('https://matplotlib.org/',
148                    (None, 'http://www.astropy.org/astropy-data/intersphinx/matplotlib.inv')),
149     'astropy': ('https://docs.astropy.org/en/stable/', None),
150     'sqlalchemy': ('https://docs.sqlalchemy.org/en/latest/', None),
151     'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),
152     'skimage': ('https://scikit-image.org/docs/stable/', None),
153     'drms': ('https://docs.sunpy.org/projects/drms/en/stable/', None),
154     'parfive': ('https://parfive.readthedocs.io/en/latest/', None),
155     'reproject': ('https://reproject.readthedocs.io/en/stable/', None),
156 }
157 
158 # -- Options for HTML output ---------------------------------------------------
159 
160 # The theme to use for HTML and HTML Help pages.  See the documentation for
161 # a list of builtin themes.
162 
163 from sunpy_sphinx_theme.conf import *  # NOQA
164 
165 # Add any paths that contain custom static files (such as style sheets) here,
166 # relative to this directory. They are copied after the builtin static files,
167 # so a file named "default.css" will overwrite the builtin "default.css".
168 # html_static_path = ['_static']
169 
170 # Render inheritance diagrams in SVG
171 graphviz_output_format = "svg"
172 
173 graphviz_dot_args = [
174     '-Nfontsize=10',
175     '-Nfontname=Helvetica Neue, Helvetica, Arial, sans-serif',
176     '-Efontsize=10',
177     '-Efontname=Helvetica Neue, Helvetica, Arial, sans-serif',
178     '-Gfontsize=10',
179     '-Gfontname=Helvetica Neue, Helvetica, Arial, sans-serif'
180 ]
181 
182 # -- Sphinx Gallery ------------------------------------------------------------
183 
184 sphinx_gallery_conf = {
185     'backreferences_dir': os.path.join('generated', 'modules'),
186     'filename_pattern': '^((?!skip_).)*$',
187     'examples_dirs': os.path.join('..', 'examples'),
188     'subsection_order': ExplicitOrder([
189         '../examples/acquiring_data',
190         '../examples/map',
191         '../examples/map_transformations',
192         '../examples/time_series',
193         '../examples/units_and_coordinates',
194         '../examples/plotting',
195         '../examples/differential_rotation',
196         '../examples/saving_and_loading_data',
197         '../examples/computer_vision_techniques',
198         '../examples/developer_tools'
199     ]),
200     'within_subsection_order': ExampleTitleSortKey,
201     'gallery_dirs': os.path.join('generated', 'gallery'),
202     'default_thumb_file': os.path.join('logo', 'sunpy_icon_128x128.png'),
203     'abort_on_example_error': False,
204     'plot_gallery': 'True',
205     'remove_config_comments': True,
206     'doc_module': ('sunpy'),
207 }
208 
209 # -- Stability Page ------------------------------------------------------------
210 
211 with open('./dev_guide/sunpy_stability.yaml', 'r') as estability:
212     sunpy_modules = yaml.load(estability.read(), Loader=yaml.Loader)
213 
214 html_context = {
215     'sunpy_modules': sunpy_modules
216 }
217 
218 
219 def rstjinja(app, docname, source):
220     """
221     Render our pages as a jinja template for fancy templating goodness.
222     """
223     # Make sure we're outputting HTML
224     if app.builder.format != 'html':
225         return
226     src = source[0]
227     if "Current status" in src[:20]:
228         rendered = app.builder.templates.render_string(
229             src, app.config.html_context
230         )
231         source[0] = rendered
232 
233 
234 # -- Sphinx setup --------------------------------------------------------------
235 def setup(app):
236     # Generate the stability page
237     app.connect("source-read", rstjinja)
238 
239     # The theme conf provides a fix for circle ci redirections
240     fix_circleci(app)
241
```
--- 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
@@ -67,7 +67,7 @@
 
 # For the linkcheck
 linkcheck_ignore = [r"https://doi.org/\d+",
-                    r"https://riot.im/\d+",
+                    r"https://element.io/\d+",
                     r"https://github.com/\d+",
                     r"https://docs.sunpy.org/\d+"]
 linkcheck_anchors = False

{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -67,7 +67,7 @@\n \n # For the linkcheck\n linkcheck_ignore = [r\"https://doi.org/\\d+\",\n-                    r\"https://riot.im/\\d+\",\n+                    r\"https://element.io/\\d+\",\n                     r\"https://github.com/\\d+\",\n                     r\"https://docs.sunpy.org/\\d+\"]\n linkcheck_anchors = False\n", "issue": "sunpy logo link broken\nThe link to \"sunpy logo\" here: https://sunpy.org/about#acknowledging-sunpy-in-posters-and-talks just redirects to the same page instead of a logo.\n", "before_files": [{"content": "\"\"\"\nConfiguration file for the Sphinx documentation builder.\n\nisort:skip_file\n\"\"\"\n# flake8: NOQA: E402\n\n# -- stdlib imports ------------------------------------------------------------\nimport os\nimport sys\nimport datetime\nfrom pkg_resources import get_distribution, DistributionNotFound\n\n# -- Check for dependencies ----------------------------------------------------\n\ndoc_requires = get_distribution(\"sunpy\").requires(extras=(\"docs\",))\nmissing_requirements = []\nfor requirement in doc_requires:\n    try:\n        get_distribution(requirement)\n    except Exception as e:\n        missing_requirements.append(requirement.name)\nif missing_requirements:\n    print(\n        f\"The {' '.join(missing_requirements)} package(s) could not be found and \"\n        \"is needed to build the documentation, please install the 'docs' requirements.\"\n    )\n    sys.exit(1)\n\n# -- Read the Docs Specific Configuration --------------------------------------\n\n# This needs to be done before sunpy is imported\non_rtd = os.environ.get('READTHEDOCS', None) == 'True'\nif on_rtd:\n    os.environ['SUNPY_CONFIGDIR'] = '/home/docs/'\n    os.environ['HOME'] = '/home/docs/'\n    os.environ['LANG'] = 'C'\n    os.environ['LC_ALL'] = 'C'\n\n# -- Non stdlib imports --------------------------------------------------------\n\nimport ruamel.yaml as yaml  # NOQA\nfrom sphinx_gallery.sorting import ExplicitOrder  # NOQA\nfrom sphinx_gallery.sorting import ExampleTitleSortKey  # NOQA\n\nimport sunpy  # NOQA\nfrom sunpy import __version__  # NOQA\n\n# -- Project information -------------------------------------------------------\n\nproject = 'SunPy'\nauthor = 'The SunPy Community'\ncopyright = '{}, {}'.format(datetime.datetime.now().year, author)\n\n# The full version, including alpha/beta/rc tags\nrelease = __version__\nis_development = '.dev' in __version__\n\n# -- SunPy Sample Data and Config ----------------------------------------------\n\n# We set the logger to debug so that we can see any sample data download errors\n# in the CI, especially RTD.\nori_level = sunpy.log.level\nsunpy.log.setLevel(\"DEBUG\")\nimport sunpy.data.sample  # NOQA\nsunpy.log.setLevel(ori_level)\n\n# For the linkcheck\nlinkcheck_ignore = [r\"https://doi.org/\\d+\",\n                    r\"https://riot.im/\\d+\",\n                    r\"https://github.com/\\d+\",\n                    r\"https://docs.sunpy.org/\\d+\"]\nlinkcheck_anchors = False\n\n# This is added to the end of RST files - a good place to put substitutions to\n# be used globally.\nrst_epilog = \"\"\"\n.. SunPy\n.. _SunPy: https://sunpy.org\n.. _`SunPy mailing list`: https://groups.google.com/group/sunpy\n.. _`SunPy dev mailing list`: https://groups.google.com/group/sunpy-dev\n\"\"\"\n\n# -- General configuration -----------------------------------------------------\n\n# Suppress warnings about overriding directives as we overload some of the\n# doctest extensions.\nsuppress_warnings = ['app.add_directive', ]\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    'matplotlib.sphinxext.plot_directive',\n    'sphinx_automodapi.automodapi',\n    'sphinx_automodapi.smart_resolver',\n    'sphinx_gallery.gen_gallery',\n    'sphinx.ext.autodoc',\n    'sphinx.ext.coverage',\n    'sphinx.ext.doctest',\n    'sphinx.ext.inheritance_diagram',\n    'sphinx.ext.intersphinx',\n    'sphinx.ext.mathjax',\n    'sphinx.ext.napoleon',\n    'sphinx.ext.todo',\n    'sphinx.ext.viewcode',\n    'sunpy.util.sphinx.changelog',\n    'sunpy.util.sphinx.doctest',\n    'sunpy.util.sphinx.generate',\n]\n\n# Add any paths that contain templates here, relative to this directory.\n# templates_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\n# The suffix(es) of source filenames.\n# You can specify multiple suffix as a list of string:\nsource_suffix = '.rst'\n\n# The master toctree document.\nmaster_doc = 'index'\n\n# The reST default role (used for this markup: `text`) to use for all\n# documents. Set to the \"smart\" one.\ndefault_role = 'obj'\n\n# Disable having a separate return type row\nnapoleon_use_rtype = False\n\n# Disable google style docstrings\nnapoleon_google_docstring = False\n\n# -- Options for intersphinx extension -----------------------------------------\n\n# Example configuration for intersphinx: refer to the Python standard library.\nintersphinx_mapping = {\n    'python': ('https://docs.python.org/3/',\n               (None, 'http://www.astropy.org/astropy-data/intersphinx/python3.inv')),\n    'numpy': ('https://numpy.org/doc/stable/',\n              (None, 'http://www.astropy.org/astropy-data/intersphinx/numpy.inv')),\n    'scipy': ('https://docs.scipy.org/doc/scipy/reference/',\n              (None, 'http://www.astropy.org/astropy-data/intersphinx/scipy.inv')),\n    'matplotlib': ('https://matplotlib.org/',\n                   (None, 'http://www.astropy.org/astropy-data/intersphinx/matplotlib.inv')),\n    'astropy': ('https://docs.astropy.org/en/stable/', None),\n    'sqlalchemy': ('https://docs.sqlalchemy.org/en/latest/', None),\n    'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),\n    'skimage': ('https://scikit-image.org/docs/stable/', None),\n    'drms': ('https://docs.sunpy.org/projects/drms/en/stable/', None),\n    'parfive': ('https://parfive.readthedocs.io/en/latest/', None),\n    'reproject': ('https://reproject.readthedocs.io/en/stable/', None),\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\nfrom sunpy_sphinx_theme.conf import *  # NOQA\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\".\n# html_static_path = ['_static']\n\n# Render inheritance diagrams in SVG\ngraphviz_output_format = \"svg\"\n\ngraphviz_dot_args = [\n    '-Nfontsize=10',\n    '-Nfontname=Helvetica Neue, Helvetica, Arial, sans-serif',\n    '-Efontsize=10',\n    '-Efontname=Helvetica Neue, Helvetica, Arial, sans-serif',\n    '-Gfontsize=10',\n    '-Gfontname=Helvetica Neue, Helvetica, Arial, sans-serif'\n]\n\n# -- Sphinx Gallery ------------------------------------------------------------\n\nsphinx_gallery_conf = {\n    'backreferences_dir': os.path.join('generated', 'modules'),\n    'filename_pattern': '^((?!skip_).)*$',\n    'examples_dirs': os.path.join('..', 'examples'),\n    'subsection_order': ExplicitOrder([\n        '../examples/acquiring_data',\n        '../examples/map',\n        '../examples/map_transformations',\n        '../examples/time_series',\n        '../examples/units_and_coordinates',\n        '../examples/plotting',\n        '../examples/differential_rotation',\n        '../examples/saving_and_loading_data',\n        '../examples/computer_vision_techniques',\n        '../examples/developer_tools'\n    ]),\n    'within_subsection_order': ExampleTitleSortKey,\n    'gallery_dirs': os.path.join('generated', 'gallery'),\n    'default_thumb_file': os.path.join('logo', 'sunpy_icon_128x128.png'),\n    'abort_on_example_error': False,\n    'plot_gallery': 'True',\n    'remove_config_comments': True,\n    'doc_module': ('sunpy'),\n}\n\n# -- Stability Page ------------------------------------------------------------\n\nwith open('./dev_guide/sunpy_stability.yaml', 'r') as estability:\n    sunpy_modules = yaml.load(estability.read(), Loader=yaml.Loader)\n\nhtml_context = {\n    'sunpy_modules': sunpy_modules\n}\n\n\ndef rstjinja(app, docname, source):\n    \"\"\"\n    Render our pages as a jinja template for fancy templating goodness.\n    \"\"\"\n    # Make sure we're outputting HTML\n    if app.builder.format != 'html':\n        return\n    src = source[0]\n    if \"Current status\" in src[:20]:\n        rendered = app.builder.templates.render_string(\n            src, app.config.html_context\n        )\n        source[0] = rendered\n\n\n# -- Sphinx setup --------------------------------------------------------------\ndef setup(app):\n    # Generate the stability page\n    app.connect(\"source-read\", rstjinja)\n\n    # The theme conf provides a fix for circle ci redirections\n    fix_circleci(app)\n", "path": "docs/conf.py"}], "after_files": [{"content": "\"\"\"\nConfiguration file for the Sphinx documentation builder.\n\nisort:skip_file\n\"\"\"\n# flake8: NOQA: E402\n\n# -- stdlib imports ------------------------------------------------------------\nimport os\nimport sys\nimport datetime\nfrom pkg_resources import get_distribution, DistributionNotFound\n\n# -- Check for dependencies ----------------------------------------------------\n\ndoc_requires = get_distribution(\"sunpy\").requires(extras=(\"docs\",))\nmissing_requirements = []\nfor requirement in doc_requires:\n    try:\n        get_distribution(requirement)\n    except Exception as e:\n        missing_requirements.append(requirement.name)\nif missing_requirements:\n    print(\n        f\"The {' '.join(missing_requirements)} package(s) could not be found and \"\n        \"is needed to build the documentation, please install the 'docs' requirements.\"\n    )\n    sys.exit(1)\n\n# -- Read the Docs Specific Configuration --------------------------------------\n\n# This needs to be done before sunpy is imported\non_rtd = os.environ.get('READTHEDOCS', None) == 'True'\nif on_rtd:\n    os.environ['SUNPY_CONFIGDIR'] = '/home/docs/'\n    os.environ['HOME'] = '/home/docs/'\n    os.environ['LANG'] = 'C'\n    os.environ['LC_ALL'] = 'C'\n\n# -- Non stdlib imports --------------------------------------------------------\n\nimport ruamel.yaml as yaml  # NOQA\nfrom sphinx_gallery.sorting import ExplicitOrder  # NOQA\nfrom sphinx_gallery.sorting import ExampleTitleSortKey  # NOQA\n\nimport sunpy  # NOQA\nfrom sunpy import __version__  # NOQA\n\n# -- Project information -------------------------------------------------------\n\nproject = 'SunPy'\nauthor = 'The SunPy Community'\ncopyright = '{}, {}'.format(datetime.datetime.now().year, author)\n\n# The full version, including alpha/beta/rc tags\nrelease = __version__\nis_development = '.dev' in __version__\n\n# -- SunPy Sample Data and Config ----------------------------------------------\n\n# We set the logger to debug so that we can see any sample data download errors\n# in the CI, especially RTD.\nori_level = sunpy.log.level\nsunpy.log.setLevel(\"DEBUG\")\nimport sunpy.data.sample  # NOQA\nsunpy.log.setLevel(ori_level)\n\n# For the linkcheck\nlinkcheck_ignore = [r\"https://doi.org/\\d+\",\n                    r\"https://element.io/\\d+\",\n                    r\"https://github.com/\\d+\",\n                    r\"https://docs.sunpy.org/\\d+\"]\nlinkcheck_anchors = False\n\n# This is added to the end of RST files - a good place to put substitutions to\n# be used globally.\nrst_epilog = \"\"\"\n.. SunPy\n.. _SunPy: https://sunpy.org\n.. _`SunPy mailing list`: https://groups.google.com/group/sunpy\n.. _`SunPy dev mailing list`: https://groups.google.com/group/sunpy-dev\n\"\"\"\n\n# -- General configuration -----------------------------------------------------\n\n# Suppress warnings about overriding directives as we overload some of the\n# doctest extensions.\nsuppress_warnings = ['app.add_directive', ]\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    'matplotlib.sphinxext.plot_directive',\n    'sphinx_automodapi.automodapi',\n    'sphinx_automodapi.smart_resolver',\n    'sphinx_gallery.gen_gallery',\n    'sphinx.ext.autodoc',\n    'sphinx.ext.coverage',\n    'sphinx.ext.doctest',\n    'sphinx.ext.inheritance_diagram',\n    'sphinx.ext.intersphinx',\n    'sphinx.ext.mathjax',\n    'sphinx.ext.napoleon',\n    'sphinx.ext.todo',\n    'sphinx.ext.viewcode',\n    'sunpy.util.sphinx.changelog',\n    'sunpy.util.sphinx.doctest',\n    'sunpy.util.sphinx.generate',\n]\n\n# Add any paths that contain templates here, relative to this directory.\n# templates_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\n# The suffix(es) of source filenames.\n# You can specify multiple suffix as a list of string:\nsource_suffix = '.rst'\n\n# The master toctree document.\nmaster_doc = 'index'\n\n# The reST default role (used for this markup: `text`) to use for all\n# documents. Set to the \"smart\" one.\ndefault_role = 'obj'\n\n# Disable having a separate return type row\nnapoleon_use_rtype = False\n\n# Disable google style docstrings\nnapoleon_google_docstring = False\n\n# -- Options for intersphinx extension -----------------------------------------\n\n# Example configuration for intersphinx: refer to the Python standard library.\nintersphinx_mapping = {\n    'python': ('https://docs.python.org/3/',\n               (None, 'http://www.astropy.org/astropy-data/intersphinx/python3.inv')),\n    'numpy': ('https://numpy.org/doc/stable/',\n              (None, 'http://www.astropy.org/astropy-data/intersphinx/numpy.inv')),\n    'scipy': ('https://docs.scipy.org/doc/scipy/reference/',\n              (None, 'http://www.astropy.org/astropy-data/intersphinx/scipy.inv')),\n    'matplotlib': ('https://matplotlib.org/',\n                   (None, 'http://www.astropy.org/astropy-data/intersphinx/matplotlib.inv')),\n    'astropy': ('https://docs.astropy.org/en/stable/', None),\n    'sqlalchemy': ('https://docs.sqlalchemy.org/en/latest/', None),\n    'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None),\n    'skimage': ('https://scikit-image.org/docs/stable/', None),\n    'drms': ('https://docs.sunpy.org/projects/drms/en/stable/', None),\n    'parfive': ('https://parfive.readthedocs.io/en/latest/', None),\n    'reproject': ('https://reproject.readthedocs.io/en/stable/', None),\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\nfrom sunpy_sphinx_theme.conf import *  # NOQA\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\".\n# html_static_path = ['_static']\n\n# Render inheritance diagrams in SVG\ngraphviz_output_format = \"svg\"\n\ngraphviz_dot_args = [\n    '-Nfontsize=10',\n    '-Nfontname=Helvetica Neue, Helvetica, Arial, sans-serif',\n    '-Efontsize=10',\n    '-Efontname=Helvetica Neue, Helvetica, Arial, sans-serif',\n    '-Gfontsize=10',\n    '-Gfontname=Helvetica Neue, Helvetica, Arial, sans-serif'\n]\n\n# -- Sphinx Gallery ------------------------------------------------------------\n\nsphinx_gallery_conf = {\n    'backreferences_dir': os.path.join('generated', 'modules'),\n    'filename_pattern': '^((?!skip_).)*$',\n    'examples_dirs': os.path.join('..', 'examples'),\n    'subsection_order': ExplicitOrder([\n        '../examples/acquiring_data',\n        '../examples/map',\n        '../examples/map_transformations',\n        '../examples/time_series',\n        '../examples/units_and_coordinates',\n        '../examples/plotting',\n        '../examples/differential_rotation',\n        '../examples/saving_and_loading_data',\n        '../examples/computer_vision_techniques',\n        '../examples/developer_tools'\n    ]),\n    'within_subsection_order': ExampleTitleSortKey,\n    'gallery_dirs': os.path.join('generated', 'gallery'),\n    'default_thumb_file': os.path.join('logo', 'sunpy_icon_128x128.png'),\n    'abort_on_example_error': False,\n    'plot_gallery': 'True',\n    'remove_config_comments': True,\n    'doc_module': ('sunpy'),\n}\n\n# -- Stability Page ------------------------------------------------------------\n\nwith open('./dev_guide/sunpy_stability.yaml', 'r') as estability:\n    sunpy_modules = yaml.load(estability.read(), Loader=yaml.Loader)\n\nhtml_context = {\n    'sunpy_modules': sunpy_modules\n}\n\n\ndef rstjinja(app, docname, source):\n    \"\"\"\n    Render our pages as a jinja template for fancy templating goodness.\n    \"\"\"\n    # Make sure we're outputting HTML\n    if app.builder.format != 'html':\n        return\n    src = source[0]\n    if \"Current status\" in src[:20]:\n        rendered = app.builder.templates.render_string(\n            src, app.config.html_context\n        )\n        source[0] = rendered\n\n\n# -- Sphinx setup --------------------------------------------------------------\ndef setup(app):\n    # Generate the stability page\n    app.connect(\"source-read\", rstjinja)\n\n    # The theme conf provides a fix for circle ci redirections\n    fix_circleci(app)\n", "path": "docs/conf.py"}]}