Skip to content

Commit 371a4ed

Browse files
steff456rgommers
andauthored
Add favicon (#612)
Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
1 parent 94a24c8 commit 371a4ed

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

doc-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ sphinx-material==0.0.30
33
myst-parser
44
sphinx_markdown_tables
55
sphinx_copybutton
6+
sphinx_favicon
67
docutils<0.18
78
sphinx-math-dollar

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ Source = "https://github.com/data-apis/array-api/"
1414
Documentation = "https://data-apis.org/array-api/"
1515
Homepage = "https://data-apis.org/"
1616

17+
[project.optional-dependencies]
18+
doc = [
19+
"sphinx==4.3.0",
20+
"sphinx-material==0.0.30",
21+
"myst-parser",
22+
"sphinx_markdown_tables",
23+
"sphinx_copybutton",
24+
"docutils<0.18",
25+
"sphinx-math-dollar",
26+
"sphinx-favicon",
27+
]
28+
1729
[build-system]
1830
requires = ["setuptools"]
1931
build-backend = "setuptools.build_meta"

spec/_static/images/favicon.png

5.03 KB
Loading

src/_array_api_conf.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@
3030
'sphinx.ext.extlinks',
3131
'sphinx.ext.intersphinx',
3232
'sphinx.ext.todo',
33-
'sphinx_markdown_tables',
34-
'sphinx_copybutton',
3533
'sphinx.ext.autosummary',
3634
'sphinx.ext.napoleon',
3735
'sphinx.ext.autodoc',
36+
'sphinx_copybutton',
37+
'sphinx_favicon',
38+
'sphinx_markdown_tables',
3839
]
3940

4041
autosummary_generate = True
@@ -176,7 +177,14 @@
176177

177178

178179
todo_include_todos = True
179-
#html_favicon = "images/favicon.ico"
180+
181+
favicons = [
182+
{
183+
"rel": "icon",
184+
"sizes": "196x195",
185+
"href": "images/favicon.png",
186+
},
187+
]
180188

181189
html_use_index = True
182190
html_domain_indices = True

0 commit comments

Comments
 (0)