Skip to content

Commit a154c64

Browse files
Merge branch 'master' into docs/math
2 parents c1948b2 + 263a85d commit a154c64

File tree

109 files changed

+3521
-1507
lines changed

Some content is hidden

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

109 files changed

+3521
-1507
lines changed

.devcontainer/devcontainer.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Material for MkDocs - VS Code dev container",
3+
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
4+
"features": {
5+
"ghcr.io/devcontainers/features/python:1": {
6+
"installTools": true,
7+
"version": "3.11"
8+
}
9+
},
10+
"postCreateCommand": "pip install -e . && pip install mkdocs-minify-plugin mkdocs-redirects && npm install && npm run build"
11+
}

.github/ISSUE_TEMPLATE/04-add-a-translation.yml

+13
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ body:
2626
"action.skip": "Skip to content",
2727
"action.view": "View source of this page",
2828
"announce.dismiss": "Don't show this again",
29+
"blog.archive": "Archive",
30+
"blog.categories": "Categories",
31+
"blog.categories.in": "in",
32+
"blog.continue": "Continue reading",
33+
"blog.draft": "Draft",
34+
"blog.index": "Back to index",
35+
"blog.meta": "Metadata",
36+
"blog.references": "Related links",
2937
"clipboard.copy": "Copy to clipboard",
3038
"clipboard.copied": "Copied to clipboard",
3139
"consent.accept": "Accept",
@@ -38,6 +46,10 @@ body:
3846
"meta.comments": "Comments",
3947
"meta.source": "Source",
4048
"nav": "Navigation",
49+
"readtime.one": "1 min read",
50+
"readtime.other": "# min read",
51+
"rss.created": "RSS feed",
52+
"rss.updated": "RSS feed of updated content",
4153
"search": "Search",
4254
"search.placeholder": "Search",
4355
"search.share": "Share",
@@ -53,6 +65,7 @@ body:
5365
"select.language": "Select language",
5466
"select.version": "Select version",
5567
"source": "Go to repository",
68+
"source.file.contributors": "Contributors",
5669
"source.file.date.created": "Created",
5770
"source.file.date.updated": "Last update",
5871
"tabs": "Tabs",

.github/workflows/build.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,11 @@ jobs:
144144

145145
- name: Check Docker image
146146
working-directory: /tmp
147+
env:
148+
REPO_FULL_NAME: '${{ github.event.repository.full_name }}'
147149
run: |
148-
docker run --rm -i -v ${PWD}:/docs ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }} new .
149-
docker run --rm -i -v ${PWD}:/docs ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }} build
150+
docker run --rm -i -v ${PWD}:/docs ${REPO_FULL_NAME,,}:${{ steps.meta.outputs.version }} new .
151+
docker run --rm -i -v ${PWD}:/docs ${REPO_FULL_NAME,,}:${{ steps.meta.outputs.version }} build
150152
151153
- name: Set platforms
152154
if: github.event_name == 'release'

.github/workflows/documentation.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,17 @@ jobs:
4646
with:
4747
python-version: ${{ env.PYTHON_VERSION }}
4848

49+
- name: Set the date environmental variable
50+
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
51+
4952
- name: Set up build cache
5053
uses: actions/cache@v3
5154
id: cache
5255
with:
53-
key: ${{ runner.os }}-${{ hashFiles('.cache/**') }}
56+
key: mkdocs-material-${{ env.cache_id }}
5457
path: .cache
58+
restore-keys: |
59+
mkdocs-material-
5560
5661
- name: Install dependencies
5762
run: sudo apt-get install pngquant

.vscode/settings.json

-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,5 @@
1717
"tag:yaml.org,2002:python/name:materialx.emoji.to_svg",
1818
"tag:yaml.org,2002:python/name:materialx.emoji.twemoji",
1919
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
20-
],
21-
"cSpell.words": [
22-
"mkdocs"
2320
]
2421
}

