@wtf/project-docs 2.3.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. package/api/.generated +15 -13
  2. package/api/@wtf/project-astro/README.md +42 -25
  3. package/api/@wtf/project-astro/config/README.md +9 -1
  4. package/api/@wtf/project-astro/config/functions/baseConfig.md +10 -6
  5. package/api/@wtf/project-astro/config/functions/baseOf.md +5 -5
  6. package/api/@wtf/project-astro/config/functions/siteOf.md +5 -5
  7. package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +21 -19
  8. package/api/@wtf/project-astro/config/type-aliases/Env.md +3 -3
  9. package/api/@wtf/project-astro/errors/classes/BrokenLinksError.md +5 -5
  10. package/api/@wtf/project-astro/errors/classes/InvalidRedirectError.md +6 -6
  11. package/api/@wtf/project-astro/errors/classes/RedirectedLinksError.md +5 -5
  12. package/api/@wtf/project-astro/errors/classes/SiteError.md +4 -4
  13. package/api/@wtf/project-astro/index/README.md +3 -1
  14. package/api/@wtf/project-astro/index/type-aliases/AstroPlatform.md +15 -0
  15. package/api/@wtf/project-astro/index/type-aliases/BrokenLink.md +3 -3
  16. package/api/@wtf/project-astro/index/type-aliases/IgnoredLine.md +4 -4
  17. package/api/@wtf/project-astro/index/type-aliases/RedirectInput.md +2 -2
  18. package/api/@wtf/project-astro/index/type-aliases/RedirectMatch.md +3 -3
  19. package/api/@wtf/project-astro/index/type-aliases/RedirectRule.md +5 -5
  20. package/api/@wtf/project-astro/index/type-aliases/RedirectStatus.md +1 -1
  21. package/api/@wtf/project-astro/index/type-aliases/RedirectedLink.md +2 -2
  22. package/api/@wtf/project-astro/index/type-aliases/Redirects.md +3 -3
  23. package/api/@wtf/project-astro/links/README.md +4 -0
  24. package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
  25. package/api/@wtf/project-astro/links/functions/links.md +15 -6
  26. package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
  27. package/api/@wtf/project-astro/links/type-aliases/LinksOptions.md +23 -0
  28. package/api/@wtf/project-astro/links/variables/LINKS.md +1 -1
  29. package/api/@wtf/project-astro/pages/functions/fixSearchUrlsIn.md +1 -1
  30. package/api/@wtf/project-astro/pages/functions/moveConflictingPages.md +1 -1
  31. package/api/@wtf/project-astro/pages/functions/pages.md +9 -6
  32. package/api/@wtf/project-astro/pages/functions/prefixedLocaleOf.md +1 -1
  33. package/api/@wtf/project-astro/pages/functions/redirectBaseToLocaleIn.md +1 -1
  34. package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
  35. package/api/@wtf/project-astro/pages/type-aliases/I18n.md +1 -1
  36. package/api/@wtf/project-astro/pages/type-aliases/PagesOptions.md +2 -2
  37. package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
  38. package/api/@wtf/project-astro/preview/README.md +7 -4
  39. package/api/@wtf/project-astro/preview/functions/files.md +1 -1
  40. package/api/@wtf/project-astro/preview/functions/listen.md +1 -1
  41. package/api/@wtf/project-astro/preview/functions/notFound.md +1 -1
  42. package/api/@wtf/project-astro/preview/functions/pagesOf.md +1 -1
  43. package/api/@wtf/project-astro/preview/functions/previewOf.md +6 -5
  44. package/api/@wtf/project-astro/preview/type-aliases/FilesOptions.md +2 -2
  45. package/api/@wtf/project-astro/preview/type-aliases/Handler.md +1 -1
  46. package/api/@wtf/project-astro/preview/type-aliases/ListenOptions.md +4 -4
  47. package/api/@wtf/project-astro/preview/type-aliases/Listening.md +5 -5
  48. package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
  49. package/api/@wtf/project-astro/preview/type-aliases/Preview.md +4 -4
  50. package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +8 -7
  51. package/api/@wtf/project-astro/redirects/functions/formatRedirects.md +1 -1
  52. package/api/@wtf/project-astro/redirects/functions/matchRedirect.md +1 -1
  53. package/api/@wtf/project-astro/redirects/functions/parseRedirects.md +1 -1
  54. package/api/@wtf/project-astro/redirects/variables/MAX_PARTS.md +1 -1
  55. package/api/@wtf/project-astro/redirects/variables/MAX_RULES.md +1 -1
  56. package/api/@wtf/project-astro/redirects/variables/MAX_SIZE.md +1 -1
  57. package/api/@wtf/project-astro/schema/README.md +7 -3
  58. package/api/@wtf/project-astro/schema/functions/astroSchemaWith.md +3 -3
  59. package/api/@wtf/project-astro/schema/type-aliases/AstroSection.md +11 -0
  60. package/api/@wtf/project-astro/schema/type-aliases/JsonSchema.md +12 -12
  61. package/api/@wtf/project-astro/schema/type-aliases/OptionsSchema.md +1 -1
  62. package/api/@wtf/project-astro/schema/variables/astroProperties.md +4 -3
  63. package/api/@wtf/project-astro/schema/variables/astroSchema.md +5 -5
  64. package/api/@wtf/project-config/README.md +40 -26
  65. package/api/@wtf/project-config/define/functions/defineConfig.md +1 -1
  66. package/api/@wtf/project-config/env/README.md +2 -2
  67. package/api/@wtf/project-config/env/functions/envNameOf.md +1 -1
  68. package/api/@wtf/project-config/env/functions/envPrefixOf.md +1 -1
  69. package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +1 -1
  70. package/api/@wtf/project-config/env/functions/variablesOf.md +1 -1
  71. package/api/@wtf/project-config/env/functions/withEnvironment.md +1 -1
  72. package/api/@wtf/project-config/env/type-aliases/Environment.md +1 -1
  73. package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +3 -3
  74. package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +3 -3
  75. package/api/@wtf/project-config/errors/classes/ConfigError.md +4 -4
  76. package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +6 -6
  77. package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +5 -5
  78. package/api/@wtf/project-config/errors/classes/ConfigPathError.md +5 -5
  79. package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +6 -6
  80. package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +5 -5
  81. package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +7 -7
  82. package/api/@wtf/project-config/errors/classes/NamedError.md +12 -12
  83. package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +5 -5
  84. package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +6 -6
  85. package/api/@wtf/project-config/errors/classes/SyncConfigInCodeError.md +5 -5
  86. package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +5 -5
  87. package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +5 -5
  88. package/api/@wtf/project-config/errors/type-aliases/NamedErrorCode.md +1 -1
  89. package/api/@wtf/project-config/errors/type-aliases/NamedErrorDetails.md +9 -9
  90. package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +3 -3
  91. package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +4 -4
  92. package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +3 -3
  93. package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +4 -4
  94. package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +1 -1
  95. package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +3 -3
  96. package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +1 -1
  97. package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +3 -3
  98. package/api/@wtf/project-config/index/type-aliases/ConfigSyncPlatform.md +5 -5
  99. package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +10 -10
  100. package/api/@wtf/project-config/index/type-aliases/ImportModule.md +1 -1
  101. package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +1 -1
  102. package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +4 -4
  103. package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +2 -2
  104. package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +9 -9
  105. package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +1 -1
  106. package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +1 -1
  107. package/api/@wtf/project-config/index/type-aliases/SyncFiles.md +3 -3
  108. package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +1 -1
  109. package/api/@wtf/project-config/load/README.md +12 -5
  110. package/api/@wtf/project-config/load/functions/ignoredWarning.md +1 -1
  111. package/api/@wtf/project-config/load/functions/importFileModule.md +1 -1
  112. package/api/@wtf/project-config/load/functions/loadConfig.md +10 -11
  113. package/api/@wtf/project-config/load/functions/loadConfigSync.md +4 -4
  114. package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +5 -5
  115. package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +4 -3
  116. package/api/@wtf/project-config/load/type-aliases/LoadPlatform.md +15 -0
  117. package/api/@wtf/project-config/load/type-aliases/LoadSyncOptions.md +8 -2
  118. package/api/@wtf/project-config/load/type-aliases/LoadSyncPlatform.md +19 -0
  119. package/api/@wtf/project-config/locate/README.md +5 -2
  120. package/api/@wtf/project-config/locate/functions/configFilesOf.md +1 -1
  121. package/api/@wtf/project-config/locate/functions/configNamesOf.md +1 -1
  122. package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +1 -1
  123. package/api/@wtf/project-config/locate/functions/locateConfig.md +1 -1
  124. package/api/@wtf/project-config/locate/functions/locateConfigSync.md +1 -1
  125. package/api/@wtf/project-config/locate/functions/projectRootOf.md +1 -1
  126. package/api/@wtf/project-config/locate/functions/projectRootOfSync.md +1 -1
  127. package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +2 -2
  128. package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +2 -2
  129. package/api/@wtf/project-config/locate/type-aliases/LocateSyncOptions.md +2 -2
  130. package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +2 -2
  131. package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +1 -1
  132. package/api/@wtf/project-config/named/functions/factoryOf.md +1 -1
  133. package/api/@wtf/project-config/named/functions/namedSchema.md +1 -1
  134. package/api/@wtf/project-config/named/functions/namedSetSchema.md +1 -1
  135. package/api/@wtf/project-config/named/functions/resolveNamed.md +1 -1
  136. package/api/@wtf/project-config/named/functions/resolveNamedSet.md +1 -1
  137. package/api/@wtf/project-config/named/type-aliases/LoadModule.md +1 -1
  138. package/api/@wtf/project-config/named/type-aliases/ModuleReference.md +3 -3
  139. package/api/@wtf/project-config/named/type-aliases/NamedCheckOptions.md +5 -5
  140. package/api/@wtf/project-config/named/type-aliases/NamedEntries.md +1 -1
  141. package/api/@wtf/project-config/named/type-aliases/NamedFactory.md +1 -1
  142. package/api/@wtf/project-config/named/type-aliases/NamedOptions.md +1 -1
  143. package/api/@wtf/project-config/named/type-aliases/NamedReference.md +1 -1
  144. package/api/@wtf/project-config/named/type-aliases/NamedResolveOptions.md +3 -3
  145. package/api/@wtf/project-config/named/type-aliases/NamedSchema.md +1 -1
  146. package/api/@wtf/project-config/named/type-aliases/NamedSchemaOptions.md +4 -4
  147. package/api/@wtf/project-config/named/type-aliases/NamedSet.md +1 -1
  148. package/api/@wtf/project-config/named/type-aliases/NamedSetOptions.md +2 -2
  149. package/api/@wtf/project-config/named/type-aliases/NamedSetSchemaOptions.md +3 -3
  150. package/api/@wtf/project-config/named/type-aliases/NamedSets.md +1 -1
  151. package/api/@wtf/project-config/named/type-aliases/NamedUse.md +1 -1
  152. package/api/@wtf/project-config/node/README.md +13 -16
  153. package/api/@wtf/project-config/node/functions/nodeLoadModule.md +7 -7
  154. package/api/@wtf/project-config/node/functions/nodeSyncPlatform.md +12 -5
  155. package/api/@wtf/project-config/path/functions/configPathOf.md +1 -1
  156. package/api/@wtf/project-config/path/functions/textOfConfigPath.md +1 -1
  157. package/api/@wtf/project-config/path/functions/valueAt.md +1 -1
  158. package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +1 -1
  159. package/api/@wtf/project-config/placeholder/functions/expandString.md +1 -1
  160. package/api/@wtf/project-config/schema/functions/namespaceSchema.md +1 -1
  161. package/api/@wtf/project-config/schema/functions/sectionIdOf.md +1 -1
  162. package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +3 -3
  163. package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +1 -1
  164. package/api/@wtf/project-config/section/README.md +7 -3
  165. package/api/@wtf/project-config/section/functions/issuesOf.md +1 -1
  166. package/api/@wtf/project-config/section/functions/issuesOfSync.md +1 -1
  167. package/api/@wtf/project-config/section/functions/mergeSection.md +1 -1
  168. package/api/@wtf/project-config/section/functions/sectionOf.md +6 -6
  169. package/api/@wtf/project-config/section/functions/sectionOfSync.md +1 -1
  170. package/api/@wtf/project-config/section/type-aliases/Checked.md +3 -3
  171. package/api/@wtf/project-config/write/README.md +5 -4
  172. package/api/@wtf/project-config/write/functions/setConfigValue.md +1 -1
  173. package/api/@wtf/project-config/write/functions/unsetConfigValue.md +1 -1
  174. package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +2 -2
  175. package/api/@wtf/project-oxfmt/README.md +5 -2
  176. package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +1 -1
  177. package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +1 -1
  178. package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +6 -6
  179. package/api/@wtf/project-oxfmt/config/variables/default.md +1 -1
  180. package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +1 -1
  181. package/api/@wtf/project-oxlint/README.md +5 -2
  182. package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +1 -1
  183. package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +1 -1
  184. package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +17 -17
  185. package/api/@wtf/project-oxlint/config/variables/default.md +1 -1
  186. package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +1 -1
  187. package/api/@wtf/project-resolve/condition/variables/SOURCE_CONDITION.md +1 -1
  188. package/api/@wtf/project-resolve/env/functions/isHook.md +1 -1
  189. package/api/@wtf/project-resolve/env/functions/optionsWithoutHook.md +1 -1
  190. package/api/@wtf/project-resolve/env/functions/withoutHook.md +1 -1
  191. package/api/@wtf/project-resolve/env/type-aliases/Env.md +1 -1
  192. package/api/@wtf/project-resolve/errors/classes/ResolveError.md +4 -4
  193. package/api/@wtf/project-resolve/errors/classes/UnreadableWorkspaceError.md +6 -6
  194. package/api/@wtf/project-resolve/errors/classes/WorkspaceError.md +5 -5
  195. package/api/@wtf/project-resolve/hooks/functions/candidatesOf.md +1 -1
  196. package/api/@wtf/project-resolve/hooks/functions/sourcesHookOf.md +1 -1
  197. package/api/@wtf/project-resolve/hooks/functions/sourcesOf.md +1 -1
  198. package/api/@wtf/project-resolve/hooks/variables/resolveTypeScript.md +1 -1
  199. package/api/@wtf/project-resolve/node/functions/nodePlatform.md +5 -5
  200. package/api/@wtf/project-resolve/register/variables/REGISTERED.md +1 -1
  201. package/api/@wtf/project-resolve/workspace/functions/filesOf.md +1 -1
  202. package/api/@wtf/project-resolve/workspace/functions/packagesOf.md +1 -1
  203. package/api/@wtf/project-resolve/workspace/functions/workspaceAt.md +1 -1
  204. package/api/@wtf/project-resolve/workspace/functions/workspaceOf.md +1 -1
  205. package/api/@wtf/project-resolve/workspace/functions/workspaceRootAbove.md +1 -1
  206. package/api/@wtf/project-resolve/workspace/functions/workspaceRootOf.md +1 -1
  207. package/api/@wtf/project-resolve/workspace/type-aliases/Agent.md +1 -1
  208. package/api/@wtf/project-resolve/workspace/type-aliases/DirectoryEntry.md +4 -4
  209. package/api/@wtf/project-resolve/workspace/type-aliases/FileContents.md +3 -3
  210. package/api/@wtf/project-resolve/workspace/type-aliases/PackageManager.md +4 -4
  211. package/api/@wtf/project-resolve/workspace/type-aliases/PackageManagerName.md +1 -1
  212. package/api/@wtf/project-resolve/workspace/type-aliases/ProcessWorkspaceOptions.md +1 -1
  213. package/api/@wtf/project-resolve/workspace/type-aliases/Workspace.md +5 -5
  214. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceDirectoryHandle.md +6 -6
  215. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFileHandle.md +3 -3
  216. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFiles.md +6 -6
  217. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceOptions.md +2 -2
  218. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePackage.md +4 -4
  219. package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePaths.md +7 -7
  220. package/api/@wtf/project-typedoc/README.md +17 -3
  221. package/api/@wtf/project-typedoc/config/README.md +20 -4
  222. package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +6 -6
  223. package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +5 -5
  224. package/api/@wtf/project-typedoc/config/type-aliases/RevisionSources.md +7 -7
  225. package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
  226. package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +8 -6
  227. package/api/@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md +18 -0
  228. package/api/@wtf/project-typedoc/plugins/README.md +0 -1
  229. package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
  230. package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +2 -2
  231. package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
  232. package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +15 -3
  233. package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +9 -9
  234. package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +23 -3
  235. package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
  236. package/api/@wtf/project-typedoc/schema/README.md +11 -2
  237. package/api/@wtf/project-typedoc/schema/type-aliases/TypedocSection.md +19 -0
  238. package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +6 -5
  239. package/api/@wtf/project-vite/README.md +20 -11
  240. package/api/@wtf/project-vite/config/README.md +11 -4
  241. package/api/@wtf/project-vite/config/functions/baseConfig.md +14 -9
  242. package/api/@wtf/project-vite/config/functions/buildsSite.md +1 -1
  243. package/api/@wtf/project-vite/config/functions/compress.md +1 -1
  244. package/api/@wtf/project-vite/config/functions/conditionsOf.md +8 -7
  245. package/api/@wtf/project-vite/config/functions/fromDist.md +22 -0
  246. package/api/@wtf/project-vite/config/type-aliases/BaseOptions.md +15 -2
  247. package/api/@wtf/project-vite/config/type-aliases/CompressOptions.md +4 -4
  248. package/api/@wtf/project-vite/config/variables/CLIENT_CONDITIONS.md +1 -1
  249. package/api/@wtf/project-vite/config/variables/COMPRESSIBLE.md +1 -1
  250. package/api/@wtf/project-vite/config/variables/THRESHOLD.md +1 -1
  251. package/api/@wtf/project-vite/schema/README.md +10 -3
  252. package/api/@wtf/project-vite/schema/type-aliases/ViteSection.md +11 -0
  253. package/api/@wtf/project-vite/schema/variables/viteSchema.md +5 -4
  254. package/api/@wtf/project-vitest/README.md +34 -16
  255. package/api/@wtf/project-vitest/browser/README.md +2 -1
  256. package/api/@wtf/project-vitest/browser/functions/browserConfig.md +6 -6
  257. package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +2 -2
  258. package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +8 -6
  259. package/api/@wtf/project-vitest/config/README.md +17 -1
  260. package/api/@wtf/project-vitest/config/functions/fromDist.md +22 -0
  261. package/api/@wtf/project-vitest/config/functions/integrationConfig.md +2 -2
  262. package/api/@wtf/project-vitest/config/functions/packageConfig.md +17 -10
  263. package/api/@wtf/project-vitest/config/functions/rootConfig.md +5 -2
  264. package/api/@wtf/project-vitest/config/type-aliases/PackageOptions.md +18 -0
  265. package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
  266. package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +32 -7
  267. package/api/@wtf/project-vitest/config/type-aliases/VitestPlatform.md +26 -0
  268. package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
  269. package/api/@wtf/project-vitest/config/variables/integration.md +10 -10
  270. package/api/@wtf/project-vitest/process/README.md +3 -3
  271. package/api/@wtf/project-vitest/process/functions/childEnv.md +6 -6
  272. package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
  273. package/api/@wtf/project-vitest/schema/README.md +14 -3
  274. package/api/@wtf/project-vitest/schema/type-aliases/VitestSection.md +12 -0
  275. package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +6 -5
  276. package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +6 -4
  277. package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +3 -3
  278. package/api/@wtf/project-wpt/README.md +27 -19
  279. package/api/@wtf/project-wpt/builtins/functions/builtins.md +1 -1
  280. package/api/@wtf/project-wpt/builtins/functions/intrinsics.md +1 -1
  281. package/api/@wtf/project-wpt/checkout/README.md +3 -2
  282. package/api/@wtf/project-wpt/checkout/functions/checkoutFolderOf.md +1 -1
  283. package/api/@wtf/project-wpt/checkout/functions/checkoutTests.md +1 -1
  284. package/api/@wtf/project-wpt/checkout/functions/checkoutWpt.md +1 -1
  285. package/api/@wtf/project-wpt/checkout/functions/execOf.md +28 -0
  286. package/api/@wtf/project-wpt/checkout/functions/fileOf.md +1 -1
  287. package/api/@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md +3 -3
  288. package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md +12 -12
  289. package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutTestsOptions.md +2 -2
  290. package/api/@wtf/project-wpt/checkout/variables/HARNESS.md +1 -1
  291. package/api/@wtf/project-wpt/checkout/variables/REWRITES.md +1 -1
  292. package/api/@wtf/project-wpt/checkout/variables/WPT_REPOSITORY.md +1 -1
  293. package/api/@wtf/project-wpt/errors/classes/HarnessFailedError.md +4 -4
  294. package/api/@wtf/project-wpt/errors/classes/InvalidCommitError.md +4 -4
  295. package/api/@wtf/project-wpt/errors/classes/InvalidExpectationsError.md +4 -4
  296. package/api/@wtf/project-wpt/errors/classes/NoSuiteError.md +4 -4
  297. package/api/@wtf/project-wpt/errors/classes/NotInWptError.md +5 -5
  298. package/api/@wtf/project-wpt/errors/classes/StaleExpectationError.md +4 -4
  299. package/api/@wtf/project-wpt/errors/classes/SubtestFailedError.md +4 -4
  300. package/api/@wtf/project-wpt/errors/classes/UnexpectedPassError.md +4 -4
  301. package/api/@wtf/project-wpt/errors/classes/WptError.md +4 -4
  302. package/api/@wtf/project-wpt/errors/classes/WptFetchError.md +4 -4
  303. package/api/@wtf/project-wpt/expectations/functions/checkHarness.md +1 -1
  304. package/api/@wtf/project-wpt/expectations/functions/checkSubtest.md +1 -1
  305. package/api/@wtf/project-wpt/expectations/functions/expectationOf.md +1 -1
  306. package/api/@wtf/project-wpt/expectations/functions/expectationsIssues.md +1 -1
  307. package/api/@wtf/project-wpt/expectations/functions/readExpectations.md +6 -4
  308. package/api/@wtf/project-wpt/expectations/functions/staleOf.md +1 -1
  309. package/api/@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md +3 -3
  310. package/api/@wtf/project-wpt/index/README.md +2 -5
  311. package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
  312. package/api/@wtf/project-wpt/index/type-aliases/Exec.md +3 -3
  313. package/api/@wtf/project-wpt/index/type-aliases/Expectations.md +1 -1
  314. package/api/@wtf/project-wpt/index/type-aliases/FileExpectation.md +4 -4
  315. package/api/@wtf/project-wpt/index/type-aliases/FileResult.md +4 -4
  316. package/api/@wtf/project-wpt/index/type-aliases/Globals.md +1 -1
  317. package/api/@wtf/project-wpt/index/type-aliases/HarnessResult.md +4 -4
  318. package/api/@wtf/project-wpt/index/type-aliases/HarnessStatus.md +1 -1
  319. package/api/@wtf/project-wpt/index/type-aliases/HoldRejections.md +1 -1
  320. package/api/@wtf/project-wpt/index/type-aliases/Realm.md +3 -3
  321. package/api/@wtf/project-wpt/index/type-aliases/SubtestResult.md +5 -5
  322. package/api/@wtf/project-wpt/index/type-aliases/SubtestStatus.md +1 -1
  323. package/api/@wtf/project-wpt/index/type-aliases/WptFile.md +3 -3
  324. package/api/@wtf/project-wpt/index/type-aliases/WptFiles.md +9 -9
  325. package/api/@wtf/project-wpt/index/type-aliases/WptPaths.md +4 -4
  326. package/api/@wtf/project-wpt/index/type-aliases/WptPlatform.md +10 -60
  327. package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +8 -8
  328. package/api/@wtf/project-wpt/index/type-aliases/WptTest.md +3 -3
  329. package/api/@wtf/project-wpt/meta/functions/idOf.md +1 -1
  330. package/api/@wtf/project-wpt/meta/functions/metaOf.md +1 -1
  331. package/api/@wtf/project-wpt/meta/functions/runsOutsideWindow.md +1 -1
  332. package/api/@wtf/project-wpt/meta/functions/scriptPathsOf.md +1 -1
  333. package/api/@wtf/project-wpt/meta/functions/testsOf.md +1 -1
  334. package/api/@wtf/project-wpt/meta/type-aliases/Meta.md +6 -6
  335. package/api/@wtf/project-wpt/node/README.md +16 -8
  336. package/api/@wtf/project-wpt/node/functions/nodeSystem.md +9 -3
  337. package/api/@wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md +12 -0
  338. package/api/@wtf/project-wpt/node/variables/nodeFiles.md +1 -1
  339. package/api/@wtf/project-wpt/node/variables/nodeRealm.md +1 -1
  340. package/api/@wtf/project-wpt/node/variables/nodeRejections.md +1 -1
  341. package/api/@wtf/project-wpt/run/functions/runTest.md +1 -1
  342. package/api/@wtf/project-wpt/run/type-aliases/RunOptions.md +10 -9
  343. package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +3 -3
  344. package/api/@wtf/project-wpt/run/variables/LONG_TIMEOUT.md +1 -1
  345. package/api/@wtf/project-wpt/run/variables/TIMEOUT.md +1 -1
  346. package/api/@wtf/project-wpt/run/variables/WPT_ORIGIN.md +1 -1
  347. package/api/@wtf/project-wpt/schema/README.md +6 -3
  348. package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +2 -2
  349. package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +2 -2
  350. package/api/@wtf/project-wpt/schema/variables/wptSchema.md +1 -1
  351. package/api/@wtf/project-wpt/suite/README.md +6 -2
  352. package/api/@wtf/project-wpt/suite/functions/wptSuite.md +1 -1
  353. package/api/@wtf/project-wpt/suite/type-aliases/WptSuiteOptions.md +8 -8
  354. package/api/llms.txt +8 -3
  355. package/guides/astro.md +48 -23
  356. package/guides/config.md +38 -13
  357. package/guides/getting-started.md +8 -2
  358. package/guides/presets.md +11 -2
  359. package/guides/vite.md +20 -10
  360. package/guides/vitest.md +54 -27
  361. package/package.json +7 -7
  362. package/api/@wtf/project-config/node/functions/loadConfig.md +0 -24
  363. package/api/@wtf/project-config/node/functions/loadConfigSync.md +0 -24
  364. package/api/@wtf/project-config/node/functions/nodeConfigPlatform.md +0 -16
  365. package/api/@wtf/project-typedoc/config/variables/nodeRun.md +0 -33
  366. package/api/@wtf/project-typedoc/plugins/type-aliases/Run.md +0 -25
  367. package/api/@wtf/project-vite/config/variables/FROM_DIST.md +0 -11
  368. package/api/@wtf/project-vitest/config/variables/FROM_DIST.md +0 -11
  369. package/api/@wtf/project-wpt/index/type-aliases/ClearTimeout.md +0 -21
  370. package/api/@wtf/project-wpt/index/type-aliases/Env.md +0 -11
  371. package/api/@wtf/project-wpt/index/type-aliases/Performance.md +0 -35
  372. package/api/@wtf/project-wpt/index/type-aliases/SetTimeout.md +0 -22
  373. package/api/@wtf/project-wpt/node/functions/nodePlatform.md +0 -18
  374. package/api/@wtf/project-wpt/node/variables/nodeExec.md +0 -11
