|
4 | 4 | # full list see the documentation: |
5 | 5 | # http://www.sphinx-doc.org/en/master/config |
6 | 6 |
|
7 | | -# -- Project information ----------------------------------------------------- |
8 | 7 | import datetime |
9 | 8 | from pathlib import Path |
10 | 9 |
|
|
31 | 30 | author = "The SunPy Community" |
32 | 31 |
|
33 | 32 | # -- General configuration --------------------------------------------------- |
| 33 | + |
34 | 34 | extensions = [ |
35 | 35 | "sphinx_gallery.gen_gallery", |
36 | 36 | "matplotlib.sphinxext.plot_directive", |
|
48 | 48 | "sphinx.ext.viewcode", |
49 | 49 | "sphinx_copybutton", |
50 | 50 | ] |
| 51 | + |
| 52 | +# Add any paths that contain templates here, relative to this directory. |
| 53 | +# templates_path = ["_templates"] # NOQA: ERA001 |
| 54 | + |
| 55 | +# List of patterns, relative to source directory, that match files and |
| 56 | +# directories to ignore when looking for source files. |
| 57 | +# This pattern also affects html_static_path and html_extra_path. |
51 | 58 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
| 59 | + |
| 60 | +# The suffix(es) of source filenames. |
| 61 | +# You can specify multiple suffix as a list of string: |
52 | 62 | source_suffix = ".rst" |
| 63 | + |
| 64 | +# The master toctree document. |
53 | 65 | master_doc = "index" |
54 | | -napoleon_use_rtype = False |
55 | | -napoleon_google_docstring = False |
56 | 66 |
|
57 | 67 | # Treat everything in single ` as a Python reference. |
58 | 68 | default_role = "py:obj" |
59 | 69 |
|
60 | 70 | # -- Options for intersphinx extension --------------------------------------- |
| 71 | + |
61 | 72 | intersphinx_mapping = { |
62 | 73 | "python": ( |
63 | 74 | "https://docs.python.org/3/", |
|
81 | 92 | } |
82 | 93 |
|
83 | 94 | # -- Options for HTML output ------------------------------------------------- |
| 95 | + |
| 96 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 97 | +# a list of builtin themes. |
84 | 98 | html_theme = "sunpy" |
| 99 | + |
| 100 | +# Render inheritance diagrams in SVG |
85 | 101 | graphviz_output_format = "svg" |
| 102 | + |
86 | 103 | graphviz_dot_args = [ |
87 | 104 | "-Nfontsize=10", |
88 | 105 | "-Nfontname=Helvetica Neue, Helvetica, Arial, sans-serif", |
|
92 | 109 | "-Gfontname=Helvetica Neue, Helvetica, Arial, sans-serif", |
93 | 110 | ] |
94 | 111 |
|
95 | | -# -- Options for sphinx-copybutton --------------------------------------------- |
96 | | -# Python Repl + continuation, Bash, ipython and qtconsole + continuation, jupyter-console + continuation |
97 | | -copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: " |
98 | | -copybutton_prompt_is_regexp = True |
| 112 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 113 | +# relative to this directory. They are copied after the builtin static files, |
| 114 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 115 | +# html_static_path = ["_static"] # NOQA: ERA001 |
| 116 | + |
| 117 | +# By default, when rendering docstrings for classes, sphinx.ext.autodoc will |
| 118 | +# make docs with the class-level docstring and the class-method docstrings, |
| 119 | +# but not the __init__ docstring, which often contains the parameters to |
| 120 | +# class constructors across the scientific Python ecosystem. The option below |
| 121 | +# will append the __init__ docstring to the class-level docstring when rendering |
| 122 | +# the docs. For more options, see: |
| 123 | +# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autoclass_content |
| 124 | +autoclass_content = "both" |
| 125 | + |
| 126 | +# -- Other options ---------------------------------------------------------- |
| 127 | + |
| 128 | +napoleon_use_rtype = False |
| 129 | + |
| 130 | +napoleon_google_docstring = False |
99 | 131 |
|
100 | 132 | # Enable nitpicky mode, which forces links to be non-broken |
101 | 133 | nitpicky = True |
|
109 | 141 | target = target.strip() |
110 | 142 | nitpick_ignore.append((dtype, target)) |
111 | 143 |
|
| 144 | +# -- Options for sphinx-copybutton --------------------------------------------- |
| 145 | + |
| 146 | +# Python Repl + continuation, Bash, ipython and qtconsole + continuation, jupyter-console + continuation |
| 147 | +copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: " |
| 148 | +copybutton_prompt_is_regexp = True |
| 149 | + |
112 | 150 | # -- Options for the Sphinx gallery ------------------------------------------- |
| 151 | + |
113 | 152 | sphinx_gallery_conf = { |
114 | 153 | "backreferences_dir": Path("generated") / "modules", |
115 | 154 | "filename_pattern": "^((?!skip_).)*$", |
|
0 commit comments