Skip to content

Does GH Pages not render custom icons? #8220

Answered by kamilkrzyskow
5jt asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @5jt,
do you run it locally the same way you do in CI?

In CI you run

mkdocs gh-deploy --force -f docs/mkdocs.yml -v

and in your mkdocs.yml file I see:

  - 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 mkdocs.yml file.

I guess you run it locally with mkdocs serve so your CWD is the same as mkdocs.yml
And your CI uses the -f docs/mkdocs.yml flag, so the CWD is diff…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by 5jt
Comment options

You must be logged in to vote
1 reply
@5jt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants