You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`page.file.src_path` on Windows contains backslashes resulting in an
empty RSS feed if `match_path` contains a forward slash. This commit
replaces `src_path` with `src_uri` which provides an OS independent path
with forward slashes '/'.
fixes#321
I used the following
match_path
and found that it resulted in an empty feed (no posts, just an RSS channel element) on Windows.At the same time, it was working properly on Linux.
The same issue was reported in #264 where it was found that it was working properly in Docker.
The real issue here is that the plugin uses
src_path
for pattern matching:https://github.com/Guts/mkdocs-rss-plugin/blob/main/mkdocs_rss_plugin/plugin.py#L278
which results in '\'-URLs on Windows, e.g.
blog\posts\something.md
.MkDocs has already dealt with this issue by introducing
src_uri
: mkdocs/mkdocs#2930See also:
I have tested that this solution works.
Raising this issue to get the fix done in the plugin.
The text was updated successfully, but these errors were encountered: