File tree 1 file changed +22
-16
lines changed
1 file changed +22
-16
lines changed Original file line number Diff line number Diff line change @@ -137,12 +137,13 @@ instant previews on a per-page or per-section level for your documentation:
137
137
` ` ` yaml
138
138
markdown_extensions:
139
139
- material.extensions.preview:
140
- targets:
141
- include:
142
- - changelog/index.md
143
- - customization.md
144
- - insiders/changelog/*
145
- - setup/extensions/*
140
+ configurations:
141
+ - targets:
142
+ include:
143
+ - changelog/index.md
144
+ - customization.md
145
+ - insiders/changelog/*
146
+ - setup/extensions/*
146
147
` ` `
147
148
148
149
The above configuration is what we use for our documentation. We've enabled
@@ -154,16 +155,17 @@ as well as for all Markdown extensions that we support.
154
155
` ` ` yaml
155
156
markdown_extensions:
156
157
- material.extensions.preview:
157
- sources: # (1)!
158
- include:
159
- - ...
160
- exclude:
161
- - ...
162
- targets: # (2)!
163
- include:
164
- - ...
165
- exclude:
166
- - ...
158
+ configurations:
159
+ - sources: # (1)!
160
+ include:
161
+ - ...
162
+ exclude:
163
+ - ...
164
+ targets: # (2)!
165
+ include:
166
+ - ...
167
+ exclude:
168
+ - ...
167
169
` ` `
168
170
169
171
1. Sources specify the pages _on_ which instant previews should be enabled.
@@ -172,6 +174,10 @@ as well as for all Markdown extensions that we support.
172
174
evaluated on top of inclusion, so if a page is matched by both, it will
173
175
be excluded.
174
176
177
+ Note that you can define multiple items under the `configurations`
178
+ setting, which allows to precisely control where instant previews are
179
+ shown.
180
+
175
181
2. Targets specify the pages _to_ which instant previews should be enabled.
176
182
This is the recommended way to enable instant previews.
177
183
---
You can’t perform that action at this time.
0 commit comments