From a3f86fce6a407ba0ed045a815e97bb9e7003d226 Mon Sep 17 00:00:00 2001 From: miris-mp Date: Mon, 28 Oct 2024 11:11:49 +0100 Subject: [PATCH] removed cname --- .astro/astro/content.d.ts | 207 +++++++++++++++++++++++++++++++++++ public/CNAME | 2 - src/layouts/PageLayout.astro | 3 - 3 files changed, 207 insertions(+), 5 deletions(-) delete mode 100644 public/CNAME diff --git a/.astro/astro/content.d.ts b/.astro/astro/content.d.ts index e69de29..5271f6a 100644 --- a/.astro/astro/content.d.ts +++ b/.astro/astro/content.d.ts @@ -0,0 +1,207 @@ +declare module 'astro:content' { + interface Render { + '.mdx': Promise<{ + Content: import('astro').MarkdownInstance<{}>['Content']; + headings: import('astro').MarkdownHeading[]; + remarkPluginFrontmatter: Record; + }>; + } +} + +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 = { + "post": { +"astrowind-template-in-depth.mdx": { + id: "astrowind-template-in-depth.mdx"; + slug: "astrowind-template-in-depth"; + body: string; + collection: "post"; + data: InferEntrySchema<"post"> +} & { render(): Render[".mdx"] }; +"get-started-website-with-astro-tailwind-css.md": { + id: "get-started-website-with-astro-tailwind-css.md"; + slug: "get-started-website-with-astro-tailwind-css"; + body: string; + collection: "post"; + data: InferEntrySchema<"post"> +} & { render(): Render[".md"] }; +"how-to-customize-astrowind-to-your-brand.md": { + id: "how-to-customize-astrowind-to-your-brand.md"; + slug: "how-to-customize-astrowind-to-your-brand"; + body: string; + collection: "post"; + data: InferEntrySchema<"post"> +} & { render(): Render[".md"] }; +"landing.md": { + id: "landing.md"; + slug: "landing"; + body: string; + collection: "post"; + data: InferEntrySchema<"post"> +} & { render(): Render[".md"] }; +"markdown-elements-demo-post.mdx": { + id: "markdown-elements-demo-post.mdx"; + slug: "markdown-elements-demo-post"; + body: string; + collection: "post"; + data: InferEntrySchema<"post"> +} & { render(): Render[".mdx"] }; +"useful-resources-to-create-websites.md": { + id: "useful-resources-to-create-websites.md"; + slug: "useful-resources-to-create-websites"; + body: string; + collection: "post"; + data: InferEntrySchema<"post"> +} & { render(): Render[".md"] }; +}; + + }; + + type DataEntryMap = { + + }; + + type AnyEntryMap = ContentEntryMap & DataEntryMap; + + export type ContentConfig = typeof import("../../src/content/config.js"); +} diff --git a/public/CNAME b/public/CNAME deleted file mode 100644 index 00019e4..0000000 --- a/public/CNAME +++ /dev/null @@ -1,2 +0,0 @@ - diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro index 169b6dc..b97d8f5 100644 --- a/src/layouts/PageLayout.astro +++ b/src/layouts/PageLayout.astro @@ -16,9 +16,6 @@ const { metadata } = Astro.props; --- - - -