package/api/.generated CHANGED
@@ -12,6 +12,7 @@
12
12
  @wtf/project-astro/errors/classes/RedirectedLinksError.md
13
13
  @wtf/project-astro/errors/classes/SiteError.md
14
14
  @wtf/project-astro/index/README.md
15
+ @wtf/project-astro/index/type-aliases/AstroPlatform.md
15
16
  @wtf/project-astro/index/type-aliases/BrokenLink.md
16
17
  @wtf/project-astro/index/type-aliases/IgnoredLine.md
17
18
  @wtf/project-astro/index/type-aliases/RedirectInput.md
@@ -24,6 +25,7 @@
24
25
  @wtf/project-astro/links/functions/brokenLinksIn.md
25
26
  @wtf/project-astro/links/functions/links.md
26
27
  @wtf/project-astro/links/functions/redirectedLinksIn.md
28
+ @wtf/project-astro/links/type-aliases/LinksOptions.md
27
29
  @wtf/project-astro/links/variables/LINKS.md
28
30
  @wtf/project-astro/pages/README.md
29
31
  @wtf/project-astro/pages/functions/fixSearchUrlsIn.md
@@ -57,6 +59,7 @@
57
59
  @wtf/project-astro/redirects/variables/MAX_SIZE.md
58
60
  @wtf/project-astro/schema/README.md
