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
... the problem doesn't occur with the mkdocs or readthedocs themes
... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
blog plugin breaks when some files have datetime and others have date only.
Expected behaviour
Works
Actual behaviour
Traceback (most recent call last):
File "/home/codespace/.python/current/bin/mkdocs", line 8, in <module>
sys.exit(cli())
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/mkdocs/__main__.py", line 234, in serve_command
serve.serve(dev_addr=dev_addr, livereload=livereload, watch=watch, **kwargs)
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/mkdocs/commands/serve.py", line 82, in serve
builder(config)
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/mkdocs/commands/serve.py", line 75, in builder
build(config, live_server=live_server, dirty=dirty)
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/mkdocs/commands/build.py", line 297, in build
files = config.plugins.run_event('files', files, config=config)
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/mkdocs/plugins.py", line 517, in run_event
result = method(item, **kwargs)
File "/usr/local/python/3.10.4/lib/python3.10/site-packages/material/plugins/blog/plugin.py", line 263, in on_files
self.post_meta_map = dict(sorted(
TypeError: can't compare datetime.datetime to datetime.date
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
blog plugin breaks when some files have datetime and others have date only.
Expected behaviour
Works
Actual behaviour
Steps to reproduce
hello.md:
world:
Package versions
(Though the output of
pip show mkdocs-material | grep -E ^Version
is as follows:Configuration
System information
github codespaces
The text was updated successfully, but these errors were encountered: