Skip to content

Commit f16cba1

Browse files
committed
Prepare 7.2.1 release
1 parent abb95a3 commit f16cba1

File tree

15 files changed

+115
-65
lines changed

15 files changed

+115
-65
lines changed

Diff for: CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
mkdocs-material-7.2.1 (2021-07-25)
2+
3+
* Fixed #2862: Back-to-top button overlays active search bar
4+
15
mkdocs-material-7.2.0 (2021-07-21)
26

37
* Added support for search suggestions to save keystrokes

Diff for: docs/assets/screenshots/social-cards.png

46.2 KB
Loading

Diff for: docs/creating-your-site.md

+21-19
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,13 @@ and much more:
100100
- [Setting up navigation][9]
101101
- [Setting up site search][10]
102102
- [Setting up site analytics][11]
103-
- [Setting up tags][12]
104-
- [Setting up versioning][13]
105-
- [Setting up the header][14]
106-
- [Setting up the footer][15]
107-
- [Adding a git repository][16]
108-
- [Adding a comment system][17]
103+
- [Setting up social cards][12]
104+
- [Setting up tags][13]
105+
- [Setting up versioning][14]
106+
- [Setting up the header][15]
107+
- [Setting up the footer][16]
108+
- [Adding a git repository][17]
109+
- [Adding a comment system][18]
109110

110111
</div>
111112

@@ -116,12 +117,13 @@ and much more:
116117
[9]: setup/setting-up-navigation.md
117118
[10]: setup/setting-up-site-search.md
118119
[11]: setup/setting-up-site-analytics.md
119-
[12]: setup/setting-up-tags.md
120-
[13]: setup/setting-up-versioning.md
121-
[14]: setup/setting-up-the-header.md
122-
[15]: setup/setting-up-the-footer.md
123-
[16]: setup/adding-a-git-repository.md
124-
[17]: setup/adding-a-comment-system.md
120+
[12]: setup/setting-up-social-cards.md
121+
[13]: setup/setting-up-tags.md
122+
[14]: setup/setting-up-versioning.md
123+
[15]: setup/setting-up-the-header.md
124+
[16]: setup/setting-up-the-footer.md
125+
[17]: setup/adding-a-git-repository.md
126+
[18]: setup/adding-a-comment-system.md
125127

126128
## Previewing as you write
127129

