Skip to content

Commit

Permalink
fix small/smaller roles
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Jul 26, 2024
1 parent 39f554b commit 366aa65
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 23 deletions.
14 changes: 13 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

import sys
from datetime import datetime
from functools import partial
from pathlib import Path
from typing import TYPE_CHECKING

import matplotlib # noqa
from docutils import nodes
from packaging.version import Version

# Don’t use tkinter agg when importing scanpy → … → matplotlib
Expand Down Expand Up @@ -50,7 +52,14 @@
templates_path = ["_templates"]
master_doc = "index"
default_role = "literal"
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"]
exclude_patterns = [
"_build",
"Thumbs.db",
".DS_Store",
"**.ipynb_checkpoints",
# exclude all 0.x.y.md files, but not index.md
"release-notes/[!i]*.md",
]

extensions = [
"myst_nb",
Expand Down Expand Up @@ -96,6 +105,7 @@
"html_admonition",
]
myst_url_schemes = ("http", "https", "mailto", "ftp")
myst_heading_anchors = 3
nb_output_stderr = "remove"
nb_execution_mode = "off"
nb_merge_streams = True
Expand Down Expand Up @@ -151,6 +161,8 @@

def setup(app: Sphinx):
"""App setup hook."""
app.add_generic_role("small", partial(nodes.inline, classes=["small"]))
app.add_generic_role("smaller", partial(nodes.inline, classes=["smaller"]))
app.add_config_value(
"recommonmark_config",
{
Expand Down
8 changes: 0 additions & 8 deletions docs/ecosystem.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# Ecosystem

```{eval-rst}
.. role:: small
```

```{eval-rst}
.. role:: smaller
```

```{warning}
We are no longer accepting new tools on this page.
Instead, please submit your tool to the [scverse ecosystem package listing](https://scverse.org/packages/#ecosystem).
Expand Down
8 changes: 0 additions & 8 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
:end-before: '## Citation'
```

```{eval-rst}
.. role:: small
```

```{eval-rst}
.. role:: smaller
```

::::{grid} 1 2 3 3
:gutter: 2

Expand Down
6 changes: 0 additions & 6 deletions docs/news.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
(News)=

## News

```{eval-rst}
.. role:: small
```

<!-- marker: after prelude -->

### `rapids-singlecell` brings scanpy to the GPU! {small}`2024-03-18`
Expand Down

0 comments on commit 366aa65

Please sign in to comment.