|
51 | 51 | "sphinx.ext.autodoc", |
52 | 52 | "sphinx.ext.intersphinx", |
53 | 53 | "sphinx.ext.mathjax", |
| 54 | + "sphinx.ext.viewcode", |
54 | 55 | "sphinx_autodoc_typehints", |
| 56 | + "sphinx_copybutton", |
55 | 57 | ] |
56 | 58 |
|
57 | 59 | nb_execution_mode = "off" |
58 | 60 |
|
| 61 | +# configure copy button to avoid copying sphinx or console characters |
| 62 | +copybutton_exclude = ".linenos, .gp" |
| 63 | +copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: " |
| 64 | +copybutton_prompt_is_regexp = True |
| 65 | + |
59 | 66 | source_suffix = { |
60 | 67 | ".rst": "restructuredtext", |
61 | 68 | ".ipynb": "myst-nb", |
|
72 | 79 |
|
73 | 80 | # -- intersphinx config ------------------------------------------------------- |
74 | 81 | intersphinx_mapping = { |
75 | | - "python": ("https://docs.python.org/3", None), |
| 82 | + "examples": ("https://www.pymc.io/projects/examples/en/latest/", None), |
| 83 | + "mpl": ("https://matplotlib.org/stable", None), |
| 84 | + "numpy": ("https://numpy.org/doc/stable/", None), |
| 85 | + "pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None), |
76 | 86 | "pymc": ("https://www.pymc.io/projects/docs/en/stable/", None), |
| 87 | + "python": ("https://docs.python.org/3", None), |
| 88 | + "scikit-learn": ("https://scikit-learn.org/stable/", None), |
| 89 | + "scipy": ("https://docs.scipy.org/doc/scipy/", None), |
| 90 | + "xarray": ("https://docs.xarray.dev/en/stable/", None), |
77 | 91 | } |
78 | 92 |
|
79 | 93 | # MyST options for working with markdown files. |
|
0 commit comments