59
61
  @wtf/project-astro/schema/functions/astroSchemaWith.md
62
+ @wtf/project-astro/schema/type-aliases/AstroSection.md
60
63
  @wtf/project-astro/schema/type-aliases/JsonSchema.md
61
64
  @wtf/project-astro/schema/type-aliases/OptionsSchema.md
62
65
  @wtf/project-astro/schema/variables/astroProperties.md
@@ -116,7 +119,9 @@
116
119
  @wtf/project-config/load/functions/loadConfigSync.md
117
120
  @wtf/project-config/load/type-aliases/LoadLayers.md
118
121
  @wtf/project-config/load/type-aliases/LoadOptions.md
122
+ @wtf/project-config/load/type-aliases/LoadPlatform.md
119
123
  @wtf/project-config/load/type-aliases/LoadSyncOptions.md
124
+ @wtf/project-config/load/type-aliases/LoadSyncPlatform.md
120
125
  @wtf/project-config/locate/README.md
121
126
  @wtf/project-config/locate/functions/configFilesOf.md
122
127
  @wtf/project-config/locate/functions/configNamesOf.md
@@ -152,9 +157,6 @@
152
157
  @wtf/project-config/named/type-aliases/NamedSets.md
153
158
  @wtf/project-config/named/type-aliases/NamedUse.md
