Skip to content

Commit

Permalink
Backport PR scverse#1673: Upstream release-notes directive (scverse#1674
Browse files Browse the repository at this point in the history
)

* Backport PR scverse#1673: Upstream release-notes directive

* fix docs
  • Loading branch information
flying-sheep authored Sep 16, 2024
1 parent 40a3141 commit 4345532
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 117 deletions.
9 changes: 4 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
from sphinx.application import Sphinx

HERE = Path(__file__).parent
sys.path[:0] = [str(HERE / "extensions")]
_extension_dir = HERE / "extensions"
sys.path[:0] = [str(_extension_dir)]


# -- General configuration ------------------------------------------------
Expand Down Expand Up @@ -62,9 +63,7 @@
"nbsphinx",
"IPython.sphinxext.ipython_console_highlighting",
"sphinx_toolbox.more_autodoc.autoprotocol",
# other internal extensions
"patch_myst_cite",
"release_notes",
*(p.stem for p in _extension_dir.glob("*.py")),
]
myst_enable_extensions = [
"html_image", # So README.md can be used on github and sphinx docs
Expand Down Expand Up @@ -128,7 +127,7 @@ def setup(app: Sphinx):
scipy=("https://docs.scipy.org/doc/scipy/", None),
sklearn=("https://scikit-learn.org/stable/", None),
zarr=("https://zarr.readthedocs.io/en/stable/", None),
xarray=("https://xarray.pydata.org/en/stable/", None),
xarray=("https://docs.xarray.dev/en/stable/", None),
)
qualname_overrides = {
"h5py._hl.group.Group": "h5py.Group",
Expand Down
111 changes: 0 additions & 111 deletions docs/extensions/release_notes.py

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ doc = [
"sphinx-toolbox",
"sphinxext.opengraph",
"nbsphinx",
"scanpydoc[theme,typehints] >=0.13.6",
"scanpydoc[theme,typehints] >=0.14.1",
"zarr",
"awkward>=2.0.7",
"IPython", # For syntax highlighting in notebooks
Expand Down

0 comments on commit 4345532

Please sign in to comment.