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
|`id`| string | Unique identifier for the source | Yes | No | - |
107
+
|`ref`| string | Branch, tag, or commit | No | Yes | Inherits from defaults |
108
+
|`include`| string[]| Glob patterns to copy | No | Yes | Inherits from defaults |
109
+
|`exclude`| string[]| Glob patterns to skip | No | No | - |
110
+
|`targetDir`| string | Optional path where files should be symlinked/copied to, outside `.docs`| No | No | - |
111
+
|`targetMode`|`"symlink"\|"copy"`| How to write files into the cache | No | Yes | Inherits from defaults |
112
+
|`required`| boolean | Whether missing sources should fail | No | Yes | Inherits from defaults |
113
+
|`maxBytes`| number | Maximum total bytes to materialize | No | Yes | Inherits from defaults |
114
+
|`maxFiles`| number | Maximum total files to materialize | No | Yes | Inherits from defaults |
115
+
|`toc`| boolean | Generate per-source `TOC.md` listing all documentation files | No | Yes | Inherits from defaults |
110
116
111
117
> **Note**: Sources are always downloaded to `.docs/<id>/`. If you provide a `targetDir`, `docs-cache` will create a symlink or copy pointing from the cache to that target directory. The target should be outside `.docs`.
0 commit comments