154
159
  @wtf/project-config/node/README.md
155
- @wtf/project-config/node/functions/loadConfig.md
156
- @wtf/project-config/node/functions/loadConfigSync.md
157
- @wtf/project-config/node/functions/nodeConfigPlatform.md
158
160
  @wtf/project-config/node/functions/nodeLoadModule.md
159
161
  @wtf/project-config/node/functions/nodeSyncPlatform.md
160
162
  @wtf/project-config/path/README.md
@@ -244,7 +246,7 @@
244
246
  @wtf/project-typedoc/config/type-aliases/RevisionSources.md
245
247
  @wtf/project-typedoc/config/type-aliases/TypedocConfig.md
246
248
  @wtf/project-typedoc/config/type-aliases/TypedocOptions.md
247
- @wtf/project-typedoc/config/variables/nodeRun.md
249
+ @wtf/project-typedoc/config/type-aliases/TypedocPlatform.md
248
250
  @wtf/project-typedoc/plugins/README.md
249
251
  @wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md
250
252
  @wtf/project-typedoc/plugins/functions/linkTrackedSources.md
@@ -252,9 +254,9 @@
252
254
  @wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md
253
255
  @wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md
254
256
  @wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md
255
- @wtf/project-typedoc/plugins/type-aliases/Run.md
256
257
  @wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md
257
258
  @wtf/project-typedoc/schema/README.md
259
+ @wtf/project-typedoc/schema/type-aliases/TypedocSection.md
258
260
  @wtf/project-typedoc/schema/variables/typedocSchema.md
259
261
  @wtf/project-vite/README.md
260
262
  @wtf/project-vite/config/README.md
@@ -262,13 +264,14 @@
262
264
  @wtf/project-vite/config/functions/buildsSite.md
263
265
  @wtf/project-vite/config/functions/compress.md