CHANGELOG

+85-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,96 @@
1+
mkdocs-material-9.1.14+insiders-4.35.1 (2023-05-20)
2+
3+
* Fixed internal handling of errors in social plugin
4+
5+
mkdocs-material-9.1.14+insiders-4.35.0 (2023-05-20)
6+
7+
* Improve editing experience and stability of social plugin
8+
* Added support for custom layout syntax validation in social plugin
9+
* Added support for layer origin for easier placement in social plugin
10+
* Added support for in- and exclusion patterns in social plugin
11+
* Catch and print syntax errors in custom layouts
12+
13+
mkdocs-material-9.1.14 (2023-05-20)
14+
15+
* Updated Armenian and Greek translations
16+
17+
mkdocs-material-9.1.13+insiders-4.34.1 (2023-05-16)
18+
19+
* Disable social plugin debug mode by default on mkdocs build
20+
* Added warning in social plugin debug mode when font style couldn't be found
21+
* Set default concurrency of built-in multi-threaded plugins to CPUs - 1
22+
* Fixed #5521: Social plugin triggers race condition when downloading fonts
23+
* Fixed #5515: Social plugin crashes when concurrency is set to 1
24+
25+
mkdocs-material-9.1.13 (2023-05-16)
26+
27+
* Fixed #5517: Social plugin crashes for some fonts (e.g. Open Sans)
28+
29+
mkdocs-material-9.1.12+insiders-4.34.0 (2023-05-14)
30+
31+
* Added support for new overflow mode to auto-fit text in social plugin
32+
* Reduced subtle rendering bugs in (code) annotations due to subpixel rounding
33+
* Improved print styles for (code) annotation lists
34+
* Improved performance of social plugin, now 3x as fast
35+
* Improved interop of typeset plugin with MkDocstrings
36+
* Fixed logo location for variants of default template in social plugin
37+
* Fixed #5446: Built-in typeset plugin picks up headings in code blocks
38+
39+
mkdocs-material-9.1.12+insiders-4.33.2 (2023-05-12)
40+
41+
* Fixed #5508: Social plugin crashes trying to copy cards on Docker/Windows
42+
* Fixed #5507: Social plugin crashes on serve when layouts folder doesn't exist
43+
* Fixed #5505: Social plugin trying to resolve logo in wrong location
44+
* Fixed #5496: Annotations with nested lists incorrectly mounted
45+
* Fixed #5493: Social plugin crashes on Python 3.8
46+
47+
mkdocs-material-9.1.12 (2023-05-12)
48+
49+
* Updated Bengali (Bangla) translations
50+
* Fixed #5503: Docker image publish errors on uppercase characters
51+
* Fixed #5407: Auto-pause media when in hidden content tabs
52+
53+
mkdocs-material-9.1.11+insiders-4.33.1 (2023-05-09)
54+
55+
* Added support for SVG background images in social plugin
56+
57+
mkdocs-material-9.1.11 (2023-05-08)
58+
59+
* Fixed #5487: Social plugin crashes without options (9.1.10 regression)
60+
61+
mkdocs-material-9.1.10+insiders-4.33.0 (2023-05-08)
62+
63+
* Added support for custom layouts for social plugin
64+
* Added support for background images for social cards
65+
66+
mkdocs-material-9.1.10 (2023-05-08)
67+
68+
* Added cards_layout_options setting for social cards
69+
* Deprecated cards_color and cards_font setting for social cards
70+
71+
mkdocs-material-9.1.9 (2023-05-02)
72+
73+
* Added Telugu, Kannada and Sanskrit translations
74+
* Fixed #5428: Fixed margins for light/dark mode images in figures
75+
* Fixed #5420: Social plugin crashing for some specific Google Fonts
76+
* Fixed #5160: Instant loading makes code annotations jump (9.1.1 regression)
77+
* Fixed #4920: Social plugin not loading logo from custom icon set
78+
* Fixed social plugin crashing when only code font is specified
79+
180
mkdocs-material-9.1.8 (2023-04-24)
281

