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

Blog issue - TypeError: unsupported operand type(s) for |: 'ABCMeta' and 'NoneType' #7207

Closed
4 tasks done
SteveRosam opened this issue May 22, 2024 · 1 comment
Closed
4 tasks done
Labels
needs reproduction Issue lacks a minimal reproduction .zip file

Comments

@SteveRosam
Copy link
Sponsor

Context

I have seen this issue, which is now closed.
(I have tried with Python 3.8 and 3.11)
#6264

Bug description

When I add this to a new docs site (mkdocs + material) I get the error below
Note that i also add a blog folder under docs folder and a posts folder under that.
an index.md goes in the blog folder and a .md file goes in the posts folder.
All per the docs.

plugins:
  - blog

TypeError: unsupported operand type(s) for |: 'ABCMeta' and 'NoneType'

Related links

Reproduction

repro files mkdocs-material.zip

Steps to reproduce

Follow the docs and ensure the correct folder structure

image

Update mkdocs.yml with the blog config

site_name: My site
site_url: https://mydomain.org/mysite

theme:
  name: material

plugins:
  - blog

nav:
  - Home: index.md
  - Blog:
      - blog/index.md
  

same issue whether i have nav in there or not.

Browser

Chrome

Before submitting

@squidfunk
Copy link
Owner

Thanks for reporting. Unfortunately, we don't know which version of MkDocs, Material for MkDocs and all other dependencies you are using. This is why we require using the info plugin (as mentioned in our bug reporting guide and this issue template). Thus, please make sure to carefully read and follow our bug reporting guidelines.

My guess is that you're using an outdated version. Closing as not reproducible.

@squidfunk squidfunk added the needs reproduction Issue lacks a minimal reproduction .zip file label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction Issue lacks a minimal reproduction .zip file
2 participants