diff --git a/docs/.astro/astro/content.d.ts b/docs/.astro/astro/content.d.ts deleted file mode 100644 index a386e52f..00000000 --- a/docs/.astro/astro/content.d.ts +++ /dev/null @@ -1,542 +0,0 @@ -declare module 'astro:content' { - interface Render { - '.mdx': Promise<{ - Content: import('astro').MarkdownInstance<{}>['Content']; - headings: import('astro').MarkdownHeading[]; - remarkPluginFrontmatter: Record; - components: import('astro').MDXInstance<{}>['components']; - }>; - } -} - -declare module 'astro:content' { - interface RenderResult { - Content: import('astro/runtime/server/index.js').AstroComponentFactory; - headings: import('astro').MarkdownHeading[]; - remarkPluginFrontmatter: Record; - } - interface Render { - '.md': Promise; - } - - export interface RenderedContent { - html: string; - metadata?: { - imagePaths: Array; - [key: string]: unknown; - }; - } -} - -declare module 'astro:content' { - type Flatten = T extends { [K: string]: infer U } ? U : never; - - export type CollectionKey = keyof AnyEntryMap; - export type CollectionEntry = Flatten; - - export type ContentCollectionKey = keyof ContentEntryMap; - export type DataCollectionKey = keyof DataEntryMap; - - type AllValuesOf = T extends any ? T[keyof T] : never; - type ValidContentEntrySlug = AllValuesOf< - ContentEntryMap[C] - >['slug']; - - /** @deprecated Use `getEntry` instead. */ - export function getEntryBySlug< - C extends keyof ContentEntryMap, - E extends ValidContentEntrySlug | (string & {}), - >( - collection: C, - // Note that this has to accept a regular string too, for SSR - entrySlug: E, - ): E extends ValidContentEntrySlug - ? Promise> - : Promise | undefined>; - - /** @deprecated Use `getEntry` instead. */ - export function getDataEntryById( - collection: C, - entryId: E, - ): Promise>; - - export function getCollection>( - collection: C, - filter?: (entry: CollectionEntry) => entry is E, - ): Promise; - export function getCollection( - collection: C, - filter?: (entry: CollectionEntry) => unknown, - ): Promise[]>; - - export function getEntry< - C extends keyof ContentEntryMap, - E extends ValidContentEntrySlug | (string & {}), - >(entry: { - collection: C; - slug: E; - }): E extends ValidContentEntrySlug - ? Promise> - : Promise | undefined>; - export function getEntry< - C extends keyof DataEntryMap, - E extends keyof DataEntryMap[C] | (string & {}), - >(entry: { - collection: C; - id: E; - }): E extends keyof DataEntryMap[C] - ? Promise - : Promise | undefined>; - export function getEntry< - C extends keyof ContentEntryMap, - E extends ValidContentEntrySlug | (string & {}), - >( - collection: C, - slug: E, - ): E extends ValidContentEntrySlug - ? Promise> - : Promise | undefined>; - export function getEntry< - C extends keyof DataEntryMap, - E extends keyof DataEntryMap[C] | (string & {}), - >( - collection: C, - id: E, - ): E extends keyof DataEntryMap[C] - ? Promise - : Promise | undefined>; - - /** Resolve an array of entry references from the same collection */ - export function getEntries( - entries: { - collection: C; - slug: ValidContentEntrySlug; - }[], - ): Promise[]>; - export function getEntries( - entries: { - collection: C; - id: keyof DataEntryMap[C]; - }[], - ): Promise[]>; - - export function render( - entry: AnyEntryMap[C][string], - ): Promise; - - export function reference( - collection: C, - ): import('astro/zod').ZodEffects< - import('astro/zod').ZodString, - C extends keyof ContentEntryMap - ? { - collection: C; - slug: ValidContentEntrySlug; - } - : { - collection: C; - id: keyof DataEntryMap[C]; - } - >; - // Allow generic `string` to avoid excessive type errors in the config - // if `dev` is not running to update as you edit. - // Invalid collection names will be caught at build time. - export function reference( - collection: C, - ): import('astro/zod').ZodEffects; - - type ReturnTypeOrOriginal = T extends (...args: any[]) => infer R ? R : T; - type InferEntrySchema = import('astro/zod').infer< - ReturnTypeOrOriginal['schema']> - >; - - type ContentEntryMap = { - "docs": { -"api/index.md": { - id: "api/index.md"; - slug: "api"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".md"] }; -"api/namespaces/builders.md": { - id: "api/namespaces/builders.md"; - slug: "api/namespaces/builders"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".md"] }; -"api/namespaces/file.md": { - id: "api/namespaces/file.md"; - slug: "api/namespaces/file"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".md"] }; -"api/namespaces/git.md": { - id: "api/namespaces/git.md"; - slug: "api/namespaces/git"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".md"] }; -"changelogs/@onerepo/builders.mdx": { - id: "changelogs/@onerepo/builders.mdx"; - slug: "changelogs/onerepo/builders"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/file.mdx": { - id: "changelogs/@onerepo/file.mdx"; - slug: "changelogs/onerepo/file"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/git.mdx": { - id: "changelogs/@onerepo/git.mdx"; - slug: "changelogs/onerepo/git"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/graph.mdx": { - id: "changelogs/@onerepo/graph.mdx"; - slug: "changelogs/onerepo/graph"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/logger.mdx": { - id: "changelogs/@onerepo/logger.mdx"; - slug: "changelogs/onerepo/logger"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/package-manager.mdx": { - id: "changelogs/@onerepo/package-manager.mdx"; - slug: "changelogs/onerepo/package-manager"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/plugin-docgen.mdx": { - id: "changelogs/@onerepo/plugin-docgen.mdx"; - slug: "changelogs/onerepo/plugin-docgen"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/plugin-eslint.mdx": { - id: "changelogs/@onerepo/plugin-eslint.mdx"; - slug: "changelogs/onerepo/plugin-eslint"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/plugin-jest.mdx": { - id: "changelogs/@onerepo/plugin-jest.mdx"; - slug: "changelogs/onerepo/plugin-jest"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/plugin-performance-writer.mdx": { - id: "changelogs/@onerepo/plugin-performance-writer.mdx"; - slug: "changelogs/onerepo/plugin-performance-writer"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/plugin-prettier.mdx": { - id: "changelogs/@onerepo/plugin-prettier.mdx"; - slug: "changelogs/onerepo/plugin-prettier"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/plugin-typescript.mdx": { - id: "changelogs/@onerepo/plugin-typescript.mdx"; - slug: "changelogs/onerepo/plugin-typescript"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/plugin-vitest.mdx": { - id: "changelogs/@onerepo/plugin-vitest.mdx"; - slug: "changelogs/onerepo/plugin-vitest"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/subprocess.mdx": { - id: "changelogs/@onerepo/subprocess.mdx"; - slug: "changelogs/onerepo/subprocess"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/test-cli.mdx": { - id: "changelogs/@onerepo/test-cli.mdx"; - slug: "changelogs/onerepo/test-cli"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/@onerepo/yargs.mdx": { - id: "changelogs/@onerepo/yargs.mdx"; - slug: "changelogs/onerepo/yargs"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"changelogs/index.mdx": { - id: "changelogs/index.mdx"; - slug: "changelogs"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"concepts/primer.mdx": { - id: "concepts/primer.mdx"; - slug: "concepts/primer"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"concepts/why-onerepo.mdx": { - id: "concepts/why-onerepo.mdx"; - slug: "concepts/why-onerepo"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"core/changes.mdx": { - id: "core/changes.mdx"; - slug: "core/changes"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"core/codeowners.mdx": { - id: "core/codeowners.mdx"; - slug: "core/codeowners"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"core/create.mdx": { - id: "core/create.mdx"; - slug: "core/create"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"core/dependencies.mdx": { - id: "core/dependencies.mdx"; - slug: "core/dependencies"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"core/generate.mdx": { - id: "core/generate.mdx"; - slug: "core/generate"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"core/graph.mdx": { - id: "core/graph.mdx"; - slug: "core/graph"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"core/hooks.mdx": { - id: "core/hooks.mdx"; - slug: "core/hooks"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"core/install.mdx": { - id: "core/install.mdx"; - slug: "core/install"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"core/tasks.mdx": { - id: "core/tasks.mdx"; - slug: "core/tasks"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"core/workspace.mdx": { - id: "core/workspace.mdx"; - slug: "core/workspace"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"discord.mdx": { - id: "discord.mdx"; - slug: "discord"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"docs/commands.mdx": { - id: "docs/commands.mdx"; - slug: "docs/commands"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"docs/config.mdx": { - id: "docs/config.mdx"; - slug: "docs/config"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"docs/getting-started.mdx": { - id: "docs/getting-started.mdx"; - slug: "docs/getting-started"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"docs/log-output.mdx": { - id: "docs/log-output.mdx"; - slug: "docs/log-output"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"docs/source-dependencies.mdx": { - id: "docs/source-dependencies.mdx"; - slug: "docs/source-dependencies"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"index.mdx": { - id: "index.mdx"; - slug: "index"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"plugins/docgen.mdx": { - id: "plugins/docgen.mdx"; - slug: "plugins/docgen"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"plugins/docgen/example.mdx": { - id: "plugins/docgen/example.mdx"; - slug: "plugins/docgen/example"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"plugins/eslint.mdx": { - id: "plugins/eslint.mdx"; - slug: "plugins/eslint"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"plugins/index.mdx": { - id: "plugins/index.mdx"; - slug: "plugins"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"plugins/jest.mdx": { - id: "plugins/jest.mdx"; - slug: "plugins/jest"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"plugins/performance-writer.mdx": { - id: "plugins/performance-writer.mdx"; - slug: "plugins/performance-writer"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"plugins/prettier.mdx": { - id: "plugins/prettier.mdx"; - slug: "plugins/prettier"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"plugins/typescript.mdx": { - id: "plugins/typescript.mdx"; - slug: "plugins/typescript"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"plugins/vitest.mdx": { - id: "plugins/vitest.mdx"; - slug: "plugins/vitest"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"project/code-of-conduct.mdx": { - id: "project/code-of-conduct.mdx"; - slug: "project/code-of-conduct"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"project/contributing.mdx": { - id: "project/contributing.mdx"; - slug: "project/contributing"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"project/index.mdx": { - id: "project/index.mdx"; - slug: "project"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -"visualize.mdx": { - id: "visualize.mdx"; - slug: "visualize"; - body: string; - collection: "docs"; - data: InferEntrySchema<"docs"> -} & { render(): Render[".mdx"] }; -}; - - }; - - type DataEntryMap = { - "i18n": Record; -}>; - - }; - - type AnyEntryMap = ContentEntryMap & DataEntryMap; - - export type ContentConfig = typeof import("../../src/content/config.js"); -} diff --git a/docs/.astro/collections/i18n.schema.json b/docs/.astro/collections/i18n.schema.json deleted file mode 100644 index a2da7d89..00000000 --- a/docs/.astro/collections/i18n.schema.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "$ref": "#/definitions/i18n", - "definitions": { - "i18n": { - "type": "object", - "properties": { - "skipLink.label": { - "type": "string", - "description": "Text displayed in the accessible “Skip link” when a keyboard user first tabs into a page.", - "markdownDescription": "Text displayed in the accessible “Skip link” when a keyboard user first tabs into a page." - }, - "search.label": { - "type": "string", - "description": "Text displayed in the search bar.", - "markdownDescription": "Text displayed in the search bar." - }, - "search.ctrlKey": { - "type": "string", - "description": "Visible representation of the Control key potentially used in the shortcut key to open the search modal.", - "markdownDescription": "Visible representation of the Control key potentially used in the shortcut key to open the search modal." - }, - "search.cancelLabel": { - "type": "string", - "description": "Text for the “Cancel” button that closes the search modal.", - "markdownDescription": "Text for the “Cancel” button that closes the search modal." - }, - "search.devWarning": { - "type": "string", - "description": "Warning displayed when opening the Search in a dev environment.", - "markdownDescription": "Warning displayed when opening the Search in a dev environment." - }, - "themeSelect.accessibleLabel": { - "type": "string", - "description": "Accessible label for the theme selection dropdown.", - "markdownDescription": "Accessible label for the theme selection dropdown." - }, - "themeSelect.dark": { - "type": "string", - "description": "Name of the dark color theme.", - "markdownDescription": "Name of the dark color theme." - }, - "themeSelect.light": { - "type": "string", - "description": "Name of the light color theme.", - "markdownDescription": "Name of the light color theme." - }, - "themeSelect.auto": { - "type": "string", - "description": "Name of the automatic color theme that syncs with system preferences.", - "markdownDescription": "Name of the automatic color theme that syncs with system preferences." - }, - "languageSelect.accessibleLabel": { - "type": "string", - "description": "Accessible label for the language selection dropdown.", - "markdownDescription": "Accessible label for the language selection dropdown." - }, - "menuButton.accessibleLabel": { - "type": "string", - "description": "Accessible label for the mobile menu button.", - "markdownDescription": "Accessible label for the mobile menu button." - }, - "sidebarNav.accessibleLabel": { - "type": "string", - "description": "Accessible label for the main sidebar `