1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-25 05:44:54 +01:00
Commit Graph

169 Commits

Author SHA1 Message Date
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
squidfunk
28ebcbfb59
Added support for linking authors in blog posts
Co-authored-by: alexvoss <4134224+alexvoss@users.noreply.github.com>
2023-11-26 14:29:38 +01:00
squidfunk
c2da2d8279
Fixed blog broken pagination links to previous pages 2023-11-26 12:46:32 +01:00
squidfunk
058b32f2d3
Fixed non-deterministic order of categories in blog plugin 2023-11-24 09:42:57 +01:00
squidfunk
d43626a838
Switched blog plugin to generate Unicode-aware slugs 2023-11-24 09:06:36 +01:00
squidfunk
ae056297bf
Fixed crash of blog plugin when pagination is disabled 2023-11-23 11:53:43 +01:00
squidfunk
ad83798bef
Fixed search plugin crashing when enabling theme while serving 2023-11-19 18:35:58 +01:00
squidfunk
1095a4e523
Updated distribution files 2023-11-17 11:20:53 +01:00
squidfunk
88470b38cd
Added monochrome logo to icons 2023-11-14 09:37:59 +01:00
squidfunk
9c73460e2c
Fixed blog plugin crashing for pt-BR locale 2023-11-14 09:33:48 +01:00
squidfunk
4c192d3ab7
Fixed group plugin compatibility with Python < 3.10 2023-10-10 08:44:55 +02:00