@wtf/project-docs 5.1.1 → 5.3.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.
- package/README.md +2 -0
- package/api/.generated +4 -0
- package/api/@wtf/project-astro/README.md +3 -1
- package/api/@wtf/project-astro/config/functions/baseConfig.md +1 -1
- package/api/@wtf/project-astro/config/functions/baseOf.md +1 -1
- package/api/@wtf/project-astro/config/functions/siteOf.md +1 -1
- package/api/@wtf/project-astro/config/type-aliases/BaseOptions.md +6 -6
- package/api/@wtf/project-astro/config/type-aliases/Env.md +1 -1
- package/api/@wtf/project-astro/errors/classes/BrokenLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/InvalidRedirectError.md +6 -6
- package/api/@wtf/project-astro/errors/classes/RedirectedLinksError.md +5 -5
- package/api/@wtf/project-astro/errors/classes/SiteError.md +4 -4
- package/api/@wtf/project-astro/index/README.md +4 -2
- package/api/@wtf/project-astro/index/type-aliases/AstroPlatform.md +1 -1
- package/api/@wtf/project-astro/index/type-aliases/BrokenLink.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/IgnoredLine.md +4 -4
- package/api/@wtf/project-astro/index/type-aliases/RedirectInput.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/RedirectMatch.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/RedirectRule.md +5 -5
- package/api/@wtf/project-astro/index/type-aliases/RedirectStatus.md +1 -1
- package/api/@wtf/project-astro/index/type-aliases/RedirectedLink.md +2 -2
- package/api/@wtf/project-astro/index/type-aliases/Redirects.md +3 -3
- package/api/@wtf/project-astro/index/type-aliases/RouteParams.md +36 -0
- package/api/@wtf/project-astro/links/functions/brokenLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/functions/links.md +1 -1
- package/api/@wtf/project-astro/links/functions/redirectedLinksIn.md +1 -1
- package/api/@wtf/project-astro/links/type-aliases/LinksOptions.md +2 -2
- package/api/@wtf/project-astro/links/variables/LINKS.md +1 -1
- package/api/@wtf/project-astro/pages/functions/fixSearchUrlsIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/moveConflictingPages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/pages.md +1 -1
- package/api/@wtf/project-astro/pages/functions/prefixedLocaleOf.md +1 -1
- package/api/@wtf/project-astro/pages/functions/redirectBaseToLocaleIn.md +1 -1
- package/api/@wtf/project-astro/pages/functions/slashFolderLinksIn.md +1 -1
- package/api/@wtf/project-astro/pages/type-aliases/I18n.md +1 -1
- package/api/@wtf/project-astro/pages/type-aliases/PagesOptions.md +2 -2
- package/api/@wtf/project-astro/pages/variables/PAGES.md +1 -1
- package/api/@wtf/project-astro/preview/functions/files.md +1 -1
- package/api/@wtf/project-astro/preview/functions/listen.md +1 -1
- package/api/@wtf/project-astro/preview/functions/notFound.md +1 -1
- package/api/@wtf/project-astro/preview/functions/pagesOf.md +1 -1
- package/api/@wtf/project-astro/preview/functions/previewOf.md +1 -1
- package/api/@wtf/project-astro/preview/type-aliases/FilesOptions.md +2 -2
- package/api/@wtf/project-astro/preview/type-aliases/Handler.md +1 -1
- package/api/@wtf/project-astro/preview/type-aliases/ListenOptions.md +4 -4
- package/api/@wtf/project-astro/preview/type-aliases/Listening.md +5 -5
- package/api/@wtf/project-astro/preview/type-aliases/Pages.md +3 -3
- package/api/@wtf/project-astro/preview/type-aliases/Preview.md +4 -4
- package/api/@wtf/project-astro/preview/type-aliases/PreviewOptions.md +3 -3
- package/api/@wtf/project-astro/redirects/functions/formatRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/matchRedirect.md +1 -1
- package/api/@wtf/project-astro/redirects/functions/parseRedirects.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_PARTS.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_RULES.md +1 -1
- package/api/@wtf/project-astro/redirects/variables/MAX_SIZE.md +1 -1
- package/api/@wtf/project-astro/routes/README.md +32 -0
- package/api/@wtf/project-astro/routes/functions/routeParams.md +26 -0
- package/api/@wtf/project-astro/routes/type-aliases/RouteParamsOptions.md +23 -0
- package/api/@wtf/project-astro/schema/functions/astroSchemaWith.md +1 -1
- package/api/@wtf/project-astro/schema/type-aliases/AstroSection.md +1 -1
- package/api/@wtf/project-astro/schema/type-aliases/JsonSchema.md +12 -12
- package/api/@wtf/project-astro/schema/type-aliases/OptionsSchema.md +1 -1
- package/api/@wtf/project-astro/schema/variables/astroProperties.md +1 -1
- package/api/@wtf/project-astro/schema/variables/astroSchema.md +1 -1
- package/api/@wtf/project-config/define/functions/defineConfig.md +1 -1
- package/api/@wtf/project-config/env/functions/envNameOf.md +1 -1
- package/api/@wtf/project-config/env/functions/envPrefixOf.md +1 -1
- package/api/@wtf/project-config/env/functions/jsonSchemaOf.md +1 -1
- package/api/@wtf/project-config/env/functions/variablesOf.md +1 -1
- package/api/@wtf/project-config/env/functions/withEnvironment.md +1 -1
- package/api/@wtf/project-config/env/type-aliases/Environment.md +1 -1
- package/api/@wtf/project-config/env/type-aliases/EnvironmentValue.md +3 -3
- package/api/@wtf/project-config/env/type-aliases/WithEnvironment.md +3 -3
- package/api/@wtf/project-config/errors/classes/ConfigError.md +4 -4
- package/api/@wtf/project-config/errors/classes/ConfigFileMismatchError.md +6 -6
- package/api/@wtf/project-config/errors/classes/ConfigInCodeError.md +5 -5
- package/api/@wtf/project-config/errors/classes/ConfigPathError.md +5 -5
- package/api/@wtf/project-config/errors/classes/EnvPlaceholderUnsetError.md +6 -6
- package/api/@wtf/project-config/errors/classes/InvalidConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/classes/InvalidSectionError.md +7 -7
- package/api/@wtf/project-config/errors/classes/NamedError.md +12 -12
- package/api/@wtf/project-config/errors/classes/NoConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/classes/NoConfigValueError.md +6 -6
- package/api/@wtf/project-config/errors/classes/SyncSchemaError.md +5 -5
- package/api/@wtf/project-config/errors/classes/UnwritableConfigFileError.md +5 -5
- package/api/@wtf/project-config/errors/type-aliases/NamedErrorCode.md +1 -1
- package/api/@wtf/project-config/errors/type-aliases/NamedErrorDetails.md +9 -9
- package/api/@wtf/project-config/index/type-aliases/ConfigDefaults.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigEnvironment.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/ConfigIssue.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigNames.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/ConfigPath.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigPlatform.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigSection.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ConfigSource.md +3 -3
- package/api/@wtf/project-config/index/type-aliases/ConfigWrite.md +10 -10
- package/api/@wtf/project-config/index/type-aliases/ImportModule.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/JsonSchema.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/LocatedConfig.md +4 -4
- package/api/@wtf/project-config/index/type-aliases/NamespaceConfig.md +2 -2
- package/api/@wtf/project-config/index/type-aliases/ResolvedConfig.md +9 -9
- package/api/@wtf/project-config/index/type-aliases/SectionSchema.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/SectionsOf.md +1 -1
- package/api/@wtf/project-config/index/type-aliases/ValidateSection.md +1 -1
- package/api/@wtf/project-config/load/functions/ignoredWarning.md +1 -1
- package/api/@wtf/project-config/load/functions/importFileModule.md +1 -1
- package/api/@wtf/project-config/load/functions/loadConfig.md +1 -1
- package/api/@wtf/project-config/load/type-aliases/LoadLayers.md +3 -3
- package/api/@wtf/project-config/load/type-aliases/LoadOptions.md +3 -3
- package/api/@wtf/project-config/load/type-aliases/LoadPlatform.md +1 -1
- package/api/@wtf/project-config/locate/functions/configFilesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/configNamesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/jsonFilesOf.md +1 -1
- package/api/@wtf/project-config/locate/functions/locateConfig.md +1 -1
- package/api/@wtf/project-config/locate/functions/projectRootOf.md +1 -1
- package/api/@wtf/project-config/locate/type-aliases/LocateNames.md +2 -2
- package/api/@wtf/project-config/locate/type-aliases/LocateOptions.md +2 -2
- package/api/@wtf/project-config/locate/type-aliases/NamespaceNames.md +2 -2
- package/api/@wtf/project-config/locate/variables/DEFAULT_NAMESPACE.md +1 -1
- package/api/@wtf/project-config/named/functions/factoryOf.md +1 -1
- package/api/@wtf/project-config/named/functions/namedSchema.md +1 -1
- package/api/@wtf/project-config/named/functions/namedSetSchema.md +1 -1
- package/api/@wtf/project-config/named/functions/resolveNamed.md +1 -1
- package/api/@wtf/project-config/named/functions/resolveNamedSet.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/LoadModule.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/ModuleReference.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedCheckOptions.md +5 -5
- package/api/@wtf/project-config/named/type-aliases/NamedEntries.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedFactory.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedOptions.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedReference.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedResolveOptions.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedSchema.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedSchemaOptions.md +4 -4
- package/api/@wtf/project-config/named/type-aliases/NamedSet.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedSetOptions.md +2 -2
- package/api/@wtf/project-config/named/type-aliases/NamedSetSchemaOptions.md +3 -3
- package/api/@wtf/project-config/named/type-aliases/NamedSets.md +1 -1
- package/api/@wtf/project-config/named/type-aliases/NamedUse.md +1 -1
- package/api/@wtf/project-config/path/functions/configPathOf.md +1 -1
- package/api/@wtf/project-config/path/functions/textOfConfigPath.md +1 -1
- package/api/@wtf/project-config/path/functions/valueAt.md +1 -1
- package/api/@wtf/project-config/placeholder/functions/expandPlaceholders.md +1 -1
- package/api/@wtf/project-config/placeholder/functions/expandString.md +1 -1
- package/api/@wtf/project-config/schema/functions/namespaceSchema.md +1 -1
- package/api/@wtf/project-config/schema/functions/sectionIdOf.md +1 -1
- package/api/@wtf/project-config/schema/type-aliases/NamespaceSchemaOptions.md +3 -3
- package/api/@wtf/project-config/schema/variables/JSON_SCHEMA_DRAFT.md +1 -1
- package/api/@wtf/project-config/section/functions/issuesOf.md +1 -1
- package/api/@wtf/project-config/section/functions/issuesOfSync.md +1 -1
- package/api/@wtf/project-config/section/functions/mergeSection.md +1 -1
- package/api/@wtf/project-config/section/functions/sectionOf.md +1 -1
- package/api/@wtf/project-config/section/type-aliases/Checked.md +3 -3
- package/api/@wtf/project-config/write/functions/setConfigValue.md +1 -1
- package/api/@wtf/project-config/write/functions/unsetConfigValue.md +1 -1
- package/api/@wtf/project-config/write/type-aliases/WriteOptions.md +2 -2
- package/api/@wtf/project-oxfmt/config/functions/oxfmtConfig.md +1 -1
- package/api/@wtf/project-oxfmt/config/type-aliases/OxfmtOptions.md +1 -1
- package/api/@wtf/project-oxfmt/config/variables/OXFMT_DEFAULTS.md +6 -6
- package/api/@wtf/project-oxfmt/config/variables/default.md +1 -1
- package/api/@wtf/project-oxfmt/schema/variables/oxfmtSchema.md +1 -1
- package/api/@wtf/project-oxlint/config/functions/oxlintConfig.md +1 -1
- package/api/@wtf/project-oxlint/config/type-aliases/OxlintOptions.md +1 -1
- package/api/@wtf/project-oxlint/config/variables/OXLINT_DEFAULTS.md +17 -17
- package/api/@wtf/project-oxlint/config/variables/default.md +1 -1
- package/api/@wtf/project-oxlint/schema/variables/oxlintSchema.md +1 -1
- package/api/@wtf/project-resolve/condition/variables/SOURCE_CONDITION.md +1 -1
- package/api/@wtf/project-resolve/env/functions/isHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/optionsWithoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/functions/withoutHook.md +1 -1
- package/api/@wtf/project-resolve/env/type-aliases/Env.md +1 -1
- package/api/@wtf/project-resolve/errors/classes/ResolveError.md +4 -4
- package/api/@wtf/project-resolve/errors/classes/UnreadableWorkspaceError.md +6 -6
- package/api/@wtf/project-resolve/errors/classes/WorkspaceError.md +5 -5
- package/api/@wtf/project-resolve/hooks/functions/candidatesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesHookOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/functions/sourcesOf.md +1 -1
- package/api/@wtf/project-resolve/hooks/variables/resolveTypeScript.md +1 -1
- package/api/@wtf/project-resolve/node/functions/nodePlatform.md +5 -5
- package/api/@wtf/project-resolve/register/variables/REGISTERED.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/filesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/packagesOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceAt.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootAbove.md +1 -1
- package/api/@wtf/project-resolve/workspace/functions/workspaceRootOf.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Agent.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/DirectoryEntry.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/FileContents.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManager.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/PackageManagerName.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/ProcessWorkspaceOptions.md +1 -1
- package/api/@wtf/project-resolve/workspace/type-aliases/Workspace.md +5 -5
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceDirectoryHandle.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFileHandle.md +3 -3
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceFiles.md +6 -6
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspaceOptions.md +2 -2
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePackage.md +4 -4
- package/api/@wtf/project-resolve/workspace/type-aliases/WorkspacePaths.md +7 -7
- package/api/@wtf/project-storybook/config/functions/escapeAttribute.md +1 -1
- package/api/@wtf/project-storybook/config/functions/folderOf.md +1 -1
- package/api/@wtf/project-storybook/config/functions/metaTags.md +1 -1
- package/api/@wtf/project-storybook/config/functions/refsOf.md +1 -1
- package/api/@wtf/project-storybook/config/functions/storybookConfig.md +1 -1
- package/api/@wtf/project-storybook/config/type-aliases/ComposedRef.md +3 -3
- package/api/@wtf/project-storybook/config/type-aliases/StorybookConfig.md +8 -8
- package/api/@wtf/project-storybook/config/type-aliases/StorybookOptions.md +13 -13
- package/api/@wtf/project-storybook/config/type-aliases/StorybookRef.md +4 -4
- package/api/@wtf/project-storybook/config/type-aliases/VersionLabel.md +4 -4
- package/api/@wtf/project-storybook/manager/functions/registerVersion.md +1 -1
- package/api/@wtf/project-storybook/manager/type-aliases/VersionOptions.md +2 -2
- package/api/@wtf/project-storybook/schema/type-aliases/StorybookSection.md +1 -1
- package/api/@wtf/project-storybook/schema/variables/storybookSchema.md +1 -1
- package/api/@wtf/project-storybook/versions/functions/labelOf.md +1 -1
- package/api/@wtf/project-storybook/versions/functions/versionsOf.md +1 -1
- package/api/@wtf/project-storybook/versions/type-aliases/Label.md +5 -5
- package/api/@wtf/project-storybook/versions/type-aliases/ListedVersion.md +4 -4
- package/api/@wtf/project-storybook/versions/variables/META.md +5 -5
- package/api/@wtf/project-typedoc/README.md +1 -1
- package/api/@wtf/project-typedoc/config/functions/gitRevisionOf.md +1 -1
- package/api/@wtf/project-typedoc/config/functions/typedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocConfig.md +1 -1
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocOptions.md +7 -7
- package/api/@wtf/project-typedoc/config/type-aliases/TypedocPlatform.md +2 -2
- package/api/@wtf/project-typedoc/plugins/functions/cleanGeneratedMarkdown.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/linkTrackedSources.md +1 -1
- package/api/@wtf/project-typedoc/plugins/functions/preventMediaFiles.md +1 -1
- package/api/@wtf/project-typedoc/plugins/type-aliases/CleanGeneratedMarkdownOptions.md +4 -4
- package/api/@wtf/project-typedoc/plugins/type-aliases/LinkTrackedSourcesOptions.md +3 -3
- package/api/@wtf/project-typedoc/plugins/type-aliases/PreventMediaFilesOptions.md +4 -4
- package/api/@wtf/project-typedoc/plugins/type-aliases/TypedocPlugin.md +1 -1
- package/api/@wtf/project-typedoc/schema/type-aliases/TypedocSection.md +2 -2
- package/api/@wtf/project-typedoc/schema/variables/typedocSchema.md +1 -1
- package/api/@wtf/project-vite/config/functions/baseConfig.md +4 -4
- package/api/@wtf/project-vite/config/functions/buildsSite.md +1 -1
- package/api/@wtf/project-vite/config/functions/compress.md +1 -1
- package/api/@wtf/project-vite/config/functions/conditionsOf.md +1 -1
- package/api/@wtf/project-vite/config/functions/fromDist.md +1 -1
- package/api/@wtf/project-vite/config/type-aliases/BaseOptions.md +3 -3
- package/api/@wtf/project-vite/config/type-aliases/CompressOptions.md +4 -4
- package/api/@wtf/project-vite/config/variables/CLIENT_CONDITIONS.md +1 -1
- package/api/@wtf/project-vite/config/variables/COMPRESSIBLE.md +1 -1
- package/api/@wtf/project-vite/config/variables/THRESHOLD.md +1 -1
- package/api/@wtf/project-vite/schema/type-aliases/ViteSection.md +1 -1
- package/api/@wtf/project-vite/schema/variables/viteSchema.md +1 -1
- package/api/@wtf/project-vitest/browser/functions/browserConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/functions/browserRootConfig.md +1 -1
- package/api/@wtf/project-vitest/browser/type-aliases/BrowserOptions.md +4 -4
- package/api/@wtf/project-vitest/config/functions/fromDist.md +1 -1
- package/api/@wtf/project-vitest/config/functions/integrationConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/packageConfig.md +1 -1
- package/api/@wtf/project-vitest/config/functions/rootConfig.md +1 -1
- package/api/@wtf/project-vitest/config/type-aliases/PackageOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootConfigOptions.md +2 -2
- package/api/@wtf/project-vitest/config/type-aliases/RootOptions.md +8 -8
- package/api/@wtf/project-vitest/config/type-aliases/VitestPlatform.md +4 -4
- package/api/@wtf/project-vitest/config/type-aliases/VitestRootPlatform.md +1 -1
- package/api/@wtf/project-vitest/config/variables/GUARD_TIMEOUT.md +1 -1
- package/api/@wtf/project-vitest/config/variables/integration.md +9 -9
- package/api/@wtf/project-vitest/process/functions/childEnv.md +1 -1
- package/api/@wtf/project-vitest/process/type-aliases/Env.md +1 -1
- package/api/@wtf/project-vitest/schema/type-aliases/VitestSection.md +1 -1
- package/api/@wtf/project-vitest/schema/variables/vitestSchema.md +1 -1
- package/api/@wtf/project-vitest/storybook/functions/storybookConfig.md +1 -1
- package/api/@wtf/project-vitest/storybook/type-aliases/StorybookOptions.md +2 -2
- package/api/@wtf/project-wpt/builtins/functions/builtins.md +1 -1
- package/api/@wtf/project-wpt/builtins/functions/intrinsics.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutFolderOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutTests.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/checkoutWpt.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/execOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/functions/fileOf.md +1 -1
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckedOutTests.md +3 -3
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutOptions.md +8 -8
- package/api/@wtf/project-wpt/checkout/type-aliases/CheckoutTestsOptions.md +2 -2
- package/api/@wtf/project-wpt/checkout/variables/HARNESS.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/REWRITES.md +1 -1
- package/api/@wtf/project-wpt/checkout/variables/WPT_REPOSITORY.md +1 -1
- package/api/@wtf/project-wpt/errors/classes/HarnessFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidCommitError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/InvalidExpectationsError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NoSuiteError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/NotInWptError.md +5 -5
- package/api/@wtf/project-wpt/errors/classes/StaleExpectationError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/SubtestFailedError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/UnexpectedPassError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptError.md +4 -4
- package/api/@wtf/project-wpt/errors/classes/WptFetchError.md +4 -4
- package/api/@wtf/project-wpt/expectations/functions/checkHarness.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/checkSubtest.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/expectationsIssues.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/readExpectations.md +1 -1
- package/api/@wtf/project-wpt/expectations/functions/staleOf.md +1 -1
- package/api/@wtf/project-wpt/expectations/type-aliases/ReadExpectations.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/CreateRealm.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Exec.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Expectations.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/FileExpectation.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/FileResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/Globals.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HarnessResult.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/HarnessStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/HoldRejections.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/Realm.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/SubtestResult.md +5 -5
- package/api/@wtf/project-wpt/index/type-aliases/SubtestStatus.md +1 -1
- package/api/@wtf/project-wpt/index/type-aliases/WptFile.md +3 -3
- package/api/@wtf/project-wpt/index/type-aliases/WptFiles.md +9 -9
- package/api/@wtf/project-wpt/index/type-aliases/WptPaths.md +4 -4
- package/api/@wtf/project-wpt/index/type-aliases/WptPlatform.md +2 -2
- package/api/@wtf/project-wpt/index/type-aliases/WptSystem.md +6 -6
- package/api/@wtf/project-wpt/index/type-aliases/WptTest.md +3 -3
- package/api/@wtf/project-wpt/meta/functions/idOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/metaOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/runsOutsideWindow.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/scriptPathsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/functions/testsOf.md +1 -1
- package/api/@wtf/project-wpt/meta/type-aliases/Meta.md +6 -6
- package/api/@wtf/project-wpt/node/functions/nodeSystem.md +1 -1
- package/api/@wtf/project-wpt/node/type-aliases/NodeSystemPlatform.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeFiles.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRealm.md +1 -1
- package/api/@wtf/project-wpt/node/variables/nodeRejections.md +1 -1
- package/api/@wtf/project-wpt/run/functions/runTest.md +1 -1
- package/api/@wtf/project-wpt/run/type-aliases/RunOptions.md +8 -8
- package/api/@wtf/project-wpt/run/type-aliases/RunPlatform.md +1 -1
- package/api/@wtf/project-wpt/run/variables/LONG_TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/TIMEOUT.md +1 -1
- package/api/@wtf/project-wpt/run/variables/WPT_ORIGIN.md +1 -1
- package/api/@wtf/project-wpt/schema/type-aliases/WptConfig.md +2 -2
- package/api/@wtf/project-wpt/schema/type-aliases/WptSuiteConfig.md +2 -2
- package/api/@wtf/project-wpt/schema/variables/wptSchema.md +1 -1
- package/api/@wtf/project-wpt/suite/functions/wptSuite.md +1 -1
- package/api/@wtf/project-wpt/suite/type-aliases/WptSuiteOptions.md +8 -8
- package/guides/astro.md +20 -0
- package/guides/getting-started.md +1 -1
- package/guides/presets.md +2 -1
- package/guides/typedoc.md +256 -0
- package/package.json +2 -2
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
# API documentation
|
|
2
|
+
|
|
3
|
+
This guide shows you how to turn the JSDoc of your workspace's packages into an API reference in
|
|
4
|
+
markdown, with `@wtf/project-typedoc`. You get a page for each package, each of its subpaths and
|
|
5
|
+
each export, an `llms.txt` for agents, and a link from each export to its line of source in your
|
|
6
|
+
repository. A broken link or any other warning fails the build, so the reference never names what
|
|
7
|
+
is not there.
|
|
8
|
+
|
|
9
|
+
## Set up a docs package
|
|
10
|
+
|
|
11
|
+
The reference is built by a docs package of its own, `packages/docs`, which holds your guides and
|
|
12
|
+
the `api/` folder TypeDoc writes. Add the preset, TypeDoc and its two markdown plugins, which are
|
|
13
|
+
peers of the preset, and the platform its config file builds:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
pnpm add --save-dev --filter @scope/docs @wtf/project-typedoc typedoc typedoc-plugin-markdown \
|
|
17
|
+
typedoc-plugin-llms-txt @wtf/platform-node @wtf/platform-fs-node
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Give it a script that runs TypeDoc, and a `typedoc.config.mjs` of `typedocConfig()`:
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{
|
|
24
|
+
"name": "@scope/docs",
|
|
25
|
+
"private": true,
|
|
26
|
+
"type": "module",
|
|
27
|
+
"scripts": { "typedoc": "typedoc" }
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
// packages/docs/typedoc.config.mjs
|
|
33
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
34
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
35
|
+
import { typedocConfig } from '@wtf/project-typedoc/config'
|
|
36
|
+
|
|
37
|
+
export default typedocConfig({
|
|
38
|
+
platform: nodePlatform({ fetch, storage: nodeStorage() }),
|
|
39
|
+
docs: import.meta.url,
|
|
40
|
+
repository: 'https://gitlab.com/group/project',
|
|
41
|
+
entryPoints: ['../core', '../cli']
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The config file is the entry point: it builds the platform, Node's here, and gives it to the
|
|
46
|
+
preset, which reads nothing of the process itself. `typedocConfig()` is async, and TypeDoc awaits
|
|
47
|
+
what the file exports. Next to it, the docs package holds `llms-template.md`, the template of
|
|
48
|
+
`api/llms.txt` that typedoc-plugin-llms-txt fills in.
|
|
49
|
+
|
|
50
|
+
Then build the reference from the root:
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
pnpm run build
|
|
54
|
+
pnpm --filter @scope/docs run typedoc
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Its options
|
|
58
|
+
|
|
59
|
+
`typedocConfig()` takes `TypedocOptions`:
|
|
60
|
+
|
|
61
|
+
| Option | What it is |
|
|
62
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
63
|
+
| `platform` | What the config runs on: `spawn`, which runs git; `argv`, the command line of the run; `path`; and `dirs.cwd`, which a relative `docs` is resolved from |
|
|
64
|
+
| `docs` | The docs package: the URL of its `typedoc.config.mjs`, as `import.meta.url`, or its folder. The repo's root is two folders up, as in `packages/docs` |
|
|
65
|
+
| `repository` | Your repository's web page on GitLab: each export links to `<repository>/-/blob/<revision>/<path>#L<line>` |
|
|
66
|
+
| `entryPoints` | The packages to document, each by its folder from the docs package |
|
|
67
|
+
| `categories` | The folders of hand-written docs in the docs package, `['guides']` by default |
|
|
68
|
+
| `plugins` | TypeDoc plugins of your own, each a function of TypeDoc's application or a module by its name; none by default |
|
|
69
|
+
| `packageOptions` | TypeDoc's options for each package, laid over the ones the preset gives each package |
|
|
70
|
+
|
|
71
|
+
Any other option is TypeDoc's, or one of its plugins', and replaces the preset's, as
|
|
72
|
+
`llmsTxtHeader` and `llmsTxtQuickReference` of typedoc-plugin-llms-txt. Add your plugins in
|
|
73
|
+
`plugins`, not in TypeDoc's own `plugin`: that one would replace the preset's whole list, its
|
|
74
|
+
markdown plugins too.
|
|
75
|
+
|
|
76
|
+
The preset documents each folder of `entryPoints` as a package (`entryPointStrategy: 'packages'`),
|
|
77
|
+
one module for each of its subpaths, and leaves out private, protected and `@internal` members.
|
|
78
|
+
It writes `api/` whole on each run (`cleanOutputDir`), so no page of an earlier build stays
|
|
79
|
+
behind. A warning is an error (`treatWarningsAsErrors`), an invalid `{@link}` among them.
|
|
80
|
+
|
|
81
|
+
### From the wtf configuration
|
|
82
|
+
|
|
83
|
+
The options can live in the `typedoc` section of your `wtf` configuration, where `typedocSchema` of
|
|
84
|
+
`@wtf/project-typedoc/schema` checks them. The section holds any option but `platform`, which is
|
|
85
|
+
the config file's own. Load the configuration in the config file and spread the section in:
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
// packages/docs/typedoc.config.mjs
|
|
89
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
90
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
91
|
+
import { loadConfig } from '@wtf/project-config/load'
|
|
92
|
+
import { sectionOf } from '@wtf/project-config/section'
|
|
93
|
+
import { typedocConfig } from '@wtf/project-typedoc/config'
|
|
94
|
+
import { typedocSchema } from '@wtf/project-typedoc/schema'
|
|
95
|
+
|
|
96
|
+
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
97
|
+
const config = await loadConfig({ platform })
|
|
98
|
+
export default typedocConfig({
|
|
99
|
+
platform,
|
|
100
|
+
docs: import.meta.url,
|
|
101
|
+
repository: 'https://gitlab.com/group/project',
|
|
102
|
+
entryPoints: ['../core'],
|
|
103
|
+
...(await sectionOf(config, 'typedoc', typedocSchema))
|
|
104
|
+
})
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
[Configuration](config.md) says how a section is loaded, and how the environment overrides it.
|
|
108
|
+
|
|
109
|
+
## What your packages need
|
|
110
|
+
|
|
111
|
+
TypeDoc writes the reference from your doc comments, so each package needs two things.
|
|
112
|
+
|
|
113
|
+
**A comment on each entry module.** Its `@packageDocumentation` comment is the text of the
|
|
114
|
+
module's page. The module of your package's root, `.`, also needs `@module index`. Without it the
|
|
115
|
+
root module has no name: the package's page lists it as an empty link, and its pages land in the
|
|
116
|
+
package's own folder, beside the package's page, instead of a folder of their own.
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
// packages/core/src/index.ts, the module of the package's root
|
|
120
|
+
/**
|
|
121
|
+
* The types of the core: the options of a run ({@link RunOptions}). Types only, with no code.
|
|
122
|
+
*
|
|
123
|
+
* @packageDocumentation
|
|
124
|
+
* @module index
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
/** The options of a run. */
|
|
128
|
+
export type RunOptions = {
|
|
129
|
+
/** The folder the run starts in. */
|
|
130
|
+
readonly cwd: string
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**A JSDoc on each export.** An export with no comment is listed with its signature alone. A
|
|
135
|
+
`{@link}` that TypeDoc cannot resolve fails the build.
|
|
136
|
+
|
|
137
|
+
## What it writes
|
|
138
|
+
|
|
139
|
+
The reference is markdown, in `api/` of the docs package:
|
|
140
|
+
|
|
141
|
+
| File | What it is |
|
|
142
|
+
| ----------------------------------------------- | ------------------------------------------------------------------------------- |
|
|
143
|
+
| `api/README.md` | The list of the packages |
|
|
144
|
+
| `api/llms.txt` | A map of the reference for agents, of `llms-template.md` |
|
|
145
|
+
| `api/@scope/core/README.md` | The package's page: its README, then the list of its modules |
|
|
146
|
+
| `api/@scope/core/<subpath>/README.md` | The page of a subpath, as `config/README.md` of `./config` |
|
|
147
|
+
| `api/@scope/core/index/README.md` | The page of the package's root, `.`, named by `@module index` |
|
|
148
|
+
| `api/@scope/core/<subpath>/functions/<name>.md` | The page of each export, in `functions`, `type-aliases`, `variables`, `classes` |
|
|
149
|
+
|
|
150
|
+
Every package gets a module of its own, even one with a single entry point
|
|
151
|
+
(`alwaysCreateEntryPointModule`), so the layout, and every link into it, stays the same as a
|
|
152
|
+
package grows.
|
|
153
|
+
|
|
154
|
+
A docs site reads these pages as they are. The page of a root module is named `index`, which a site
|
|
155
|
+
builder takes for the page of its folder: in an Astro site, route it as
|
|
156
|
+
[Build a page named index](astro.md#build-a-page-named-index) shows.
|
|
157
|
+
|
|
158
|
+
## Where each source links
|
|
159
|
+
|
|
160
|
+
Each "Defined in:" links to its file in `repository`, at a git revision, the first of these that
|
|
161
|
+
applies:
|
|
162
|
+
|
|
163
|
+
1. `--gitRevision <ref>`, passed to `typedoc`, read from the platform's `argv`;
|
|
164
|
+
2. the commit of HEAD;
|
|
165
|
+
3. in a repo with no commit yet, its branch; outside git, `main`.
|
|
166
|
+
|
|
167
|
+
When you build the reference you publish, pass a ref that does not move, as the version's
|
|
168
|
+
`v1.2.0`, so each link keeps pointing at the code that version was built from:
|
|
169
|
+
|
|
170
|
+
```sh
|
|
171
|
+
pnpm --filter @scope/docs run typedoc --gitRevision v1.2.0
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
`gitRevisionOf()` of `@wtf/project-typedoc/config` gives the same revision, as a test that checks
|
|
175
|
+
your config needs it:
|
|
176
|
+
|
|
177
|
+
```ts
|
|
178
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
179
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
180
|
+
import { gitRevisionOf } from '@wtf/project-typedoc/config'
|
|
181
|
+
|
|
182
|
+
/** The repo's root. */
|
|
183
|
+
declare const root: string
|
|
184
|
+
|
|
185
|
+
const revision = await gitRevisionOf(root, nodePlatform({ fetch, storage: nodeStorage() }))
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
The preset turns TypeDoc's own git off and names the revision itself, so a git worktree links the
|
|
189
|
+
same as a checkout. The links take GitLab's form. For another host, give `sourceLinkTemplate` both
|
|
190
|
+
as an option and in `packageOptions`, as each package's conversion reads its own.
|
|
191
|
+
|
|
192
|
+
## The plugins
|
|
193
|
+
|
|
194
|
+
`typedocConfig()` gives TypeDoc three plugins of `@wtf/project-typedoc/plugins`, each with its
|
|
195
|
+
options set from yours. You set their options yourself only when you write a TypeDoc config
|
|
196
|
+
without the preset.
|
|
197
|
+
|
|
198
|
+
- **`cleanGeneratedMarkdown({ platform, docs, categories })`** tidies each page TypeDoc writes. A
|
|
199
|
+
link from a README into your guides, as `../docs/guides/setup.md` from `packages/core`, is right
|
|
200
|
+
from the package and wrong from `api/`: it is rewritten to the guide from the page. A "Defined
|
|
201
|
+
in:" of a file in `node_modules` names just its package, and three blank lines become two.
|
|
202
|
+
`docs` is the docs package's folder, and `categories` its folders of guides, `['guides']` by
|
|
203
|
+
default.
|
|
204
|
+
- **`preventMediaFiles({ platform, root, exclude })`** stops TypeDoc copying files into
|
|
205
|
+
`api/_media/`. TypeDoc copies each file a page links to, as a guide or a source file; those ship
|
|
206
|
+
where they are. A file outside `root`, the docs package, or in a folder of `exclude`, is never
|
|
207
|
+
copied, and its link stays as it was written.
|
|
208
|
+
- **`linkTrackedSources({ platform, root })`** links a "Defined in:" only when git tracks its file.
|
|
209
|
+
With TypeDoc's git off, every file gets a link, a declaration in `node_modules` too, to a page
|
|
210
|
+
that is not there. It asks git, by the platform's `spawn`, for the files of the repo at `root`,
|
|
211
|
+
and unlinks the rest.
|
|
212
|
+
|
|
213
|
+
Without the preset, give each one its options and list it in TypeDoc's `plugin`:
|
|
214
|
+
|
|
215
|
+
```ts
|
|
216
|
+
// packages/docs/typedoc.config.mjs, without the preset
|
|
217
|
+
import { nodeStorage } from '@wtf/platform-fs-node/storage'
|
|
218
|
+
import { nodePlatform } from '@wtf/platform-node/platform'
|
|
219
|
+
import {
|
|
220
|
+
cleanGeneratedMarkdown,
|
|
221
|
+
linkTrackedSources,
|
|
222
|
+
preventMediaFiles
|
|
223
|
+
} from '@wtf/project-typedoc/plugins'
|
|
224
|
+
|
|
225
|
+
const platform = nodePlatform({ fetch, storage: nodeStorage() })
|
|
226
|
+
const docs = platform.path.fromFileUrl(new URL('.', import.meta.url))
|
|
227
|
+
const root = platform.path.resolve(docs, '../..')
|
|
228
|
+
|
|
229
|
+
export default {
|
|
230
|
+
entryPoints: ['../core'],
|
|
231
|
+
entryPointStrategy: 'packages',
|
|
232
|
+
out: './api',
|
|
233
|
+
plugin: [
|
|
234
|
+
preventMediaFiles({ platform, root: docs, exclude: ['guides'] }),
|
|
235
|
+
cleanGeneratedMarkdown({ platform, docs, categories: ['guides'] }),
|
|
236
|
+
linkTrackedSources({ platform, root }),
|
|
237
|
+
'typedoc-plugin-markdown'
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## Keep `api/` out of your branches
|
|
243
|
+
|
|
244
|
+
`api/` is generated, and TypeDoc writes it whole on each run. Build it where you publish the docs
|
|
245
|
+
package, with `api` in the package's `files`, and never commit it on a branch: a reference
|
|
246
|
+
committed there goes stale at the next change of a doc comment, and turns a review into a review of
|
|
247
|
+
generated pages. Ignore it in git:
|
|
248
|
+
|
|
249
|
+
```text
|
|
250
|
+
# .gitignore
|
|
251
|
+
packages/docs/api/
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
If you keep the published reference in git as well, as this repo does, have the step that
|
|
255
|
+
publishes it stage it by force, `git add --force packages/docs/api`, so it is committed with the
|
|
256
|
+
version it documents and with nothing else.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wtf/project-docs",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Guides and API reference for the @wtf/project packages: the shared TypeScript, oxlint, oxfmt, Vite, Vitest, TypeDoc and Astro configs of a pnpm workspace, the resolve hook that runs its TypeScript from source, the runner of the Web Platform Tests, the Astro integrations that make a site serve on GitLab Pages, and the loader of a project's wtf configuration.",
|
|
5
5
|
"homepage": "https://gitlab.com/wetryfun/project/project/-/tree/main/packages/project-docs",
|
|
6
6
|
"bugs": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"typedoc": "typedoc"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@wtf/project-astro": "3.0
|
|
39
|
+
"@wtf/project-astro": "3.1.0",
|
|
40
40
|
"@wtf/project-config": "3.0.1",
|
|
41
41
|
"@wtf/project-oxfmt": "1.1.1",
|
|
42
42
|
"@wtf/project-oxlint": "1.1.1",
|