Skip to content
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

mkdocs-material blog broken in v2.9.3 #111

Open
eloo-abi opened this issue Dec 6, 2024 · 6 comments
Open

mkdocs-material blog broken in v2.9.3 #111

eloo-abi opened this issue Dec 6, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@eloo-abi
Copy link

eloo-abi commented Dec 6, 2024

Hi,

we have recently rolled out the latest update and i have seen that now mkdocs-material blog is not working properly anymore.

With v2.9.3 of awesome pages the navigation is gone for the blog posts..

so it looks now like this:
image

with v2.9.2 it looks like this (which is the expected):
image

My config looks mostly like this:

plugins:
  - awesome-pages
  - blog:
      blog_dir: blog
      blog_toc: true
      post_date_format: long
      post_url_date_format: yyyy/MM/dd
      post_url_format: "{date}/{slug}"
      categories_toc: true

nav:
  - Blog: 
    - blog/index.md

and i don't use any .pages right now

@lukasgeiter
Copy link
Owner

I wasn't able to reproduce your issue. Which version of mkdocs and mkdocs-material are you using?

@eloo-abi
Copy link
Author

eloo-abi commented Dec 9, 2024

Hi,

i have the following versions running:

mkdocs==1.6.1
mkdocs-material==9.5.47
markupsafe==3.0.2
mkdocs-git-revision-date-localized-plugin==1.3.0
mkdocs-awesome-pages-plugin==2.9.2  # 2.9.3 has a bug https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin/issues/111
mkdocs-glightbox

not sure if this is related but i'm using tabs navigation as well

theme:
  features:
    - navigation.tabs

@lukasgeiter
Copy link
Owner

Hmm I have the same versions and also tried with the tabs feature. Could you provide me with a reproducable example?

@eloo-abi
Copy link
Author

@lukasgeiter for sure..

i also got a second conditions which needs to be set that the bug is visible..

its the ... in the "bug-cause" navigation

so a "broken" example looks like this

site_name: Github #111

theme:
  name: material
  features:
    - navigation.tabs

plugins:
  - awesome-pages
  - blog:
      blog_dir: blog
      blog_toc: true
      post_date_format: long
      post_url_date_format: yyyy/MM/dd
      post_url_format: "{date}/{slug}"
      categories_toc: true

nav:
  - Bug-cause:
      - ... | flat | conventions/*.md
  - Blog: 
      - blog/index.md

maybe this helps to find the bug..

@lukasgeiter lukasgeiter added the bug Something isn't working label Dec 11, 2024
@lukasgeiter
Copy link
Owner

Thanks, now I can reproduce it. A proper fix will take some time, I'll let you know once it's out.

@eloo-abi
Copy link
Author

@lukasgeiter sounds good.
no worries, so far i will stick with the old version 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants