diff --git a/docs/requirements.txt b/docs/requirements.txt index bfa0b839..3ff4a181 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -11,3 +11,4 @@ typing_extensions myst-parser==0.18.1 jupytext==1.14.4 numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability +sphinx-favicon==1.0.1 diff --git a/docs/source/conf.py b/docs/source/conf.py index b861f039..fe7cac1f 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -45,6 +45,7 @@ "sphinx.ext.viewcode", "sphinx_design", "myst_parser", + "sphinx_favicon", ] napoleon_google_docstring = True @@ -93,6 +94,10 @@ # This pattern also affects html_static_path and html_extra_path. exclude_patterns = ["_build"] +favicons = [ + {"rel": "icon", "sizes": "16x16", "href": "favicon/favicon-16x16.png"}, + {"rel": "icon", "sizes": "32x32", "href": "favicon/favicon-32x32.png"}, +] # -- Options for HTML output ------------------------------------------------- @@ -120,10 +125,6 @@ "navbar_end": ["theme-switcher", "version-switcher", "navbar-icon-links"], "navbar_persistent": [], "show_nav_level": 2, - "favicons": [ - {"rel": "icon", "sizes": "16x16", "href": "favicon/favicon-16x16.png"}, - {"rel": "icon", "sizes": "32x32", "href": "favicon/favicon-32x32.png"}, - ], "switcher": { "json_url": "https://cashocs.readthedocs.io/en/latest/_static/version_switcher.json", "version_match": switcher_version,