1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00
Commit Graph

179 Commits

Author SHA1 Message Date
Nejc Habjan
6a0a790e8f
Added preload hints in privacy plugin replacements (#7733) 2024-11-22 14:24:58 +01:00
perpil
eee4934efd
Fixed blog plugin crashing on missing timezone (regression) (#7730)
* Default timezone to UTC for blog plugin created date

Fix for https://github.com/squidfunk/mkdocs-material/issues/7725

* Fix variable name

* Run build
2024-11-20 18:22:48 +01:00
perpil
a08809a0f3
Fixed blog plugin crashing on dates with timezones (#7708)
* Normalize datetime values to UTC in blog plugin

Fixes #7705

Normalize datetime values to UTC in blog plugin to handle offset-naive and offset-aware datetimes correctly.

* Import `timezone` from `datetime` in `material/plugins/blog/structure/options.py`.
* Modify `pre_validation` method to set `tzinfo=timezone.utc` for datetime values.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/squidfunk/mkdocs-material/issues/7705?shareId=XXXX-XXXX-XXXX-XXXX).

* Normalize datetime values to UTC in blog plugin

Fixes #7705

+ Move changes to src directory
2024-11-19 13:39:37 +01:00
squidfunk
aa4ef560f0
Prepare 9.5.44 release 2024-11-05 19:22:39 +01:00
Nejc Habjan
4918a10d8f
Added support for quoted external CSS URLs in privacy plugin (#7651) 2024-10-30 15:22:06 +01:00
Nejc Habjan
7dc96f1e13
Added support for downloading external images in SVG for privacy plugin (#7650) 2024-10-30 13:54:31 +01:00
squidfunk
cc1508f1dc
Fixed encoding of boolean attributes in privacy plugin 2024-10-16 14:09:40 +02:00
squidfunk
e2c621f1d9
Fixed regression in privacy plugin 2024-10-15 22:52:36 +02:00
squidfunk
92089c67f1
Fixed race condition in privacy plugin 2024-10-14 14:41:35 +02:00
Pekka Klärck
829d1c8db2
Fixed social cards not using site name on homepage (#7608)
Use `config.site_name` instead of `page.title`.
2024-10-10 10:06:56 +02:00
squidfunk
22ff858174
Removed unused import 2024-09-20 09:46:19 +02:00
squidfunk
b655e07805
Fixed HTML entities not escaped in social cards 2024-09-20 09:44:29 +02:00
Sigurd Spieckermann
6b13c560f5
Fixed blog readtime calculation to ignore non-content text (#7370) 2024-07-16 15:49:13 +02:00
squidfunk
1b346eb57b
Fixed tags plugin crashing on numeric tags 2024-05-24 13:39:03 +02:00
Kamil Krzyśków
f724bb901a Add warning for dotfiles in info plugin 2024-05-02 23:16:30 +02:00
Alexander Voss
e90871f210
Fixed social plugin crashing on Windows when downloading fonts (#7085) (#7117)
* fix: social plugin fonts on Windows (squidfunk #7085)

* fix: managed to edit in material instead of src

* added resource mgmt for ByteIO, comments

* formatted comment

* Fix for Social plugin crashes when font autoloading is disabled (#7118)
2024-04-29 15:04:43 +07:00
squidfunk
ff49d74024
Fixed deprecation warning in privacy plugin 2024-04-29 08:01:57 +07:00
squidfunk
cff4a75d15
Fixed deprecation warning in tags plugin 2024-04-29 07:52:22 +07:00
squidfunk
254ee97473
Updated distribution files 2024-04-25 09:35:26 +07:00
squidfunk
6a761ed418
Improved interop of social plugin with other themes 2024-04-17 11:43:59 +07:00
squidfunk
1041766d81
Fixed time sneaking into default post format string 2024-04-02 12:02:04 +08:00
squidfunk
e71f00b4c9
Fixed backporting of social plugin font loading logic 2024-03-31 21:17:44 +08:00
squidfunk
29cf44b71c
Improved resilience of privacy plugin 2024-03-31 17:30:44 +08:00
Julien
a2cb35d4c5
Improved error handling on social plugin (#6818)
* fix(social): CairoSVG OSError handling in social plugin

Related issue: #6817

Co-authored-by: Guts <1596222+Guts@users.noreply.github.com>

* feat(docs): Add troubleshooting guide for CairoSVG crash

---------

Co-authored-by: Kamil Krzyśków <kamilzary@gmail.com>
Co-authored-by: Guts <1596222+Guts@users.noreply.github.com>
Co-authored-by: Martin Donath <martin.donath@squidfunk.com>
2024-03-31 17:00:27 +08:00
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
ad7233640f
Fixed social plugin Google Fonts integration 2024-03-31 15:23:22 +08:00
squidfunk
66d450009d
Fixed interference of social plugin and auto dark mode 2024-03-19 11:11:08 +08:00
Kamil Krzyśków
022f14c0eb Fixed UTF-8 with BOM encoding support 2024-03-17 12:04:45 +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
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
ca7e9523fd
Fixed privacy plugin not handling URL-encoded pathnames 2024-02-24 14:14:13 +07:00
squidfunk
b7fc7bad5e
Removed continue reading link when there's nothing more to read 2024-02-15 12:07:47 +07:00
squidfunk
7624e78744
Updated copyright year 2024-01-06 09:27:06 +07:00
squidfunk
175df61397
Updated distribution files 2023-12-19 10:00:42 +01:00
squidfunk
05596664a5
Updated dependencies 2023-12-18 16:08:14 +01:00
Kamil Krzyśków
55fe1ccc53
Improved Group plugin initialization for mike (#6534) 2023-12-18 11:09:29 +01:00
squidfunk
b6972b8fa9
Formatting 2023-12-15 10:41:37 +01:00
squidfunk
adad8238c6
Fixed config types for blog plugin slugify functions 2023-12-10 15:19:11 +01:00
squidfunk
0d72b5f57e
Formatting 2023-12-07 21:50:13 +01:00
squidfunk
5b70a0cfcb
Fixe time being dropped from blog post dates 2023-12-07 21:46:36 +01:00
squidfunk
aa62bcc4f6
Merge latests changes from Insiders 2023-12-07 11:46:44 +01:00
squidfunk
f855a67384
Merged features tied to 'Goat's Horn' funding goal 2023-12-07 10:48:42 +01:00
squidfunk
6be485c38f
Documentation 2023-11-26 15:22:43 +01:00