|
5 | 5 | # http://www.sphinx-doc.org/en/master/config |
6 | 6 |
|
7 | 7 | import datetime |
8 | | -import pathlib |
| 8 | +from pathlib import Path |
9 | 9 |
|
10 | 10 | from packaging.version import Version |
11 | 11 |
|
|
76 | 76 | # Example configuration for intersphinx: refer to the Python standard library. |
77 | 77 | intersphinx_mapping = { |
78 | 78 | "python": ("https://docs.python.org/3/", (None, "http://data.astropy.org/intersphinx/python3.inv")), |
79 | | - "numpy": ("https://docs.scipy.org/doc/numpy/", (None, "http://data.astropy.org/intersphinx/numpy.inv")), |
80 | | - "scipy": ("https://docs.scipy.org/doc/scipy/reference/", (None, "http://data.astropy.org/intersphinx/scipy.inv")), |
81 | | - "matplotlib": ("https://matplotlib.org/", (None, "http://data.astropy.org/intersphinx/matplotlib.inv")), |
82 | | - "astropy": ("http://docs.astropy.org/en/stable/", None), |
| 79 | + "numpy": ("https://docs.scipy.org/doc/numpy/", (None, "https://numpy.org/doc/stable/objects.inv")), |
| 80 | + "scipy": ("https://docs.scipy.org/doc/scipy/reference/", (None, "https://docs.scipy.org/doc/scipy/objects.inv")), |
| 81 | + "matplotlib": ("https://matplotlib.org/", (None, "https://matplotlib.org/stable/objects.inv")), |
| 82 | + "astropy": ("http://docs.astropy.org/en/stable/", (None, "https://docs.astropy.org/en/stable/objects.inv")), |
83 | 83 | "sunpy": ("https://docs.sunpy.org/en/stable/", None), |
84 | 84 | } |
85 | 85 |
|
|
117 | 117 |
|
118 | 118 | # -- Options for the Sphinx gallery ------------------------------------------- |
119 | 119 |
|
120 | | -path = pathlib.Path.cwd() |
121 | | -example_dir = path.parent.joinpath("examples") |
122 | 120 | sphinx_gallery_conf = { |
123 | | - "backreferences_dir": str(path.joinpath("generated", "modules")), |
| 121 | + "backreferences_dir": str(Path("generated") / "modules"), |
124 | 122 | "filename_pattern": "^((?!skip_).)*$", |
125 | | - "examples_dirs": example_dir, |
126 | | - "gallery_dirs": path.joinpath("generated", "gallery"), |
| 123 | + "examples_dirs": str(Path("..") / "examples"), |
| 124 | + "gallery_dirs": str(Path("generated") / "gallery"), |
127 | 125 | "abort_on_example_error": False, |
128 | | - "plot_gallery": "True", |
129 | 126 | "remove_config_comments": True, |
130 | 127 | "only_warn_on_example_error": True, |
131 | | - 'pypandoc': True |
| 128 | + "parallel": True, |
132 | 129 | } |
133 | 130 |
|
134 | 131 | # -- Other options ---------------------------------------------------------- |
0 commit comments