-
I'm trying to debug an issue where the social tiles are created using Insiders into .cache on my laptop (Windows 11) using mkdocs serve. When I do the same using a GitHub Actions script, no social tiles are generated into assets/images but if I go back to using the public version in GitHub, the basic social tiles are generated, I have validated the differences and made sure Python and every Python library are exactly the same version. What else should I be checking? Any other ideas for what would allow Insiders custom social tiles to work on mkdocs serve locally but not mkdocs gh-deploy --force? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
A few things so far:
|
Beta Was this translation helpful? Give feedback.
-
All the social tile assets are generated and now in the right place for securityarchitecture.cloud but no tiles are displayed and when using the Ahrefs SEO toolbar it doesn't find the open graph tags. So far I can't see anything in the verbose logs. Will have another look later. |
Beta Was this translation helpful? Give feedback.
-
The page has not got any Open Graph meta property tags. So what would create the social images but not the tags? |
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting. It is very likely an issue with configuration. Without knowing how you configured your project, the problem could be hiding anywhere. Are you using custom layouts? How did you configure the plugin? Can you please provide a minimal reproduction? Otherwise we can only guess, and my guess is that, looking at your site, the social plugin is not enabled 😅 For errors that you encounter we definitely need minimal reproductions to fix them, which we'd be more than happy to. |
Beta Was this translation helpful? Give feedback.
Thanks. If I'm not missing something, my question about custom layouts in #6947 (comment) was not answered, and this is the problem here. The custom layout is missing the
tags
setting as mentioned in our documentation. If you add them, you should see them appear and the social networks correctly pick up the social cards. We'll try to make it clearer once we rewrite the documentation on social cards that this is mandatory. We decided to let the layout define what tags should be added to give maximum flexibility, but I understand that this might be easy to miss.