You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/content/docs/sanity-source.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,4 +17,5 @@ Options for SanitySource
17
17
| <aname="module_sanity-source.SanityOptions+maxNumPages">`maxNumPages`</a> | <code>number</code>| <code>-1</code> | Max number of pages. Use `-1` for all pages |
18
18
| <aname="module_sanity-source.SanityOptions+mergePages">`mergePages`</a> | <code>boolean</code>|| To combine paginated files into a single file. |
19
19
| <aname="module_sanity-source.SanityOptions+pageNumZeroPad">`pageNumZeroPad`</a> | <code>number</code>| <code>0</code> | How many zeros to pad each json filename index with. |
20
+
| <aname="module_sanity-source.SanityOptions+appendCroppedFilenames">`appendCroppedFilenames`</a> | <code>boolean</code>| <code>true</code> | If an image has a crop set within Sanity, this setting will append the cropped filename to each image object as `launchpad.croppedFilename`. Set this to `false` to disable this behavior. |
20
21
| <aname="module_sanity-source.SanityOptions+apiToken">`apiToken`</a> | <code>string</code>|| API Token defined in your sanity project. |
@@ -30,6 +33,7 @@ export class SanityOptions extends SourceOptions {
30
33
maxNumPages =-1,
31
34
mergePages =false,
32
35
pageNumZeroPad =0,
36
+
appendCroppedFilenames =true,
33
37
...rest
34
38
}={}){
35
39
super(rest);
@@ -99,6 +103,13 @@ export class SanityOptions extends SourceOptions {
99
103
* @default 0
100
104
*/
101
105
this.pageNumZeroPad=pageNumZeroPad;
106
+
107
+
/**
108
+
* If an image has a crop set within Sanity, this setting will append the cropped filename to each image object as `launchpad.croppedFilename`. Set this to `false` to disable this behavior.
0 commit comments