Guts / mkdocs-rss-plugin

MkDocs plugin to generate a RSS feeds for created and updated pages, using git log and YAML frontmatter (page.meta).
https://guts.github.io/mkdocs-rss-plugin/
MIT License
82 stars 27 forks source link

Material social cards not working with customized social.cards_dir directory #319

Open jonaharagon opened 3 weeks ago

jonaharagon commented 3 weeks ago

assets/images/social is hardcoded at this line, so if you change the directory where social cards are stored then the cards are not detected and linked to properly:

https://github.com/Guts/mkdocs-rss-plugin/blob/19069bb57c5f0ac944bcbeeac12518e4f4f12b95/mkdocs_rss_plugin/integrations/theme_material_social_plugin.py#L309

For example this configuration would be broken:

plugins:
  social:
    cards_dir: assets/img/social
perpil commented 5 days ago

It also doesn't seem to be using the computed location correctly when used with the material blog plugin: https://github.com/squidfunk/mkdocs-material/issues/7518

If it helps, here's how mkdocs-material references the cards_dir