Skip to content

Commit e8504fd

Browse files
committed
Updated Insiders changelog and documentation
1 parent 4498245 commit e8504fd

File tree

7 files changed

+129
-9
lines changed

7 files changed

+129
-9
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
mkdocs-material-9.5.4+insiders-4.50.0 (2024-01-19)
2+
3+
* Added configurable logging capabilities to privacy plugin
4+
15
mkdocs-material-9.5.4 (2024-01-15)
26

37
* Fixed #6645: Local storage with invalid value can break site

docs/insiders/changelog/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Material for MkDocs Insiders
44

5+
### 4.50.0 <small>January 19, 2024</small> { id="4.50.0" }
6+
7+
- Added configurable logging capabilities to privacy plugin
8+
59
### 4.49.2 <small>January 9, 2024</small> { id="4.49.2" }
610

711
- Fixed missing attribute lists extension for tags plugin

docs/insiders/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ which are currently exclusively available to sponsors:
105105
- [x] [Social plugin: background images]
106106
- [x] [Code range selection]
107107
- [x] [Code annotations: custom selectors]
108-
- [x] [Privacy plugin: optimization support]
108+
- [x] [Privacy plugin: advanced settings]
109109
- [x] [Optimize plugin]
110110
- [x] [Navigation path] (Breadcrumbs)
111111
- [x] [Typeset plugin]
@@ -277,25 +277,25 @@ are released for general availability.
277277
[Blog plugin: related links]: ../setup/setting-up-a-blog.md#adding-related-links
278278
[Blog plugin: custom index pages]: ../setup/setting-up-a-blog.md#custom-index-pages
279279
[Tags plugin: configurable listings]: ../setup/setting-up-tags.md#configurable-listings
280-
[Tags plugin: allow list]: ../setup/setting-up-tags.md#+tags.tags_allowed
281-
[custom sorting]: ../setup/setting-up-tags.md#+tags.tags_compare
280+
[Tags plugin: allow list]: ../plugins/tags.md#config.tags_allowed
281+
[custom sorting]: ../plugins/tags.md#config.tags_sort_by
282282
[Navigation subtitles]: ../reference/index.md#setting-the-page-subtitle
283283

284284
#### $ 20,000 – Jalapeño
285285

286286
- [x] [Optimize plugin]
287287
- [x] [Typeset plugin]
288288
- [x] [Navigation path] (Breadcrumbs)
289-
- [x] [Privacy plugin: optimization support]
289+
- [x] [Privacy plugin: advanced settings]
290290
- [x] [Privacy plugin: external links]
291291
- [x] [Instant prefetching]
292292
- [x] [Blog plugin: advanced settings]
293293
- [x] [Blog plugin: author profiles]
294294

295295
[Optimize plugin]: ../plugins/optimize.md
296296
[Typeset plugin]: ../plugins/typeset.md
297-
[Privacy plugin: external links]: ../setup/ensuring-data-privacy.md#+privacy.links
298-
[Privacy plugin: optimization support]: ../setup/ensuring-data-privacy.md#+privacy.assets_include
297+
[Privacy plugin: external links]: ../plugins/privacy.md#external-links
298+
[Privacy plugin: advanced settings]: ../setup/ensuring-data-privacy.md#advanced-settings
299299
[Navigation path]: ../setup/setting-up-navigation.md#navigation-path
300300
[Instant prefetching]: ../setup/setting-up-navigation.md#instant-prefetching
301301
[Blog plugin: advanced settings]: ../setup/setting-up-a-blog.md#advanced-settings
@@ -314,7 +314,7 @@ are released for general availability.
314314

315315
[Projects plugin]: ../plugins/projects.md
316316
[Social plugin: custom layouts]: ../setup/setting-up-social-cards.md#customization
317-
[Social plugin: background images]: ../setup/setting-up-social-cards.md#+social.cards_layout_params.background_image
317+
[Social plugin: background images]: ../plugins/social.md#option.background_image
318318
[Code range selection]: ../reference/code-blocks.md#code-selection-button
319319
[Code annotations: custom selectors]: ../reference/code-blocks.md#custom-selectors
320320
[Stay on page when switching languages]: ../setup/changing-the-language.md#stay-on-page

docs/plugins/privacy.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,84 @@ with each other.
213213

214214
[multiple instances]: index.md#multiple-instances
215215