3-
- Fixed #5417: Theme breaks when palette is not defined (9.1.7 regression)
82+
* Fixed #5417: Theme breaks when palette is not defined (9.1.7 regression)
483

584
mkdocs-material-9.1.7+insiders-4.32.6 (2023-04-22)
685

7-
- Fixed #5336: Interplay of blog plugin with git-revision-date-localized
86+
* Fixed #5336: Interplay of blog plugin with git-revision-date-localized
887

988
mkdocs-material-9.1.7 (2023-04-22)
1089

11-
- Updated Persian (Farsi) and Turkish translations
12-
- Fixed #5401: Added missing flag to disable built-in tags plugin
13-
- Fixed #5206: Ensure defaults are set for primary and accent colors
14-
- Fixed unnecessary inclusion of palette CSS when unused
90+
* Updated Persian (Farsi) and Turkish translations
91+
* Fixed #5401: Added missing flag to disable built-in tags plugin
92+
* Fixed #5206: Ensure defaults are set for primary and accent colors
93+
* Fixed unnecessary inclusion of palette CSS when unused
1594

1695
mkdocs-material-9.1.6+insiders-4.32.5 (2023-04-07)
1796

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ it is:
4242

4343
### Missing translations?
4444

45-
Material for MkDocs supports 50+ languages with the help of community
45+
Material for MkDocs supports 60+ languages with the help of community
4646
contributions. When new features are added, sometimes, new translations are
4747
necessary as well. It's impossible for the maintainers of the project to update
48-
all translations (we just don't speak 50+ languages), so we have to rely on
48+
all translations (we just don't speak 60+ languages), so we have to rely on
4949
our contributors to update translations incrementally. This process is pretty
5050
simple, so if you find a translation missing in your language, follow these
5151
guidelines:

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<p align="center">
4040
Write your documentation in Markdown and create a professional static site for
4141
your Open Source or commercial project in minutes – searchable, customizable,
42-
more than 50 languages, for all devices.
42+
more than 60 languages, for all devices.
4343
</p>
4444

4545
<p align="center">
@@ -257,6 +257,7 @@ For detailed installation instructions, configuration options, and a demo, visit
257257
[Trivy](https://github.com/aquasecurity/trivy)
258258
[Vapor](https://docs.vapor.codes/),
259259
[ZeroNet](https://zeronet.io/docs/),
260+
[WebKit](https://docs.webkit.org/),
260261
[WTF](https://wtfutil.com/)
261262
262263
## License
28.4 KB
Loading
39.9 KB
Loading
32.4 KB
Loading
Loading
5.79 KB
Loading
3.87 KB
Loading
6.85 KB
Loading
7.38 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
32.8 KB
Loading
-13.8 KB
Loading

docs/changelog/index.md

+32
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,38 @@
22

33
## Material for MkDocs
44

5+
### 9.1.14 <small>May 20, 2023</small> { id="9.1.14" }
6+
7+
- Updated Armenian and Greek translations
8+
9+
### 9.1.13 <small>May 16, 2023</small> { id="9.1.13" }
10+
11+
- Fixed #5517: Social plugin crashes for some fonts (e.g. Open Sans)
12+
13+
### 9.1.12 <small>May 12, 2023</small> { id="9.1.12" }
14+
15+
- Updated Bengali (Bangla) translations
16+
- Fixed #5503: Docker image publish errors on uppercase characters
17+
- Fixed #5407: Auto-pause media when in hidden content tabs
18+
19+
### 9.1.11 <small>May 8, 2023</small> { id="9.1.11" }
20+
21+
- Fixed #5487: Social plugin crashes without options (9.1.10 regression)
22+
23+
### 9.1.10 <small>May 8, 2023</small> { id="9.1.10" }
24+
25+
- Added `cards_layout_options` setting for social cards
26+
- Deprecated `cards_color` and `cards_font` setting for social cards
27+
28+
### 9.1.9 <small>May 2, 2023</small> { id="9.1.9" }
29+
30+
- Added Telugu, Kannada and Sanskrit translations
31+
- Fixed #5428: Fixed margins for light/dark mode images in figures
32+
- Fixed #5420: Social plugin crashing for some specific Google Fonts
33+
- Fixed #5160: Instant loading makes code annotations jump (9.1.1 regression)
34+
- Fixed #4920: Social plugin not loading logo from custom icon set
35+
- Fixed social plugin crashing when only code font is specified
36+
537
### 9.1.8 <small>April 24, 2023</small> { id="9.1.8" }
638

739
- Fixed #5417: Theme breaks when `palette` is not defined (9.1.7 regression)

docs/getting-started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ install those packages separately.
6161

6262
:fontawesome-brands-youtube:{ style="color: #EE0F0F" }
6363
__[How to set up Material for MkDocs]__ by @james-willett – :octicons-clock-24:
64-
15m – Learn how to create and host a documentation site using Material for Docs
65-
on GitHub Pages in a step-by-step guide.
64+
15m – Learn how to create and host a documentation site using Material for
65+
MkDocs on GitHub Pages in a step-by-step guide.
6666

6767
[How to set up Material for MkDocs]: https://www.youtube.com/watch?v=Q-YA_dA8C20
6868

docs/insiders/changelog.md

+47
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,53 @@
22

33
## Material for MkDocs Insiders
44

5+
### 4.35.1 <small>May 20, 2023</small> { id="4.35.1" }
6+
7+
- Fixed internal handling of errors in social plugin
8+
9+
### 4.35.0 <small>May 20, 2023</small> { id="4.35.0" }
10+
11+
- Improve editing experience and stability of social plugin
12+
- Added support for custom layout syntax validation in social plugin
13+
- Added support for layer origin for easier placement in social plugin
14+
- Added support for in- and exclusion patterns in social plugin
15+
- Catch and print syntax errors in custom layouts
16+
17+
### 4.34.1 <small>May 16, 2023</small> { id="4.34.1" }
18+
19+
- Disable social plugin debug mode by default on mkdocs build
20+
- Added warning in social plugin debug mode when font style couldn't be found
21+
- Set default concurrency of built-in multi-threaded plugins to CPUs - 1
22+
- Fixed #5521: Social plugin triggers race condition when downloading fonts
23+
- Fixed #5515: Social plugin crashes when concurrency is set to 1
24+
25+
### 4.34.0 <small>May 14, 2023</small> { id="4.34.0" }
26+
27+
- Added support for new overflow mode to auto-fit text in social plugin
28+
- Reduced subtle rendering bugs in (code) annotations due to subpixel rounding
29+
- Improved print styles for (code) annotation lists
30+
- Improved performance of social plugin, now 3x as fast
31+
- Improved interop of typeset plugin with MkDocstrings
32+
- Fixed logo location for variants of default template in social plugin
33+
- Fixed #5446: Built-in typeset plugin picks up headings in code blocks
34+
35+
### 4.33.2 <small>May 12, 2023</small> { id="4.33.2" }
36+
37+
- Fixed #5508: Social plugin crashes trying to copy cards on Docker/Windows
38+
- Fixed #5507: Social plugin crashes on serve when layouts folder doesn't exist
39+
- Fixed #5505: Social plugin trying to resolve logo in wrong location
40+
- Fixed #5496: Annotations with nested lists incorrectly mounted
41+
- Fixed #5493: Social plugin crashes on Python 3.8
42+
43+
### 4.33.1 <small>May 9, 2023</small> { id="4.33.1" }
44+
45+
- Added support for SVG background images in social plugin
46+
47+
### 4.33.0 <small>May 8, 2023</small> { id="4.33.0" }
48+
49+
- Added support for custom layouts for social plugin
50+
- Added support for background images for social cards
51+
552
### 4.32.6 <small>April 22, 2023</small> { id="4.32.6" }
653

754
- Fixed #5336: Interplay of blog plugin with git-revision-date-localized

docs/insiders/index.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,16 @@ a handful of them, [thanks to our awesome sponsors]!
8888
## What's in it for me?
8989

9090
The moment you [become a sponsor][how to become a sponsor], you'll get __immediate
91-
access to 25 additional features__ that you can start using right away, and
91+
access to 27 additional features__ that you can start using right away, and
9292
which are currently exclusively available to sponsors:
9393

9494
<div class="mdx-columns" markdown>
9595

96+
- [x] [Social plugin: custom layouts] :material-alert-decagram:{ .mdx-pulse title="Added on May 8, 2023" }
97+
- [x] [Social plugin: background images] :material-alert-decagram:{ .mdx-pulse title="Added on May 8, 2023" }
9698
- [x] [Code range selection] :material-alert-decagram:{ .mdx-pulse title="Added on February 19, 2023" }
97-
- [x] [Code annotations: custom selectors] :material-alert-decagram:{ .mdx-pulse title="Added on February 19, 2023" }
98-
- [x] [Privacy plugin: optimization support] :material-alert-decagram:{ .mdx-pulse title="Added on February 6, 2023" }
99+
- [x] [Code annotations: custom selectors]
100+
- [x] [Privacy plugin: optimization support]
99101
- [x] [Optimize plugin]
100102
- [x] [Navigation path] (Breadcrumbs)
101103
- [x] [Typeset plugin]
@@ -256,10 +258,6 @@ features prefixed with a checkmark symbol, denoting whether a feature is
256258
:octicons-check-circle-fill-24:{ style="color: var(--md-default-fg-color--lightest)" } planned, but not yet implemented. When the funding goal is hit, the features
257259
are released for general availability.
258260

259-
> [In February, we lost $1,3k in monthly funding because GitHub removed PayPal support][Twitter]
260-
261-
[Twitter]: https://twitter.com/squidfunk/status/1643539228574269443
262-
263261
#### $ 12,000 – Piri Piri
264262

265263
- [x] [Blog plugin]
@@ -320,17 +318,21 @@ are released for general availability.
320318

321319
[Optimize plugin]: ../setup/building-an-optimized-site.md#built-in-optimize-plugin
322320
[Typeset plugin]: ../reference/index.md#built-in-typeset-plugin
323-
[Privacy plugin: external links]: ../setup/ensuring-data-privacy.md#+privacy.external_links
324-
[Privacy plugin: optimization support]: ../setup/ensuring-data-privacy.md#+privacy.external_assets_include
321+
[Privacy plugin: external links]: ../setup/ensuring-data-privacy.md#+privacy.links
322+
[Privacy plugin: optimization support]: ../setup/ensuring-data-privacy.md#+privacy.assets_include
325323
[Navigation path]: ../setup/setting-up-navigation.md#navigation-path
326324
[Instant previews]: https://twitter.com/squidfunk/status/1466794654213492743
327325

328326
#### $ 24,000 – Blockpaprika
329327

328+
- [x] [Social plugin: custom layouts]
329+
- [x] [Social plugin: background images]
330330
- [x] [Code range selection]
331331
- [x] [Code annotations: custom selectors]
332332
- [ ] Code line wrap button
333333

334+
[Social plugin: custom layouts]: ../setup/setting-up-social-cards.md#customization
335+
[Social plugin: background images]: ../setup/setting-up-social-cards.md#+social.cards_layout_params.background_image
334336
[Code range selection]: ../reference/code-blocks.md#code-selection-button
335337
[Code annotations: custom selectors]: ../reference/code-blocks.md#custom-selectors
336338

0 commit comments

Comments
 (0)