264
266
  @wtf/project-vite/config/functions/conditionsOf.md
267
+ @wtf/project-vite/config/functions/fromDist.md
265
268
  @wtf/project-vite/config/type-aliases/BaseOptions.md
266
269
  @wtf/project-vite/config/type-aliases/CompressOptions.md
267
270
  @wtf/project-vite/config/variables/CLIENT_CONDITIONS.md
268
271
  @wtf/project-vite/config/variables/COMPRESSIBLE.md
269
- @wtf/project-vite/config/variables/FROM_DIST.md
270
272
  @wtf/project-vite/config/variables/THRESHOLD.md
271
273
  @wtf/project-vite/schema/README.md
274
+ @wtf/project-vite/schema/type-aliases/ViteSection.md
272
275
  @wtf/project-vite/schema/variables/viteSchema.md
273
276
  @wtf/project-vitest/README.md
274
277
  @wtf/project-vitest/browser/README.md
@@ -276,18 +279,21 @@
276
279
  @wtf/project-vitest/browser/functions/browserRootConfig.md
277
280
  @wtf/project-vitest/browser/type-aliases/BrowserOptions.md
278
281
  @wtf/project-vitest/config/README.md
282
+ @wtf/project-vitest/config/functions/fromDist.md
279
283
  @wtf/project-vitest/config/functions/integrationConfig.md
280
284
  @wtf/project-vitest/config/functions/packageConfig.md
281
285
  @wtf/project-vitest/config/functions/rootConfig.md
286
+ @wtf/project-vitest/config/type-aliases/PackageOptions.md
282
287
  @wtf/project-vitest/config/type-aliases/RootConfigOptions.md
283
288
  @wtf/project-vitest/config/type-aliases/RootOptions.md
284
- @wtf/project-vitest/config/variables/FROM_DIST.md
289
+ @wtf/project-vitest/config/type-aliases/VitestPlatform.md
285
290
  @wtf/project-vitest/config/variables/GUARD_TIMEOUT.md
286
291
  @wtf/project-vitest/config/variables/integration.md
287
292
  @wtf/project-vitest/process/README.md
288
293
  @wtf/project-vitest/process/functions/childEnv.md
289
294
  @wtf/project-vitest/process/type-aliases/Env.md
290
295
  @wtf/project-vitest/schema/README.md
296
+ @wtf/project-vitest/schema/type-aliases/VitestSection.md
291
297
  @wtf/project-vitest/schema/variables/vitestSchema.md
292
298
  @wtf/project-vitest/storybook/README.md
293
299
  @wtf/project-vitest/storybook/functions/storybookConfig.md
@@ -300,6 +306,7 @@
300
306
  @wtf/project-wpt/checkout/functions/checkoutFolderOf.md
301
307
  @wtf/project-wpt/checkout/functions/checkoutTests.md
302
308
  @wtf/project-wpt/checkout/functions/checkoutWpt.md
309
+ @wtf/project-wpt/checkout/functions/execOf.md
303
310
  @wtf/project-wpt/checkout/functions/fileOf.md
304
311
  @wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md
305
312
  @wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md
@@ -327,9 +334,7 @@
327
334
  @wtf/project-wpt/expectations/functions/staleOf.md
328
335
  @wtf/project-wpt/expectations/type-aliases/ReadExpectations.md
329
336
  @wtf/project-wpt/index/README.md
330
- @wtf/project-wpt/index/type-aliases/ClearTimeout.md
331
337
  @wtf/project-wpt/index/type-aliases/CreateRealm.md
332
- @wtf/project-wpt/index/type-aliases/Env.md
333
338
  @wtf/project-wpt/index/type-aliases/Exec.md
334
339
  @wtf/project-wpt/index/type-aliases/Expectations.md
335
340
  @wtf/project-wpt/index/type-aliases/FileExpectation.md
@@ -338,9 +343,7 @@
338
343
  @wtf/project-wpt/index/type-aliases/HarnessResult.md
339
344
  @wtf/project-wpt/index/type-aliases/HarnessStatus.md
340
345
  @wtf/project-wpt/index/type-aliases/HoldRejections.md
341
- @wtf/project-wpt/index/type-aliases/Performance.md
342
346
  @wtf/project-wpt/index/type-aliases/Realm.md
343
- @wtf/project-wpt/index/type-aliases/SetTimeout.md
344
347
  @wtf/project-wpt/index/type-aliases/SubtestResult.md
345
348
  @wtf/project-wpt/index/type-aliases/SubtestStatus.md
346
349
  @wtf/project-wpt/index/type-aliases/WptFile.md
@@ -357,9 +360,8 @@
357
360
  @wtf/project-wpt/meta/functions/testsOf.md
358
361
  @wtf/project-wpt/meta/type-aliases/Meta.md
359
362
  @wtf/project-wpt/node/README.md
360
- @wtf/project-wpt/node/functions/nodePlatform.md
361
363
  @wtf/project-wpt/node/functions/nodeSystem.md
362
- @wtf/project-wpt/node/variables/nodeExec.md
364
+ @wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md
363
365
  @wtf/project-wpt/node/variables/nodeFiles.md
364
366
  @wtf/project-wpt/node/variables/nodeRealm.md
365
367
  @wtf/project-wpt/node/variables/nodeRejections.md
@@ -8,36 +8,46 @@ finds it and gives each link the URL its page is served at. It fails the build o
8
8
  to no page, or only through a redirect. `./preview` serves the build the way GitLab Pages does,
9
9
  `_redirects` included, from a script of your own. Astro is a peer dependency.
10
10
 
11
- | Subpath | What you get |
12
- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13
- | `.` | The types: `RedirectRule`, `RedirectInput`, `IgnoredLine`, `Redirects`, `RedirectMatch`, `BrokenLink`, `RedirectedLink` |
14
- | `./config` | `baseConfig(options)`: the base of an `astro.config.mjs`; `siteOf(env)` and `baseOf(env)`, of the URL of GitLab Pages |
15
- | `./pages` | `pages(options)`: the integration that makes the build serve on GitLab Pages; its passes, `moveConflictingPages`, `slashFolderLinksIn`, `fixSearchUrlsIn`, `redirectBaseToLocaleIn`; `prefixedLocaleOf(i18n)` |
16
- | `./links` | `links()`: the integration that fails the build on a link of no page, or of a redirect; `brokenLinksIn`, `redirectedLinksIn` |
17
- | `./redirects` | `parseRedirects(text)`, `formatRedirects(rules)` and `matchRedirect(rules, path)`: a `_redirects` file read, written, matched |
18
- | `./preview` | `previewOf(folder, { base })`: a built folder to serve as GitLab Pages does, and its warnings; `listen`, on Node's server until its signal; `pagesOf`, `files`, `notFound` |
19
- | `./schema` | `astroSchema`: the Standard Schema of the options of `baseConfig()`, which gives their JSON Schema; `astroProperties` and `astroSchemaWith`, to add options of your own to the section |
20
- | `./errors` | `SiteError`, `BrokenLinksError`, `RedirectedLinksError` and `InvalidRedirectError`, each with a stable `code` |
11
+ | Subpath | What you get |
12
+ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
13
+ | `.` | The types: `AstroPlatform`, `RedirectRule`, `RedirectInput`, `IgnoredLine`, `Redirects`, `RedirectMatch`, `BrokenLink`, `RedirectedLink` |
14
+ | `./config` | `baseConfig({ platform, ...options })`: the base of an `astro.config.mjs`; `siteOf(env)` and `baseOf(env)`, of the URL of GitLab Pages |
15
+ | `./pages` | `pages({ platform, ...options })`: the integration that makes the build serve on GitLab Pages; its passes, `moveConflictingPages`, `slashFolderLinksIn`, `fixSearchUrlsIn`, `redirectBaseToLocaleIn`; `prefixedLocaleOf(i18n)` |
16
+ | `./links` | `links({ platform })`: the integration that fails the build on a link of no page, or of a redirect; `brokenLinksIn`, `redirectedLinksIn` |
17
+ | `./redirects` | `parseRedirects(text)`, `formatRedirects(rules)` and `matchRedirect(rules, path)`: a `_redirects` file read, written, matched |
18
+ | `./preview` | `previewOf(folder, { platform, base })`: a built folder to serve as GitLab Pages does, and its warnings; `listen`, on Node's server until its signal; `pagesOf`, `files`, `notFound` |
19
+ | `./schema` | `astroSchema`: the Standard Schema of the options of `baseConfig()`, which gives their JSON Schema; `astroProperties` and `astroSchemaWith`, to add options of your own to the section |
20
+ | `./errors` | `SiteError`, `BrokenLinksError`, `RedirectedLinksError` and `InvalidRedirectError`, each with a stable `code` |
21
21
 
