Alexander Payne
abfac1a93e
Switched to Babel's format_datetime
to allow for time in formatted dates ( #6981 )
...
* Use Babel's `format_datetime`, not `format_date`
I am using MkDocs-Material 9.5.15 and Babel 2.14.0. When setting the config value `blog.post_date_format: "yyyy-MM-dd hh:mm:ss"`, the blog plugin crashes during compilation with the error "date objects have no hour field".
I believe this is occurring because the plugin provides a `datetime` to `babel.dates.format_date`, which upcasts it to a plain, timeless, `date`. Making this change to use `babel.dates.format_datetime` instead resolved the error and demonstrated expected behavior.
While I recognize that it is likely uncommon for a blog to want to include sub-date timestamps in any of these fields, I believe that the current documentation,
> The format string must adhere to babel's pattern syntax and should not contain whitespace
implies that _any_ of Babel's pattern markers are acceptable here. I would consider
> The format string must adhere to Babel's pattern syntax for calendar dates and should not contain whitespace
to also be a sufficient fix for this case.
----
Thank you for your effort in creating this project; it has been a wonderful benefit to my team, and this is the first minor problem we've had in months of using it.
* Make the change in src/, not material/
2024-03-31 15:45:47 +08:00
squidfunk
01b2dd17e3
Updated Russian translations
...
Co-authored-by: natakazakova <17986517+natakazakova@users.noreply.github.com>
2024-03-31 15:39:02 +08:00
squidfunk
ad7233640f
Fixed social plugin Google Fonts integration
2024-03-31 15:23:22 +08:00
squidfunk
f27b93ece3
Updated dependencies
2024-03-27 18:11:52 +08:00
squidfunk
99d15d158f
Prepare 9.5.15 release
2024-03-23 13:26:32 +08:00
squidfunk
92b3e1bbcd
Reverted fix for borders on iframes
2024-03-23 08:38:47 +08:00
squidfunk
66d450009d
Fixed interference of social plugin and auto dark mode
2024-03-19 11:11:08 +08:00
squidfunk
c51eb2ff83
Prepare 9.5.14 release
2024-03-18 07:25:21 +07:00
squidfunk
3311a615fa
Updated dependencies
2024-03-18 07:19:31 +07:00
Kamil Krzyśków
022f14c0eb
Fixed UTF-8 with BOM encoding support
2024-03-17 12:04:45 +07:00
squidfunk
2f1b2e9500
Added support for hiding versions from selector
2024-03-13 17:42:16 +07:00
squidfunk
7e27f4d00b
Merge branch 'master' of github.com:squidfunk/mkdocs-material
2024-03-12 10:00:06 +07:00
squidfunk
dc97a56659
Updated dependencies
2024-03-12 09:59:20 +07:00
Kamil Krzyśków
2d3982489d
Fixed info plugin's exclusion logic ( #6874 )
...
Added more information to platform file
Added processed directory indicator
Changed slash removal in resolved patterns
Changed regex match function to search to support subprojects
Constrained dynamic patterns to the root
Reverted build assets gathering dc808ca90a
Reverted info.gitignore file 79129d5cde
2024-03-12 09:55:15 +07:00
squidfunk
f3252381da
Fixed inability to reset search pipeline
2024-03-12 09:07:29 +07:00
squidfunk
750b79889d
Fixed borders on iframes
2024-03-11 12:29:46 +07:00
squidfunk
8244ff332d
Fixed borders on iframes
2024-03-11 09:39:07 +07:00
squidfunk
9cd979ae6c
Merge branch 'master' of github.com:squidfunk/mkdocs-material
2024-03-09 14:05:20 +07:00
squidfunk
1d6dd990b4
Fixed white background on Twitter embeds
2024-03-09 14:05:00 +07:00
Toni Viemerö
3062379b1a
Fixed syntax error in Finnish translations ( #6883 )
2024-03-08 13:35:13 +07:00
squidfunk
36e9cff9db
Prepare 9.5.13 release
2024-03-06 13:01:06 +07:00
squidfunk
dc808ca90a
Updated dependencies
2024-03-05 11:01:58 +07:00
Kamil Krzyśków
63de27578a
Extended info plugin's validation message
...
Add more elaborate comments
Fix lines to span to 80 characters
Fix import order
Fix variable naming
2024-03-05 10:50:34 +07:00
Kamil Krzyśków
4478522b52
Added validation of paths to the info plugin
2024-03-05 10:50:34 +07:00
Kamil Krzyśków
819e209795
Added projects plugin handling in the info plugin
2024-03-05 10:50:34 +07:00
Kamil Krzyśków
79129d5cde
Added exclusion logic for info plugin
2024-03-05 10:50:34 +07:00
Kamil Krzyśków
64a8b6a383
Changed info plugin to store more platform information
2024-03-05 10:50:34 +07:00
Kamil Krzyśków
712bc1c137
Fixed info plugin to gather all files recursively
2024-03-05 10:50:34 +07:00
squidfunk
15f15068d9
Improved resilience of search plugin
2024-03-04 08:11:07 +07:00
squidfunk
e51d29d511
Updated Slovak translations
...
Co-authored-by: scepka <83234912+scepka@users.noreply.github.com>
2024-03-02 18:36:13 +07:00
squidfunk
bcca0067e8
Updated Slovak translations
...
Co-authored-by: scepka <83234912+scepka@users.noreply.github.com>
2024-03-02 10:06:02 +07:00
squidfunk
d366a45fdb
Fixed instant navigation removing color theme tags
2024-02-29 10:12:02 +07:00
squidfunk
c7bde2d3ff
Formatting
2024-02-29 08:37:23 +07:00
squidfunk
de46c4153b
Fixed document observable not emitting current document
2024-02-29 08:35:54 +07:00
squidfunk
b5a5fde436
Updated dependencies
2024-02-26 11:47:29 +07:00
squidfunk
ca7e9523fd
Fixed privacy plugin not handling URL-encoded pathnames
2024-02-24 14:14:13 +07:00
squidfunk
be21a6ff2d
Prepare 9.5.11 release
2024-02-24 12:53:48 +07:00
squidfunk
23f18866c3
Removed manually added instant previews in light of new extension
2024-02-22 20:24:08 +07:00
squidfunk
a1f4084bb9
Updated distribution files
2024-02-21 10:40:03 +07:00
squidfunk
fea265dedd
Prepare 9.5.10 release
2024-02-19 13:16:24 +07:00
squidfunk
adf061e103
Updated dependencies
2024-02-19 13:15:15 +07:00
squidfunk
7bbc9f9ead
Fixed positioning of integrated table of contents
2024-02-19 13:06:02 +07:00
squidfunk
b7fc7bad5e
Removed continue reading link when there's nothing more to read
2024-02-15 12:07:47 +07:00
squidfunk
55603a70e8
Updated dependencies
2024-02-12 19:19:41 +07:00
squidfunk
721eb6ab61
Updated Bahasa Malaysia translations
...
Co-authored-by: belajarpowershell <73632767+belajarpowershell@users.noreply.github.com>
2024-02-12 19:05:16 +07:00
squidfunk
a6286ef3ac
Prepare 9.5.9 release
2024-02-10 13:17:02 +07:00
squidfunk
292d563cb4
Fixed navigation pruning when tabs + sections are active
2024-02-09 13:30:31 +07:00
squidfunk
3fb5f06793
Prepare 9.5.8 release
2024-02-07 10:32:47 +07:00
squidfunk
1b398c0add
Updated Esperanto translations
...
Co-authored-by: janvanveldhuizen <43573150+janvanveldhuizen@users.noreply.github.com>
2024-02-06 09:57:08 +07:00
squidfunk
4fc33f68ed
Added Tamil translations
...
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-05 10:49:44 +07:00