Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
AminAlam authored Sep 2, 2024
2 parents cf0b43d + 3c13495 commit 6c9f4f6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions docs/extensions/canonical_tutorial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from __future__ import annotations

from typing import TYPE_CHECKING

from sphinx.util.docutils import SphinxDirective

if TYPE_CHECKING:
from typing import ClassVar

from docutils import nodes
from sphinx.application import Sphinx


class CanonicalTutorial(SphinxDirective):
"""In the scanpy-tutorials repo, this links to the canonical location (here!)."""

required_arguments: ClassVar = 1

def run(self) -> list[nodes.Node]:
return []


def setup(app: Sphinx) -> None:
app.add_directive("canonical-tutorial", CanonicalTutorial)
2 changes: 1 addition & 1 deletion docs/how-to/knn-transformers.ipynb
2 changes: 1 addition & 1 deletion docs/how-to/plotting-with-marsilea.ipynb

0 comments on commit 6c9f4f6

Please sign in to comment.