Skip to content

Commit 95ad78a

Browse files
committed
Merge branch 'master' into fix/instant-loading-bugs
2 parents 1348002 + be95f49 commit 95ad78a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+416
-204
lines changed
8.28 KB
Loading

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
node-version: ${{ env.NODE_VERSION }}
5050

5151
- name: Set up Node.js dependency cache
52-
uses: actions/cache@v3
52+
uses: actions/cache@v4
5353
id: cache
5454
with:
5555
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
@@ -77,7 +77,7 @@ jobs:
7777
node-version: ${{ env.NODE_VERSION }}
7878

7979
- name: Set up Node.js dependency cache
80-
uses: actions/cache@v3
80+
uses: actions/cache@v4
8181
id: cache
8282
with:
8383
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

.github/workflows/documentation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
requirements.txt
5959
6060
- name: Set up build cache
61-
uses: actions/cache/restore@v3
61+
uses: actions/cache/restore@v4
6262
with:
6363
key: mkdocs-material-${{ hashfiles('.cache/**') }}
6464
path: .cache
@@ -85,7 +85,7 @@ jobs:
8585
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
8686
pip install -e mkdocs-material-insiders
8787
cp mkdocs-material-insiders/mkdocs.yml mkdocs.yml
88-
echo 'extra_javascript: [${{ vars.CHAT_CLIENT_URL }}]' >> mkdocs.yml
88+
# echo 'extra_javascript: [${{ vars.CHAT_CLIENT_URL }}]' >> mkdocs.yml
8989
rm -rf material
9090
cp -r mkdocs-material-insiders/material material
9191
@@ -112,7 +112,7 @@ jobs:
112112
uses: actions/deploy-pages@v4
113113

114114
- name: Save build cache
115-
uses: actions/cache/save@v3
115+
uses: actions/cache/save@v4
116116
with:
117117
key: mkdocs-material-${{ hashfiles('.cache/**') }}
118118
path: .cache

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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@
165165
<a href="https://3dr.com/" target=_blank><img
166166
src="https://github.com/raw/squidfunk/mkdocs-material/master/.github/assets/sponsors/sponsor-3dr.png" height="58"
167167
/></a>
168+
<a href="https://spotware.com/" target=_blank><img
169+
src="https://github.com/raw/squidfunk/mkdocs-material/master/.github/assets/sponsors/sponsor-spotware.png" height="58"
170+
/></a>
168171
</p>
169172
<p>&nbsp;</p>
170173

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: 9 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]
@@ -201,6 +201,7 @@ You can cancel your sponsorship anytime.[^5]
201201
[![Bühler Group]](https://www.buhlergroup.com/){ target=_blank title="Bühler Group" }
202202
[![Transformation Flow]](https://transformationflow.io/){ target=_blank title="Transformation Flow" }
203203
[![3DR]](https://3dr.com/){ target=_blank title="3DR" }
204+
[![Spotware]](https://spotware.com/){ target=_blank title="Spotware" }
204205

205206
</div>
206207

@@ -238,6 +239,7 @@ You can cancel your sponsorship anytime.[^5]
238239
[Bühler Group]: https://github.com/raw/squidfunk/mkdocs-material/master/.github/assets/sponsors/sponsor-buhler.png
239240
[Transformation Flow]: https://github.com/raw/squidfunk/mkdocs-material/master/.github/assets/sponsors/sponsor-transformationflow.png
240241
[3DR]: https://github.com/raw/squidfunk/mkdocs-material/master/.github/assets/sponsors/sponsor-3dr.png
242+
[Spotware]: https://github.com/raw/squidfunk/mkdocs-material/master/.github/assets/sponsors/sponsor-spotware.png
241243

242244
<hr />
243245

@@ -277,25 +279,25 @@ are released for general availability.
277279
[Blog plugin: related links]: ../setup/setting-up-a-blog.md#adding-related-links
278280
[Blog plugin: custom index pages]: ../setup/setting-up-a-blog.md#custom-index-pages
279281
[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
282+
[Tags plugin: allow list]: ../plugins/tags.md#config.tags_allowed
283+
[custom sorting]: ../plugins/tags.md#config.tags_sort_by
282284
[Navigation subtitles]: ../reference/index.md#setting-the-page-subtitle
283285

284286
#### $ 20,000 – Jalapeño
285287

286288
- [x] [Optimize plugin]
287289
- [x] [Typeset plugin]
288290
- [x] [Navigation path] (Breadcrumbs)
289-
- [x] [Privacy plugin: optimization support]
291+
- [x] [Privacy plugin: advanced settings]
290292
- [x] [Privacy plugin: external links]
291293
- [x] [Instant prefetching]
292294
- [x] [Blog plugin: advanced settings]
293295
- [x] [Blog plugin: author profiles]
294296

295297
[Optimize plugin]: ../plugins/optimize.md
296298
[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
299+
[Privacy plugin: external links]: ../plugins/privacy.md#external-links
300+
[Privacy plugin: advanced settings]: ../setup/ensuring-data-privacy.md#advanced-settings
299301
[Navigation path]: ../setup/setting-up-navigation.md#navigation-path
300302
[Instant prefetching]: ../setup/setting-up-navigation.md#instant-prefetching
301303
[Blog plugin: advanced settings]: ../setup/setting-up-a-blog.md#advanced-settings
@@ -314,7 +316,7 @@ are released for general availability.
314316

315317
[Projects plugin]: ../plugins/projects.md
316318
[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
319+
[Social plugin: background images]: ../plugins/social.md#option.background_image
318320
[Code range selection]: ../reference/code-blocks.md#code-selection-button
319321
[Code annotations: custom selectors]: ../reference/code-blocks.md#custom-selectors
320322
[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/publishing-your-site.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,10 @@ other providers:
218218
- [:simple-azuredevops: Azure][Azure]
219219
- [:simple-cloudflarepages: Cloudflare Pages][Cloudflare Pages]
220220
- [:simple-digitalocean: DigitalOcean][DigitalOcean]
221+
- [:material-airballoon-outline: Fly.io][Flyio]
221222
- [:simple-netlify: Netlify][Netlify]
222223
- [:simple-vercel: Vercel][Vercel]
224+
- [:simple-codeberg: Codeberg Pages][Codeberg Pages]
223225

224226
</div>
225227

@@ -230,5 +232,7 @@ other providers:
230232
[Azure]: https://bawmedical.co.uk/t/publishing-a-material-for-mkdocs-site-to-azure-with-automatic-branch-pr-preview-deployments/763
231233
[Cloudflare Pages]: https://www.starfallprojects.co.uk/projects/deploy-host-docs/deploy-mkdocs-material-cloudflare/
232234
[DigitalOcean]: https://www.starfallprojects.co.uk/projects/deploy-host-docs/deploy-mkdocs-material-digitalocean-app-platform/
235+
[Flyio]: https://documentation.breadnet.co.uk/cloud/fly/mkdocs-on-fly/
233236
[Netlify]: https://www.starfallprojects.co.uk/projects/deploy-host-docs/deploy-mkdocs-material-netlify/
234237
[Vercel]: https://www.starfallprojects.co.uk/projects/deploy-host-docs/deploy-mkdocs-material-vercel/
238+
[Codeberg Pages]: https://andre601.ch/blog/2023/11-05-using-codeberg-pages/

0 commit comments

Comments
 (0)