File tree 4 files changed +15
-10
lines changed
4 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 61
61
if [ "${WITH_PLUGINS}" = "true" ]; then \
62
62
pip install --no-cache-dir \
63
63
"mkdocs-minify-plugin>=0.3" \
64
- "mkdocs-redirects>=1.0" ; \
64
+ "mkdocs-redirects>=1.0" \
65
+ "pillow>=9.0" \
66
+ "cairosvg>=2.5" ; \
65
67
fi \
66
68
&& \
67
69
apk del .build \
Original file line number Diff line number Diff line change @@ -118,15 +118,18 @@ The following configuration options are available:
118
118
119
119
# ### Dependencies
120
120
121
- Two Python packages are installed alongside Material for MkDocs to generate the
122
- social preview images, both of which are based on the [Cairo Graphics] library :
121
+ Two Python libraries must be installed alongside Material for MkDocs to generate
122
+ the social preview images, both of which are based on [Cairo Graphics] –
123
+ [Pillow] and [CairoSVG] :
123
124
124
- - [Pillow] – Python imaging library
125
- - [CairoSVG] – Converter for `*.svg` files
125
+ ` ` `
126
+ pip install pillow cairosvg
127
+ ` ` `
126
128
127
- The [Docker image] comes with all dependencies pre-installed. If
128
- you don't want to use Docker, see the following section which explains how to
129
- install all dependencies on your system :
129
+ Both libraries are built with native extensions which need to be installed as
130
+ well. The [Docker image] comes with all dependencies pre-installed. If you don't
131
+ want to use Docker, see the following section which explains how to install all
132
+ dependencies on your system :
130
133
131
134
=== ":material-apple : macOS"
132
135
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def on_config(self, config):
70
70
if not dependencies :
71
71
log .error (
72
72
"Required dependencies of \" social\" plugin not found. "
73
- "Install with: pip install cairosvg pillow"
73
+ "Install with: pip install pillow cairosvg "
74
74
)
75
75
sys .exit ()
76
76
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def on_config(self, config):
70
70
if not dependencies :
71
71
log .error (
72
72
"Required dependencies of \" social\" plugin not found. "
73
- "Install with: pip install cairosvg pillow"
73
+ "Install with: pip install pillow cairosvg "
74
74
)
75
75
sys .exit ()
76
76
You can’t perform that action at this time.
0 commit comments