Skip to content

Blog + Social Cards + RSS + Insiders issue #7518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 tasks done
perpil opened this issue Sep 11, 2024 · 1 comment
Closed
4 tasks done

Blog + Social Cards + RSS + Insiders issue #7518

perpil opened this issue Sep 11, 2024 · 1 comment
Labels
bug Issue reports a bug upstream Issue must be taken upstream

Comments

@perpil
Copy link
Contributor

perpil commented Sep 11, 2024

Context

Setting up rss feeds when you have a blog with social cards per the instructions doesn't work. It's possible this is a mkdocs-rss-plugin issue vs a mkdocs-material issue.

Bug description

mkdocs build is looking for the social cards at the wrong path when you add the rss plugin per the docs.
The path in the resulting feed_json_created.json has social card paths that are missing the date and are incorrect: http://localhost:8000/assets/images/social/blog/posts/mission.png instead of http://localhost:8000/assets/images/social/blog/2023/09/01/the-mission-statement.png

Related links

Reproduction

9.5.34+insiders.4.53.12-rss-social-blog.zip

Steps to reproduce

  1. mkdocs build list errors about loading images with the wrong path.
  2. mkdocs serve succeeds, but the file at http://localhost:8000/feed_json_created.json has incorrect social links.

Browser

Firefox

Before submitting

@squidfunk
Copy link
Owner

squidfunk commented Sep 11, 2024

Thanks for reporting.

mkdocs build is looking for the social cards at the wrong path when you add the rss plugin per the docs.

Please report this to the authors of the RSS plugin, since the problem manifests in a file generated by that plugin (feed_json_created.json). Furthermore, there have been some issues with the social plugin, e.g., Guts/mkdocs-rss-plugin#257 (as you mentioned as well), so it might be related. Essentially, the RSS plugin does not correctly handle the computed blog posts URLs, so this might be an ordering issue among plugins.

The URLs are computed as early as possible (before on_page_markdown, in on_files), so I'm quite confident the RSS plugin doesn't use the computed URLs correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug upstream Issue must be taken upstream
Projects
None yet
Development

No branches or pull requests

2 participants