22
22
  ```ts
23
23
  // astro.config.mjs
24
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
25
+ import { nodePlatform } from '@wtf/platform-node/platform'
24
26
  import { defineConfig, mergeConfig } from 'astro/config'
25
27
 
26
28
  import { baseConfig } from '@wtf/project-astro/config'
27
29
 
30
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
28
31
  export default defineConfig(
29
- mergeConfig(baseConfig(), { site: 'https://example.com/', outDir: 'public' })
32
+ mergeConfig(baseConfig({ platform }), { site: 'https://example.com/', outDir: 'public' })
30
33
  )
31
34
  ```
32
35
 
36
+ The config file is the entry point: it builds Node's platform, whose environment the site and its
37
+ base are read of, and whose disk `pages()` and `links()` read the build by, and gives it. Nothing
38
+ in the package reads the process itself.
39
+
33
40
  A script of ten lines serves the build as GitLab Pages does, under the base of `ASTRO_BASE` or
34
41
  `CI_PAGES_URL`, until `Ctrl+C`, and warns of each line of `_redirects` GitLab Pages ignores:
35
42
 
36
43
  ```ts
37
44
  // scripts/preview.ts
45
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
46
+ import { nodePlatform } from '@wtf/platform-node/platform'
38
47
  import { listen, previewOf } from '@wtf/project-astro/preview'
39
48
 
40
- const site = await previewOf('dist')
49
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
50
+ const site = await previewOf('dist', { platform })
41
51
  for (const warning of site.warnings) console.warn(warning)
42
52
  const stop = new AbortController()
43
53
  for (const signal of ['SIGINT', 'SIGTERM'] as const) process.once(signal, () => stop.abort())
@@ -47,11 +57,12 @@ await server.closed
47
57
  ```
48
58
 
49
59
  Run it as `node scripts/preview.ts`, from a `preview` script of your package.json. Pass
50
- `previewOf(folder, { base })` and `listen(handler, { host, port })` the flags of your own.
60
+ `previewOf(folder, { platform, base })` and `listen(handler, { host, port })` the flags of your
61
+ own.
51
62
 
52
63
  ## What it sets
53
64
 
54
- `baseConfig()` gives your site:
65
+ `baseConfig({ platform })` gives your site:
55
66
 
56
67
  - `trailingSlash: 'never'` and `build.format: 'preserve'`: a page is `X.html`, served at `X`, and
57
68
  a page with pages below it is `X/index.html`, served at `X/`.
@@ -59,17 +70,17 @@ Run it as `node scripts/preview.ts`, from a `preview` script of your package.jso
59
70
  your own, or else `CI_PAGES_URL`, which a pipeline sets. The base is that URL's path, such as
60
71
  `/project/`.
61
72
  - The markdown processor of remark and rehype, `unified()` of `@astrojs/markdown-remark`, with the
62
- plugins you pass as `baseConfig({ markdown: { remarkPlugins, rehypePlugins } })`.
73
+ plugins you pass as `baseConfig({ platform, markdown: { remarkPlugins, rehypePlugins } })`.
63
74
  - Vite from `baseConfig()` of [`@wtf/project-vite`](../project-vite), which resolves the
64
75
  workspace's packages from source and writes compressed copies of the site's scripts and styles.
65
- Pass its options as `baseConfig({ vite: { compress: false } })`.
66
- - The integrations `pages()` and `links()`. Switch either off with
67
- `baseConfig({ pages: false, links: false })`.
76
+ Pass its options as `baseConfig({ platform, vite: { compress: false } })`.
77
+ - The integrations `pages()` and `links()`, of the platform. Switch either off with
78
+ `baseConfig({ platform, pages: false, links: false })`.
68
79
  - A site whose URLs all start with their locale, as `/en/` and `/sv/`, gets a rule of `_redirects`
69
80
  that sends `/`, or the base, to the default locale's `/en/`, as nothing else answers it on GitLab
70
81
  Pages. `pages()` reads the locales of Astro's `i18n`, or of Starlight's `locales`, which Starlight
71
82
  hands to Astro: declare them once, in either. A site whose default locale has no prefix gets
72
- none. Switch it off with `baseConfig({ pages: { localeRedirect: false } })`.
83
+ none. Switch it off with `baseConfig({ platform, pages: { localeRedirect: false } })`.
73
84
 
74
85
  Each integration runs after every integration of your site, so it sees the build whole, as
75
86
  Starlight's search indexed it. Each reads the folder of the build through a handle of the
@@ -85,13 +96,16 @@ The config reads no file of its own. Keep the options of `baseConfig()` that JSO
85
96
 
86
97
  ```ts
87
98
  // astro.config.mjs
88
- import { loadConfig } from '@wtf/project-config/node'
99
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
100
+ import { nodePlatform } from '@wtf/platform-node/platform'
101
+ import { loadConfig } from '@wtf/project-config/load'
89
102
  import { sectionOf } from '@wtf/project-config/section'
90
103
  import { baseConfig } from '@wtf/project-astro/config'
91
104
  import { astroSchema } from '@wtf/project-astro/schema'
92
105
 
93
- const config = await loadConfig()
94
- export default baseConfig({ ...(await sectionOf(config, 'astro', astroSchema)) })
106
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
107
+ const config = await loadConfig({ platform })
108
+ export default baseConfig({ platform, ...(await sectionOf(config, 'astro', astroSchema)) })
95
109
  ```
96
110
 
97
111
  ```json
@@ -111,7 +125,9 @@ the rest into `baseConfig()`:
111
125
 
112
126
  ```ts
113
127
  // astro.config.mjs
114
- import { loadConfig } from '@wtf/project-config/node'
128
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
129
+ import { nodePlatform } from '@wtf/platform-node/platform'
130
+ import { loadConfig } from '@wtf/project-config/load'
115
131
  import { sectionOf } from '@wtf/project-config/section'
116
132
  import { baseConfig } from '@wtf/project-astro/config'
117
133
  import { astroSchemaWith } from '@wtf/project-astro/schema'
@@ -121,9 +137,10 @@ const siteSchema = astroSchemaWith<Analytics>('my-site', {
121
137
  analytics: { description: 'The ID of the site in its analytics.', type: 'string' }
122
138
  })
123
139
 
124
- const config = await loadConfig()
140
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
141
+ const config = await loadConfig({ platform })
125
142
  const { analytics, ...options } = (await sectionOf(config, 'astro', siteSchema)) ?? {}
126
- export default baseConfig(options)
143
+ export default baseConfig({ ...options, platform })
127
144
  ```
128
145
 
129
146
  ```json
@@ -17,13 +17,21 @@ site built to serve on GitLab Pages:
17
17
  - the integrations `pages()` of `./pages` and `links()` of `./links`, each of which can be
18
18
  switched off; `pages()` sends the base of a site whose default locale has its prefix there.
19
19
 
20
+ It reads nothing of the process: the config file, its entry point, builds the platform and gives
21
+ it, its environment and its file system.
22
+
20
23
  ```ts
21
24
  // astro.config.mjs
25
+ import { nodeStorage } from '@wtf/platform-fs-node/storage'
26
+ import { nodePlatform } from '@wtf/platform-node/platform'
22
27
  import { defineConfig, mergeConfig } from 'astro/config'
23
28
 
24
29
  import { baseConfig } from '@wtf/project-astro/config'
25
30
 
26
- export default defineConfig(mergeConfig(baseConfig(), { outDir: 'public', publicDir: 'static' }))
31
+ const platform = nodePlatform({ fetch, storage: nodeStorage() })
32
+ export default defineConfig(
33
+ mergeConfig(baseConfig({ platform }), { outDir: 'public', publicDir: 'static' })
34
+ )
27
35
  ```
