Does GH Pages not render custom icons? #8220
-
I’m converting the documentation of GitHub repo Tatin to Material for MkDocs. The conversion is in my fork, going well, and visible at https://5jt.github.io/Tatin. The home page includes two custom icons, for which the source is in But on GH Pages only the FontAwesome icons are rendered, the custom icons appear as e.g. Is this a known issue? Is there some tweak needed to If this is new to everyone, I’ll report it with a minimum version to replicate. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @5jt, In CI you run
and in your - pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
options:
custom_icons:
- overrides/.icons If I remember correctly, the "paths" input into Python Markdown Extension should be relative to the CWD of the python interpreter, not relative to the I guess you run it locally with EDIT: |
Beta Was this translation helpful? Give feedback.
-
Is there a reason why the logo was made to be so wide? Also instead of using |
Beta Was this translation helpful? Give feedback.
Hello @5jt,
do you run it locally the same way you do in CI?
In CI you run
and in your
mkdocs.yml
file I see:If I remember correctly, the "paths" input into Python Markdown Extension should be relative to the CWD of the python interpreter, not relative to the
mkdocs.yml
file.I guess you run it locally with
mkdocs serve
so your CWD is the same asmkdocs.yml
And your CI uses the
-f docs/mkdocs.yml
flag, so the CWD is diff…