@@ -147,12 +149,12 @@ If you're running Material for MkDocs from within Docker, use:
147149
docker run --rm -it -p 8000:8000 -v "%cd%":/docs squidfunk/mkdocs-material
148150
```
149151

150-
Point your browser to [localhost:8000][18] and you should see:
152+
Point your browser to [localhost:8000][19] and you should see:
151153

152-
[![Creating your site][19]][19]
154+
[![Creating your site][20]][20]
153155

154-
[18]: http://localhost:8000
155-
[19]: assets/screenshots/creating-your-site.png
156+
[19]: http://localhost:8000
157+
[20]: assets/screenshots/creating-your-site.png
156158

157159
## Building your site
158160

@@ -165,8 +167,8 @@ mkdocs build
165167

166168
The contents of this directory make up your project documentation. There's no
167169
need for operating a database or server, as it is completely self-contained.
168-
The site can be hosted on [GitHub Pages][20], [GitLab Pages][21], a CDN of your
170+
The site can be hosted on [GitHub Pages][21], [GitLab Pages][22], a CDN of your
169171
choice or your private web space.
170172

171-
[20]: publishing-your-site.md#github-pages
172-
[21]: publishing-your-site.md#gitlab-pages
173+
[21]: publishing-your-site.md#github-pages
174+
[22]: publishing-your-site.md#gitlab-pages

Diff for: docs/insiders/index.md

+19-15
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ The following features are currently exclusively available to sponsors:
117117

118118
<div class="mdx-columns" markdown="1">
119119

120+
- [x] [Social cards :material-new-box:][34]
120121
- [x] [Cookie consent :material-new-box:][33]
121122
- [x] [Linking content tabs :material-new-box:][32]
122-
- [x] [Boosting pages in search :material-new-box:][30]
123+
- [x] [Boosting pages in search][30]
123124
- [x] [Tags (with search integration)][29]
124125
- [x] [Stay on page when switching versions][28]
125126
- [x] [Version warning][26]
@@ -190,25 +191,28 @@ the public for general availability.
190191
#### $ 7,000 – Royal Gold
191192

192193
- [x] [Cookie consent][33]
193-
- [ ] Table of contents auto-collapse
194-
- [ ] Table of contents follows active anchor
194+
- [ ] Improved search result summaries
195+
- [ ] List of last searches
195196

196197
[33]: ../setup/setting-up-site-analytics.md#cookie-consent
197198

198199
#### $ 8,000 – Scotch Bonnet
199200

200-
- [ ] Improved search result summaries
201+
- [x] [Social cards][34]
201202
- [ ] Stay on page when switching languages
202-
- [ ] List of last searches
203+
- [ ] Table of contents follows active anchor
204+
205+
[34]: ../setup/setting-up-social-cards.md
203206

204207
#### Future
205208

206-
- [ ] [Material for MkDocs Live Edit][34]
209+
- [ ] [Material for MkDocs Live Edit][35]
207210
- [ ] New layouts and styles
208211
- [ ] Code block palette toggle
209212
- [ ] Native lightbox integration
213+
- [ ] Table of contents auto-collapse
210214

211-
[34]: https://twitter.com/squidfunk/status/1338252230265360391
215+
[35]: https://twitter.com/squidfunk/status/1338252230265360391
212216

213217
### Goals completed
214218

@@ -273,23 +277,23 @@ implemented behind feature flags; all configuration changes are
273277
backward-compatible. This means that your users will be able to build the
274278
documentation locally with Material for MkDocs and when they push their changes,
275279
it can be built with Insiders (e.g. as part of GitHub Actions). Thus, it's
276-
recommended to [install Insiders][35] only in CI, as you don't want to expose
280+
recommended to [install Insiders][36] only in CI, as you don't want to expose
277281
your `GH_TOKEN` to users.
278282

279-
[35]: ../publishing-your-site.md#github-pages
283+
[36]: ../publishing-your-site.md#github-pages
280284

281285
### Payment
282286

283287
_We don't want to pay for sponsorship every month. Are there any other options?_
284288

285289
Yes. You can sponsor on a yearly basis by [switching your GitHub account to a
286-
yearly billing cycle][36]. If for some reason you cannot do that, you could
290+
yearly billing cycle][37]. If for some reason you cannot do that, you could
287291
also create a dedicated GitHub account with a yearly billing cycle, which you
288292
only use for sponsoring (some sponsors already do that).
289293

290294
One-time payments are not eligible for Insiders.
291295

292-
[36]: https://docs.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/changing-the-duration-of-your-billing-cycle
296+
[37]: https://docs.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/changing-the-duration-of-your-billing-cycle
293297

294298
### Terms
295299

@@ -298,7 +302,7 @@ commercial project. Can we use Insiders under the same terms and conditions?_
298302

299303
Yes. Whether you're an individual or a company, you may use _Material for MkDocs
300304
Insiders_ precisely under the same terms as Material for MkDocs, which are given
301-
by the [MIT license][37]. However, we kindly ask you to respect the following
305+
by the [MIT license][38]. However, we kindly ask you to respect the following
302306
guidelines:
303307

304308
- Please __don't distribute the source code__ of Insiders. You may freely use
@@ -309,7 +313,7 @@ guidelines:
309313
- If you cancel your subscription, you're removed as a collaborator and will
310314
miss out on future updates of Insiders. However, you may __use the latest
311315
version__ that's available to you __as long as you like__. Just remember that
312-
[GitHub deletes private forks][38].
316+
[GitHub deletes private forks][39].
313317

314-
[37]: ../license.md
315-
[38]: https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/removing-a-collaborator-from-a-personal-repository
318+
[38]: ../license.md
319+
[39]: https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/removing-a-collaborator-from-a-personal-repository

Diff for: docs/setup/setting-up-social-cards.md

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
template: overrides/main.html
3+
---
4+
5+
# Setting up social cards
6+
7+
Social cards, also known as social previews, are images that are displayed when
8+
a link to your project documentation is shared on social media. Material for
9+
MkDocs can generate beautiful social cards automatically, using the colors,
10+
fonts and logo defined in `mkdocs.yml`.
11+
12+
## Configuration
13+
14+
### Built-in social cards
15+
16+
[:octicons-file-code-24: Source][1] ·
17+
[:octicons-cpu-24: Plugin][1] ·
18+
:octicons-beaker-24: Experimental ·
19+
[:octicons-heart-fill-24:{ .mdx-heart } Insiders only][1]{ .mdx-insiders }
20+
21+
The [built-in social cards plugin][1] generates a social card image for every
22+
page and adds the necessary meta tags, so it's displayed on social media when
23+
shared. Enable it via `mkdocs.yml`:
24+
25+
``` yaml
26+
plugins:
27+
- social
28+
```
29+
30+
For example, the page on [setting up site analytics][2] renders as:
31+
32+
<figure markdown="1">
33+
34+
[![Social Cards][3]][3]
35+
36+
<figcaption markdown="1">
37+
38+
Want to try it out? Copy the current URL and enter it into [Twitter's Card
39+
validator][4] to see how social cards look in action.
40+
41+
</figcaption>
42+
</figure>
43+
44+
This is a built-in plugin, which means that no third-party plugin needs to be
45+
installed, as Material for MkDocs already bundles it. The following options
46+
are available:
47+
48+
`cards_directory`{ #cards_directory }
49+
50+
: :octicons-milestone-24: Default: `assets/images/social` – This option
51+
specifies where the generated social card images will be written to. It
52+
should normally not be necessary to change this option.
53+
54+
``` yaml
55+
plugins:
56+
- social:
57+
cards_directory: assets/images/social
58+
```
59+
60+
[1]: ../insiders/index.md
61+
[2]: setting-up-site-analytics.md
62+
[3]: ../assets/screenshots/social-cards.png
63+
[4]: https://cards-dev.twitter.com/validator

Diff for: material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<link rel="canonical" href="{{ page.canonical_url }}">
2828
{% endif %}
2929
<link rel="icon" href="{{ config.theme.favicon | url }}">
30-
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-7.2.0">
30+
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-7.2.1">
3131
{% endblock %}
3232
{% block htmltitle %}
3333
{% if page and page.meta and page.meta.title %}

Diff for: material/overrides/assets/stylesheets/main.14225c90.min.css

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/overrides/assets/stylesheets/main.14225c90.min.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)