28
36
 
29
37
  ## Type Aliases
@@ -3,30 +3,34 @@
3
3
  # Function: baseConfig()
4
4
 
5
5
  ```ts
6
- function baseConfig(options?): AstroUserConfig;
6
+ function baseConfig(options): AstroUserConfig;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-astro/src/config.ts:84](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/config.ts#L84)
9
+ Defined in: [packages/project-astro/src/config.ts:103](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L103)
10
10
 
11
11
  The base config a site's `astro.config.mjs` starts from, by
12
12
  `mergeConfig(baseConfig(), yours)` of `astro/config`, which appends the site's integrations to
13
13
  its own, and replaces the markdown processor of a site that gives one. It sets:
14
14
 
15
- - `site` and `base`, of the environment ([siteOf](siteOf.md), [baseOf](baseOf.md)), unless it names none;
15
+ - `site` and `base`, of the environment of the platform ([siteOf](siteOf.md), [baseOf](baseOf.md)), unless
16
+ it names none;
16
17
  - `trailingSlash: 'never'` and `build.format: 'preserve'`;
17
18
  - `markdown.processor`: `unified(options.markdown)` of `@astrojs/markdown-remark`;
18
- - `vite`: `baseConfig(options.vite)` of `@wtf/project-vite/config`;
19
+ - `vite`: `baseConfig({ platform, ...options.vite })` of `@wtf/project-vite/config`;
19
20
  - `integrations`: `pages()` of `./pages`, of the options `pages` gives, then `links()` of
20
- `./links`, unless `pages` or `links` is `false`. Each runs after every integration of the site.
21
+ `./links`, each of the platform, unless `pages` or `links` is `false`. Each runs after every
22
+ integration of the site.
21
23
 
22
24
  ```ts
25
+ import type { AstroPlatform } from '@wtf/project-astro'
23
26
  import type { RemarkPlugins } from 'astro'
24
27
  import { defineConfig, mergeConfig } from 'astro/config'
25
28
 
29
+ declare const platform: AstroPlatform
26
30
  declare const remarkPlugins: RemarkPlugins
27
31
 
