Skip to content

Commit

Permalink
Merge branch 'master' into fix/instant-loading-bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jan 24, 2024
2 parents 1348002 + be95f49 commit 95ad78a
Show file tree
Hide file tree
Showing 55 changed files with 416 additions and 204 deletions.
Binary file added .github/assets/sponsors/sponsor-spotware.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -49,7 +49,7 @@ jobs:
node-version: ${{ env.NODE_VERSION }}

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

- name: Set up Node.js dependency cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yml
Expand Up @@ -58,7 +58,7 @@ jobs:
requirements.txt
- name: Set up build cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
key: mkdocs-material-${{ hashfiles('.cache/**') }}
path: .cache
Expand All @@ -85,7 +85,7 @@ jobs:
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
pip install -e mkdocs-material-insiders
cp mkdocs-material-insiders/mkdocs.yml mkdocs.yml
echo 'extra_javascript: [${{ vars.CHAT_CLIENT_URL }}]' >> mkdocs.yml
# echo 'extra_javascript: [${{ vars.CHAT_CLIENT_URL }}]' >> mkdocs.yml
rm -rf material
cp -r mkdocs-material-insiders/material material
Expand All @@ -112,7 +112,7 @@ jobs:
uses: actions/deploy-pages@v4

- name: Save build cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
key: mkdocs-material-${{ hashfiles('.cache/**') }}
path: .cache
4 changes: 4 additions & 0 deletions CHANGELOG
@@ -1,3 +1,7 @@
mkdocs-material-9.5.4+insiders-4.50.0 (2024-01-19)

* Added configurable logging capabilities to privacy plugin

mkdocs-material-9.5.4 (2024-01-15)

* Fixed #6645: Local storage with invalid value can break site
Expand Down
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -165,6 +165,9 @@
<a href="https://3dr.com/" target=_blank><img
src="https://raw.githubusercontent.com/squidfunk/mkdocs-material/master/.github/assets/sponsors/sponsor-3dr.png" height="58"
/></a>
<a href="https://spotware.com/" target=_blank><img
src="https://raw.githubusercontent.com/squidfunk/mkdocs-material/master/.github/assets/sponsors/sponsor-spotware.png" height="58"
/></a>
</p>
<p>&nbsp;</p>

Expand Down
4 changes: 4 additions & 0 deletions docs/insiders/changelog/index.md
Expand Up @@ -2,6 +2,10 @@

## Material for MkDocs Insiders

### 4.50.0 <small>January 19, 2024</small> { id="4.50.0" }

- Added configurable logging capabilities to privacy plugin

### 4.49.2 <small>January 9, 2024</small> { id="4.49.2" }