216+
### Logging
217+
218+
The following settings are available for logging:
219+
220+
---
221+
222+
#### <!-- md:setting config.log -->
223+
224+
<!-- md:sponsors -->
225+
<!-- md:version insiders-4.50.0 -->
226+
<!-- md:default `true` -->
227+
228+
Use this setting to control whether the plugin should display log messages when
229+
building your site. While not being recommended, you can disable logging with:
230+
231+
``` yaml
232+
plugins:
233+
- privacy:
234+
log: false
235+
```
236+
237+
---
238+
239+
#### <!-- md:setting config.log_level -->
240+
241+
<!-- md:sponsors -->
242+
<!-- md:version insiders-4.50.0 -->
243+
<!-- md:default `info` -->
244+
245+
Use this setting to control the log level that the plugin should employ when
246+
encountering errors, which requires that the [`log`][config.log] setting is
247+
enabled. The following log levels are available:
248+
249+
=== "`error`"
250+
251+
``` yaml
252+
plugins:
253+
- privacy:
254+
log_level: error
255+
```
256+
257+
Only errors are reported.
258+
259+
=== "`warn`"
260+
261+
``` yaml
262+
plugins:
263+
- privacy:
264+
log_level: warn
265+
```
266+
267+
Errors and warnings are reported, terminating the build in
268+
[`strict`][mkdocs.strict] mode. This includes warnings when symlinks cannot
269+
be created due to a lack of permissions on Windows systems (#6550).
270+
271+
=== "`info`"
272+
273+
``` yaml
274+
plugins:
275+
- privacy:
276+
log_level: info
277+
```
278+
279+
Errors, warnings and informational messages are reported, including which
280+
assets were successfully downloaded by the plugin.
281+
282+
=== "`debug`"
283+
284+
``` yaml
285+
plugins:
286+
- privacy:
287+
log_level: debug
288+
```
289+
290+
All messages are reported, including debug messages, if and only if MkDocs
291+
was started with the `--verbose` flag. Note that this will print a lot of
292+
messages and is only useful for debugging.
293+
216294
### External assets
217295

218296
The following settings are available for external assets:

docs/schema/plugins/privacy.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@
3636
"type": "string",
3737
"default": ".cache/plugins/privacy"
3838
},
39+
"log": {
40+
"title": "Enable logging",
41+
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.log",
42+
"type": "boolean",
43+
"default": true
44+
},
45+
"log_level": {
46+
"title": "Log level",
47+
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.log_level",
48+
"enum": [
49+
"error",
50+
"warn",
51+
"info",
52+
"debug"
53+
],
54+
"default": "info"
55+
},
3956
"assets": {
4057
"title": "Process external assets",
4158
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/plugins/privacy/#config.assets",

docs/schema/plugins/projects.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"info",
5252
"debug"
5353
],
54-
"default": "warn"
54+
"default": "info"
5555
},
5656
"projects": {
5757
"title": "Enable projects",

docs/setup/ensuring-data-privacy.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ For a list of all settings, please consult the [plugin documentation].
206206
[example]: #example
207207
[built-in optimize plugin]: ../plugins/optimize.md
208208

209-
210209
??? example "Expand to inspect example"
211210

212211
For the official documentation, the [built-in privacy plugin] downloads the
@@ -280,6 +279,24 @@ For a list of all settings, please consult the [plugin documentation].
280279
[built-in privacy plugin]: ../plugins/privacy.md
281280
[preconnect]: https://developer.mozilla.org/en-US/docs/Web/Performance/dns-prefetch
282281

282+
#### Advanced settings
283+
284+
<!-- md:sponsors -->
285+
<!-- md:version insiders-4.50.0 -->
286+
287+
The following advanced settings are currently reserved to our [sponsors]
288+
[Insiders]. They are entirely optional, and don't affect the functionality of
289+
the blog, but can be helpful for customizations:
290+
291+
- [`log`][config.log]
292+
- [`log_level`][config.log_level]
293+
294+
We'll add more settings here, as we discover new use cases.
295+
296+
[Insiders]: ../insiders/index.md
297+
[config.log]: ../plugins/privacy.md#config.log
298+
[config.log_level]: ../plugins/privacy.md#config.log_level
299+
283300
## Customization
284301

285302
### Custom cookies

0 commit comments

Comments
 (0)