-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fix incompatiiblity with material-blog plugin #268
base: main
Are you sure you want to change the base?
Conversation
Graphic assets in material blog posts have `page = None`, leading to crash.
Hi @dvolodin7 thanks for your contribution. Did you actually get a working blog out of this PR? Because it indeed fixes a crash but it does not fully fix the incompatibility with the material blog plugin AFAIK. |
Though this bug fixes a crash and allows to build doc at all, the blog section is still empty. Current state can be checked at our site: https://getnoc.com/blog/ Project repository is here: https://github.com/nocproject/noc/ I'm still investigating the problem. First problem, the
I believe it is the same problem, which leads to incompatibility with And later, when using
As the result, |
Digging further I have found, that exclusion of files are occured in this place in mkdocs build.py:
I've added additional logging and found, the file.page is None. |
@ultrabug I have performed some investigation and tried to combine various versions of It seems the only working combination is Using other versions of The resulting blog is on our side: https://getnoc.com/blog/ |
Yes you're right @dvolodin7 FYI I've been working on the blog plugin support lately. I'm making progress but it's pretty hard because of the material/blog internals... |
@ultrabug I'm completely agree. I've tried to investigate both plugins' internals and the problem is not trivial At least, I have good stand and can help to check patches. |
@ultrabug I know it's not a simple matter, but do you perhaps have some kind of ETA for the support? |
@kamilkrzyskow I don't really have an ETA yet. I prioritized some open issues / bugs and your own proposals so far instead of working on the blog support. As for now, I've made progress but as I said it's a real struggle and finding the right amount of focused time is hard for me lately. What I can say is that it's now my primary focus when it comes to this plugin's development. |
Would this be a solution for my issue too?
I have mkdcos-material 9.4.10 and mkdcos-static-i18n 1.2.0 I am building a multilingual site, and am trying to add a blog. As soon as I add my first blog post, it crashes. |
Hello @ultrabug, |
Version 1.2.3 of the plugin introduces the same fix for the crash as this PR. The author of the fix was once again not attributed (as the first person to fix the crash), but those are only 2 lines, so who cares, right? 🙄 (I do care...) Anyways, I don't think this PR will move further, so it should be closed. I got 1 like before the edit 👀 |
Files for graphic assets in material blog posts have
page = None
, leading to crash.Proposed fix checks for page attribute is really set.