Skip to content

Commit

Permalink
docs: πŸ“š update favicon
Browse files Browse the repository at this point in the history
docs: πŸ“š update favicon

docs: πŸ“š update favicon
  • Loading branch information
noshita committed Dec 10, 2023
1 parent 72f6df7 commit 54b6cec
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx pydata-sphinx-theme sphinx-autobuild sphinx-gallery sphinxcontrib-bibtex myst-nb nbsphinx numpydoc matplotlib seaborn sphinx-sitemap
pip install sphinx pydata-sphinx-theme sphinx-autobuild sphinx-gallery sphinxcontrib-bibtex myst-nb nbsphinx numpydoc matplotlib seaborn sphinx-sitemap sphinx-favicon
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Sphinx build
Expand Down
File renamed without changes
File renamed without changes
11 changes: 10 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"numpydoc",
"myst_nb",
"sphinx_sitemap",
"sphinx_favicon",
]

# this is needed for some reason...
Expand Down Expand Up @@ -203,7 +204,15 @@
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
html_favicon = "_static/img/favicon_32.png"
# html_favicon = "_static/img/favicon_32.png"
favicons = [
{"href": "favicon.svg"}, # => use `_static/icon.svg`
{"href": "favicon_32.png"},
{
"rel": "apple-touch-icon",
"href": "https://doc.ktch.dev/apple-touch-icon.png",
},
]

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ sphinx-autobuild = "^2021.3"
sphinx-gallery = "^0.11"
sphinx-sitemap = "^2.5.0"
sphinxcontrib-bibtex = "^2.5"
sphinx-favicon = "^1.0.1"

[build-system]
build-backend = "poetry.core.masonry.api"
Expand Down

0 comments on commit 54b6cec

Please sign in to comment.