28
32
  export default defineConfig(
29
- mergeConfig(baseConfig({ markdown: { remarkPlugins }, links: false }), {
33
+ mergeConfig(baseConfig({ platform, markdown: { remarkPlugins }, links: false }), {
30
34
  site: 'https://example.com/'
31
35
  })
32
36
  )
@@ -3,10 +3,10 @@
3
3
  # Function: baseOf()
4
4
 
5
5
  ```ts
6
- function baseOf(env?): string | undefined;
6
+ function baseOf(env): string | undefined;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-astro/src/env.ts:35](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/env.ts#L35)
9
+ Defined in: [packages/project-astro/src/env.ts:37](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/env.ts#L37)
10
10
 
11
11
  The base of the site, of `ASTRO_BASE` or else `CI_PAGES_URL` of `env`: the path of the URL,
12
12
  with a slash at each end, such as `/project/` of `https://group.gitlab.io/project`. None, of
@@ -14,9 +14,9 @@ neither, or of a site at the root of its domain.
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Default value |
18
- | ------ | ------ | ------ |
19
- | `env` | [`Env`](../type-aliases/Env.md) | `process.env` |
17
+ | Parameter | Type |
18
+ | ------ | ------ |
19
+ | `env` | [`Env`](../type-aliases/Env.md) |
20
20
 
21
21
  ## Returns
22
22
 
@@ -3,19 +3,19 @@
3
3
  # Function: siteOf()
4
4
 
5
5
  ```ts
6
- function siteOf(env?): string | undefined;
6
+ function siteOf(env): string | undefined;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-astro/src/env.ts:25](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/env.ts#L25)
9
+ Defined in: [packages/project-astro/src/env.ts:27](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/env.ts#L27)
10
10
 
11
11
  The site's URL, of `ASTRO_BASE` or else `CI_PAGES_URL` of `env`: its origin, with a final
12
12
  slash, as Astro's `site` takes it, such as `https://group.gitlab.io/`. None, of neither.
13
13
 
14
14
  ## Parameters
15
15
 
16
- | Parameter | Type | Default value |
17
- | ------ | ------ | ------ |
18
- | `env` | [`Env`](../type-aliases/Env.md) | `process.env` |
16
+ | Parameter | Type |
17
+ | ------ | ------ |
18
+ | `env` | [`Env`](../type-aliases/Env.md) |
19
19
 
20
20
  ## Returns
21
21
 
@@ -6,31 +6,19 @@
6
6
  type BaseOptions = object;
7
7
  ```
8
8
 
9
- Defined in: [packages/project-astro/src/config.ts:39](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/config.ts#L39)
9
+ Defined in: [packages/project-astro/src/config.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L48)
10
10
 
11
11
  What [baseConfig](../functions/baseConfig.md) takes.
12
12
 
13
13
  ## Properties
14
14
 
15
- ### env?
16
-
17
- ```ts
18
- readonly optional env?: Env;
19
- ```
20
-
21
- Defined in: [packages/project-astro/src/config.ts:56](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/config.ts#L56)
22
-
23
- The environment the site and its base are read of: the process's own by default.
24
-
25
- ***
26
-
27
15
  ### links?
28
16
 
29
17
  ```ts
30
18
  readonly optional links?: boolean;
31
19
  ```
32
20
 
33
- Defined in: [packages/project-astro/src/config.ts:54](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/config.ts#L54)
21
+ Defined in: [packages/project-astro/src/config.ts:71](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L71)
34
22
 
35
23
  Whether the build fails on a link of no page, or of a redirect, by `links()` of `./links`: by
36
24
  default.
@@ -43,7 +31,7 @@ default.
43
31
  readonly optional markdown?: UnifiedProcessorOptions;
44
32
  ```
45
33
 
46
- Defined in: [packages/project-astro/src/config.ts:44](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/config.ts#L44)
34
+ Defined in: [packages/project-astro/src/config.ts:58](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L58)
47
35
 
48
36
  The options of the markdown processor, `unified()` of `@astrojs/markdown-remark`: its remark
49
37
  and rehype plugins, among the rest. None by default.
@@ -56,19 +44,33 @@ and rehype plugins, among the rest. None by default.
56
44
  readonly optional pages?: boolean | PagesOptions;
57
45
  ```
58
46
 
59
- Defined in: [packages/project-astro/src/config.ts:51](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/config.ts#L51)
47
+ Defined in: [packages/project-astro/src/config.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L68)
60
48
 
61
49
  Whether the build is made to serve on GitLab Pages, by `pages()` of `./pages`: by default. Its
62
50
  options, as `{ localeRedirect: false }`, run it of them.
63
51
 
64
52
  ***
65
53
 
54
+ ### platform
55
+
56
+ ```ts
57
+ readonly platform: AstroPlatform;
58
+ ```
59
+
60
+ Defined in: [packages/project-astro/src/config.ts:53](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L53)
61
+
62
+ The platform the site is built on: its environment, which the site and its base are read of,
63
+ and its file system, which `pages()` and `links()` read the build by.
64
+
65
+ ***
66
+
66
67
  ### vite?
67
68
 
68
69
  ```ts
69
- readonly optional vite?: BaseOptions;
70
+ readonly optional vite?: Omit<BaseOptions, "platform">;
70
71
  ```
71
72
 
72
- Defined in: [packages/project-astro/src/config.ts:46](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/config.ts#L46)
73
+ Defined in: [packages/project-astro/src/config.ts:63](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/config.ts#L63)
73
74
 
74
- The options of `baseConfig()` of `@wtf/project-vite/config`, as `{ compress: false }`.
75
+ The options of `baseConfig()` of `@wtf/project-vite/config`, as `{ compress: false }`: each
76
+ but its platform, which is this one's.
@@ -3,9 +3,9 @@
3
3
  # Type Alias: Env
4
4
 
5
5
  ```ts
6
- type Env = Readonly<Record<string, string | undefined>>;
6
+ type Env = Platform["env"];
7
7
  ```
8
8
 
9
- Defined in: [packages/project-astro/src/env.ts:10](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/env.ts#L10)
9
+ Defined in: [packages/project-astro/src/env.ts:12](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/env.ts#L12)
10
10
 
11
- An environment, as Node's `process.env` is.
11
+ An environment, as a platform's `env` is.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: BrokenLinksError
4
4
 
5
- Defined in: [packages/project-astro/src/errors.ts:29](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L29)
5
+ Defined in: [packages/project-astro/src/errors.ts:29](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L29)
6
6
 
7
7
  Each internal link of a build that leads to no page, as GitLab Pages serves the build.
8
8
 
@@ -18,7 +18,7 @@ Each internal link of a build that leads to no page, as GitLab Pages serves the
18
18
  new BrokenLinksError(links): BrokenLinksError;
19
19
  ```
20
20
 
21
- Defined in: [packages/project-astro/src/errors.ts:33](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L33)
21
+ Defined in: [packages/project-astro/src/errors.ts:33](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L33)
22
22
 
23
23
  #### Parameters
24
24
 
@@ -39,9 +39,9 @@ Defined in: [packages/project-astro/src/errors.ts:33](https://gitlab.com/wetryfu
39
39
  | Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
40
40
  | ------ | ------ | ------ | ------ | ------ | ------ | ------ |
41
41
  | <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | [`SiteError`](SiteError.md).[`cause`](SiteError.md#property-cause) | - |
42
- | <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L17) |
43
- | <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L19) |
44
- | <a id="property-links"></a> `links` | `readonly` | readonly [`BrokenLink`](../../index/type-aliases/BrokenLink.md)[] | `undefined` | The links, each with its page. | - | [packages/project-astro/src/errors.ts:31](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L31) |
42
+ | <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L17) |
43
+ | <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L19) |
44
+ | <a id="property-links"></a> `links` | `readonly` | readonly [`BrokenLink`](../../index/type-aliases/BrokenLink.md)[] | `undefined` | The links, each with its page. | - | [packages/project-astro/src/errors.ts:31](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L31) |
45
45
  | <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`message`](SiteError.md#property-message) | - |
46
46
  | <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`name`](SiteError.md#property-name) | - |
47
47
  | <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`stack`](SiteError.md#property-stack) | - |
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: InvalidRedirectError
4
4
 
5
- Defined in: [packages/project-astro/src/errors.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L64)
5
+ Defined in: [packages/project-astro/src/errors.ts:64](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L64)
6
6
 
7
7
  A rule of `_redirects` that GitLab Pages would ignore, and why, as it is written.
8
8
 
@@ -18,7 +18,7 @@ A rule of `_redirects` that GitLab Pages would ignore, and why, as it is written
18
18
  new InvalidRedirectError(rule, reason): InvalidRedirectError;
19
19
  ```
20
20
 
21
- Defined in: [packages/project-astro/src/errors.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L70)
21
+ Defined in: [packages/project-astro/src/errors.ts:70](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L70)
22
22
 
23
23
  #### Parameters
24
24
 
@@ -40,12 +40,12 @@ Defined in: [packages/project-astro/src/errors.ts:70](https://gitlab.com/wetryfu
40
40
  | Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
41
41
  | ------ | ------ | ------ | ------ | ------ | ------ | ------ |
42
42
  | <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | [`SiteError`](SiteError.md).[`cause`](SiteError.md#property-cause) | - |
43
- | <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L17) |
44
- | <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L19) |
43
+ | <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L17) |
44
+ | <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L19) |
45
45
  | <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`message`](SiteError.md#property-message) | - |
46
46
  | <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`name`](SiteError.md#property-name) | - |
47
- | <a id="property-reason"></a> `reason` | `readonly` | `string` | `undefined` | Why GitLab Pages would ignore it. | - | [packages/project-astro/src/errors.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L68) |
48
- | <a id="property-rule"></a> `rule` | `readonly` | `string` | `undefined` | The rule, as a line of the file, or what is too much of the file. | - | [packages/project-astro/src/errors.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L66) |
47
+ | <a id="property-reason"></a> `reason` | `readonly` | `string` | `undefined` | Why GitLab Pages would ignore it. | - | [packages/project-astro/src/errors.ts:68](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L68) |
48
+ | <a id="property-rule"></a> `rule` | `readonly` | `string` | `undefined` | The rule, as a line of the file, or what is too much of the file. | - | [packages/project-astro/src/errors.ts:66](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L66) |
49
49
  | <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`stack`](SiteError.md#property-stack) | - |
50
50
  | <a id="property-stacktracelimit"></a> `stackTraceLimit` | `static` | `number` | `undefined` | The `Error.stackTraceLimit` property specifies the number of stack frames collected by a stack trace (whether generated by `new Error().stack` or `Error.captureStackTrace(obj)`). The default value is `10` but may be set to any valid JavaScript number. Changes will affect any stack trace captured _after_ the value has been changed. If set to a non-number value, or set to a negative number, stack traces will not capture any frames. | [`SiteError`](SiteError.md).[`stackTraceLimit`](SiteError.md#property-stacktracelimit) | - |
51
51
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: RedirectedLinksError
4
4
 
5
- Defined in: [packages/project-astro/src/errors.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L48)
5
+ Defined in: [packages/project-astro/src/errors.ts:48](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L48)
6
6
 
7
7
  Each internal link of a build that leads to its page only through a redirect, which costs each
8
8
  reader a round trip: link to where it leads instead.
@@ -19,7 +19,7 @@ reader a round trip: link to where it leads instead.
19
19
  new RedirectedLinksError(links): RedirectedLinksError;
20
20
  ```
21
21
 
22
- Defined in: [packages/project-astro/src/errors.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L52)
22
+ Defined in: [packages/project-astro/src/errors.ts:52](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L52)
23
23
 
24
24
  #### Parameters
25
25
 
@@ -40,9 +40,9 @@ Defined in: [packages/project-astro/src/errors.ts:52](https://gitlab.com/wetryfu
40
40
  | Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
41
41
  | ------ | ------ | ------ | ------ | ------ | ------ | ------ |
42
42
  | <a id="property-cause"></a> `cause?` | `public` | `unknown` | `undefined` | - | [`SiteError`](SiteError.md).[`cause`](SiteError.md#property-cause) | - |
43
- | <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L17) |
44
- | <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L19) |
45
- | <a id="property-links"></a> `links` | `readonly` | readonly [`RedirectedLink`](../../index/type-aliases/RedirectedLink.md)[] | `undefined` | The links, each with its page and where it leads. | - | [packages/project-astro/src/errors.ts:50](https://gitlab.com/wetryfun/project/project/-/blob/docs-v2.3.1/packages/project-astro/src/errors.ts#L50) |
43
+ | <a id="property-code"></a> `code` | `readonly` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`code`](SiteError.md#property-code) | [packages/project-astro/src/errors.ts:17](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L17) |
44
+ | <a id="property-exitcode"></a> `exitCode` | `readonly` | `number` | `1` | What a command that fails by it exits with. | [`SiteError`](SiteError.md).[`exitCode`](SiteError.md#property-exitcode) | [packages/project-astro/src/errors.ts:19](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L19) |
45
+ | <a id="property-links"></a> `links` | `readonly` | readonly [`RedirectedLink`](../../index/type-aliases/RedirectedLink.md)[] | `undefined` | The links, each with its page and where it leads. | - | [packages/project-astro/src/errors.ts:50](https://gitlab.com/wetryfun/project/project/-/blob/docs-v3.0.0/packages/project-astro/src/errors.ts#L50) |
46
46
  | <a id="property-message"></a> `message` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`message`](SiteError.md#property-message) | - |
47
47
  | <a id="property-name"></a> `name` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`name`](SiteError.md#property-name) | - |
48
48
  | <a id="property-stack"></a> `stack?` | `public` | `string` | `undefined` | - | [`SiteError`](SiteError.md).[`stack`](SiteError.md#property-stack) | - |