Closed jegrami closed 1 month ago
You're using the m.plots
and m.qr
plugins which depend on the matplotlib
and qrcode
Python packages. Assuming you don't use those plugins, remove them from the list (you really only need to list ones that you actually use, not everything from m.css). If you do use them, install the packages via pip or any other means that's best suited for your dev environment.
Judging from the output however, it seems that it just skips those plugins if they fail to load, so it should still generate something from the input .rst
files. Is it not shown at http://127.0.0.1:8000? Are you sure it actually takes the .rst
files you're editing and not some other stale copy?
Generally, there's no hidden magic done by m.css anywhere, it's all just plain Pelican with some theming on top. So if there's something strange going on, it's likely Pelican being misconfigured.
It's working fine now. Thanks, @mosra!
I think it was wrong indentation in some of the reST files that was causing the problem (beginner's error. lol). Because of those errors, Pelican wasn't parsing the files, so the changes I was making wasn't being updated. I added a new article file with fresh content, formatted with some m.css special directives. It rendered fine. So I deleted the content of the old articles and carefully added them back. They rendered perfectly, too. Everything is fine now. Thank you so much.
Ah, yes, the error handling / reporting is a bit strange in Pelican, a single error causing everything to stop. Gotta get used to it, I guess :)
I'm experiencing two issues I suspect are related to the m.css plugins. This is similar to the closed issue #181
note-dim::
,note-info::
,note-primary::
,gh
, etc) in my articles, they also don't reflect on the website.In my settings file, CACHE_CONTENT and LOAD_CONTENT_CACHE are both set to False. And the m.css plugins folder is correctly referenced there too:
The following is the Terminal output when I run
pelican -Dlr
:Notice the line last line there that says 'Unable to find
/posts/why-study-dsa.rst
, skipping url replacement.' Pelican is referencing an old folder nameposts/
, which I changed toarticles/
like four days ago. I've made several significant changes to the content of the articles, but it doesn't reflect on the website. I believe all these issues are related.Deleting the output folder and regenerating the content doesn't fix it. The fix suggested by @lpirl on issue #181 also didn't work for me. Please help!