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
docs: fix table formatting in import-export plugin (#15792)
### What?
Fixed table formatting in the Import Export plugin documentation where
the `exportLimit`, `importLimit`, and `limit` types were not properly
styled.
### Why?
The previous syntax (`number\|function`) was displaying awkwardly.
Changing it to an inline code block (`` `number | function` ``) properly
displays the type union without breaking the Markdown table rendering
that relies on the pipe (`|`) character.
### How?
Updated the types column for `exportLimit`, `importLimit`, and `limit`
in
[docs/plugins/import-export.mdx](cci:7://file:///Users/mahmoud/Desktop/work/payload/docs/plugins/import-export.mdx:0:0-0:0)
to use inline code blocks instead of backslash-escaped pipes.
Fixes #
-
|`collections`| array | Collections to include Import/Export controls in. Array of collection configs with per-collection options. Defaults to all. |
106
-
|`debug`| boolean | If true, enables debug logging. |
107
-
|`exportLimit`| number\|function | Global maximum documents for export operations. Set to `0` for unlimited (default). Per-collection limits take precedence. |
108
-
|`importLimit`| number\|function | Global maximum documents for import operations. Set to `0` for unlimited (default). Per-collection limits take precedence. |
109
-
|`overrideExportCollection`| function | Function to override the default export collection. Receives `{ collection }` and returns modified collection config. |
110
-
|`overrideImportCollection`| function | Function to override the default import collection. Receives `{ collection }` and returns modified collection config. |
|`collections`| array | Collections to include Import/Export controls in. Array of collection configs with per-collection options. Defaults to all. |
106
+
|`debug`| boolean | If true, enables debug logging. |
107
+
|`exportLimit`|`number \| function`| Global maximum documents for export operations. Set to `0` for unlimited (default). Per-collection limits take precedence. |
108
+
|`importLimit`|`number \| function`| Global maximum documents for import operations. Set to `0` for unlimited (default). Per-collection limits take precedence. |
109
+
|`overrideExportCollection`| function | Function to override the default export collection. Receives `{ collection }` and returns modified collection config. |
110
+
|`overrideImportCollection`| function | Function to override the default import collection. Receives `{ collection }` and returns modified collection config. |
111
111
112
112
### Per-Collection Configuration
113
113
@@ -121,25 +121,25 @@ Each item in the `collections` array can have the following properties:
0 commit comments