- Fixed missing attribute lists extension for tags plugin
Expand Down
16 changes: 9 additions & 7 deletions docs/insiders/index.md
Expand Up @@ -105,7 +105,7 @@ which are currently exclusively available to sponsors:
- [x] [Social plugin: background images]
- [x] [Code range selection]
- [x] [Code annotations: custom selectors]
- [x] [Privacy plugin: optimization support]
- [x] [Privacy plugin: advanced settings]
- [x] [Optimize plugin]
- [x] [Navigation path] (Breadcrumbs)
- [x] [Typeset plugin]
Expand Down Expand Up @@ -201,6 +201,7 @@ You can cancel your sponsorship anytime.[^5]
[![Bühler Group]](https://www.buhlergroup.com/){ target=_blank title="Bühler Group" }
[![Transformation Flow]](https://transformationflow.io/){ target=_blank title="Transformation Flow" }
[![3DR]](https://3dr.com/){ target=_blank title="3DR" }
[![Spotware]](https://spotware.com/){ target=_blank title="Spotware" }

</div>

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

<hr />

Expand Down Expand Up @@ -277,25 +279,25 @@ are released for general availability.
[Blog plugin: related links]: ../setup/setting-up-a-blog.md#adding-related-links
[Blog plugin: custom index pages]: ../setup/setting-up-a-blog.md#custom-index-pages
[Tags plugin: configurable listings]: ../setup/setting-up-tags.md#configurable-listings
[Tags plugin: allow list]: ../setup/setting-up-tags.md#+tags.tags_allowed
[custom sorting]: ../setup/setting-up-tags.md#+tags.tags_compare
[Tags plugin: allow list]: ../plugins/tags.md#config.tags_allowed
[custom sorting]: ../plugins/tags.md#config.tags_sort_by
[Navigation subtitles]: ../reference/index.md#setting-the-page-subtitle

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

- [x] [Optimize plugin]
- [x] [Typeset plugin]
- [x] [Navigation path] (Breadcrumbs)
- [x] [Privacy plugin: optimization support]
- [x] [Privacy plugin: advanced settings]
- [x] [Privacy plugin: external links]
- [x] [Instant prefetching]
- [x] [Blog plugin: advanced settings]
- [x] [Blog plugin: author profiles]

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

[Projects plugin]: ../plugins/projects.md
[Social plugin: custom layouts]: ../setup/setting-up-social-cards.md#customization
[Social plugin: background images]: ../setup/setting-up-social-cards.md#+social.cards_layout_params.background_image
[Social plugin: background images]: ../plugins/social.md#option.background_image
[Code range selection]: ../reference/code-blocks.md#code-selection-button
[Code annotations: custom selectors]: ../reference/code-blocks.md#custom-selectors
[Stay on page when switching languages]: ../setup/changing-the-language.md#stay-on-page
Expand Down
78 changes: 78 additions & 0 deletions docs/plugins/privacy.md
Expand Up @@ -213,6 +213,84 @@ with each other.

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

### Logging

The following settings are available for logging:

---

#### <!-- md:setting config.log -->

<!-- md:sponsors -->
<!-- md:version insiders-4.50.0 -->
<!-- md:default `true` -->

Use this setting to control whether the plugin should display log messages when
building your site. While not being recommended, you can disable logging with:

``` yaml
plugins:
- privacy:
log: false
```

---

#### <!-- md:setting config.log_level -->

<!-- md:sponsors -->
<!-- md:version insiders-4.50.0 -->
<!-- md:default `info` -->

Use this setting to control the log level that the plugin should employ when
encountering errors, which requires that the [`log`][config.log] setting is
enabled. The following log levels are available:

=== "`error`"

``` yaml
plugins:
- privacy:
log_level: error
```

Only errors are reported.

=== "`warn`"

``` yaml
plugins:
- privacy:
log_level: warn
```

Errors and warnings are reported, terminating the build in
[`strict`][mkdocs.strict] mode. This includes warnings when symlinks cannot
be created due to a lack of permissions on Windows systems (#6550).

=== "`info`"

``` yaml
plugins:
- privacy:
log_level: info
```

Errors, warnings and informational messages are reported, including which
assets were successfully downloaded by the plugin.

=== "`debug`"

``` yaml
plugins:
- privacy:
log_level: debug
```

All messages are reported, including debug messages, if and only if MkDocs
was started with the `--verbose` flag. Note that this will print a lot of
messages and is only useful for debugging.

### External assets

The following settings are available for external assets:
Expand Down
4 changes: 4 additions & 0 deletions docs/publishing-your-site.md
Expand Up @@ -218,8 +218,10 @@ other providers:
- [:simple-azuredevops: Azure][Azure]
- [:simple-cloudflarepages: Cloudflare Pages][Cloudflare Pages]
- [:simple-digitalocean: DigitalOcean][DigitalOcean]
- [:material-airballoon-outline: Fly.io][Flyio]
- [:simple-netlify: Netlify][Netlify]
- [:simple-vercel: Vercel][Vercel]
- [:simple-codeberg: Codeberg Pages][Codeberg Pages]

</div>

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

0 comments on commit 95ad78a

Please sign in to comment.