8000 add favicons, fix mathjax config for GH build · astyl/spatialmath-python@a95033d · GitHub
[go: up one dir, main page]

Skip to content

Commit a95033d

Browse files
committed
add favicons, fix mathjax config for GH build
1 parent 5e24645 commit a95033d

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

docs/source/conf.py

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
'sphinx.ext.inheritance_diagram',
4747
'sphinx_autorun',
4848
"sphinx.ext.intersphinx",
49+
"sphinx-favicon",
4950
]
5051
#'sphinx-prompt',
5152
#'recommonmark',
@@ -115,9 +116,9 @@
115116
}
116117

117118
# see https://stackoverflow.com/questions/9728292/creating-latex-math-macros-within-sphinx
118-
mathjax_config = {
119-
'TeX': {
120-
'Macros': {
119+
mathjax3_config = {
120+
'tex': {
121+
'macros': {
121122
# RVC Math notation
122123
# - not possible to do the if/then/else approach
123124
# - subset only
@@ -167,4 +168,41 @@
167168
"numpy": ("http://docs.scipy.org/doc/numpy/", None),
168169
"scipy": ("http://docs.scipy.org/doc/scipy/reference/", None),
169170
"matplotlib": ("http://matplotlib.sourceforge.net/", None),
170-
}
171+
}
172+
173+
# -------- Options favicon -------------------------------------------------------#
174+
175+
html_static_path = ["_static"]
176+
# create favicons online using https://favicon.io/favicon-converter/
177+
favicons = [
178+
{
179+
"rel": "icon",
180+
"sizes": "16x16",
181+
"static-file": "favicon-16x16.png",
182+
"type": "image/png",
183+
},
184+
{
185+
"rel": "icon",
186+
"sizes": "32x32",
187+
"static-file": "favicon-32x32.png",
188+
"type": "image/png",
189+
},
190+
{
191+
"rel": "apple-touch-icon",
192+
"sizes": "180x180",
193+
"static-file": "apple-touch-icon.png",
194+
"type": "image/png",
195+
},
196+
{
197+
"rel": "android-chrome",
198+
"sizes": "192x192",
199+
"static-file": "android-chrome-192x192.png ",
200+
"type": "image/png",
201+
},
202+
{
203+
"rel": "android-chrome",
204+
"sizes": "512x512",
205+
"static-file": "android-chrome-512x512.png ",
206+
"type": "image/png",
207+
},
208+
]

0 commit comments

Comments
 (0)
0