Skip to content

Commit 3d8929d

Browse files
committed
update
1 parent 8e13922 commit 3d8929d

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

docs/conf.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,10 @@
6363
"nbsphinx",
6464
"scanpydoc",
6565
"sphinx.ext.linkcode",
66+
"sphinx_tabs.tabs",
67+
"sphinxext.opengraph",
6668
]
6769

68-
# Only load readthedocs extension when building on RTD (incompatible with Sphinx 9.x locally)
69-
if on_rtd:
70-
extensions.append("readthedocs_ext.readthedocs")
71-
7270
autosummary_generate = True
7371
autodoc_member_order = "bysource"
7472
autodoc_mock_imports = [
@@ -161,6 +159,11 @@
161159
html_css_files = ["_static/css/override.css"]
162160
html_title = "rapids-singlecell"
163161

162+
# OpenGraph metadata for social media previews
163+
ogp_site_url = "https://rapids-singlecell.readthedocs.io/"
164+
ogp_site_name = "rapids-singlecell"
165+
ogp_image = "_static/logo_RTD.svg"
166+
164167
qualname_overrides = {
165168
"numpy.bool_": "numpy.bool", # Since numpy 2, numpy.bool is the canonical dtype
166169
}

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ doc = [
3737
"nbsphinx>=0.8.12",
3838
"myst-nb",
3939
"sphinx-design",
40+
"sphinx-tabs",
41+
"sphinxext-opengraph",
4042
"scanpydoc[typehints,theme]>=0.9.4",
41-
"readthedocs-sphinx-ext",
42-
"sphinx_copybutton",
4343
"dask",
4444
"pytest",
4545
]

0 commit comments

Comments
 (0)