full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -1,15 +1,15 @@
import type { FSWatcher } from 'vite';
import type { AstroSettings, RefreshContentOptions } from '../@types/astro.js';
import type { Logger } from '../core/logger/core.js';
import type { LoaderContext } from './loaders/types.js';
import type { AstroSettings } from '../types/astro.js';
import type { RefreshContentOptions } from '../types/public/content.js';
import type { MutableDataStore } from './mutable-data-store.js';
export interface ContentLayerOptions {
interface ContentLayerOptions {
store: MutableDataStore;
settings: AstroSettings;
logger: Logger;
watcher?: FSWatcher;
}
export declare class ContentLayer {
declare class ContentLayer {
#private;
constructor({ settings, logger, store, watcher }: ContentLayerOptions);
/**
@@ -21,6 +21,7 @@ export declare class ContentLayer {
*/
watchContentConfig(): void;
unwatchContentConfig(): void;
dispose(): void;
/**
* Enqueues a sync job that runs the `load()` method of each collection's loader, which will load the data and save it in the data store.
* The loader itself is responsible for deciding whether this will clear and reload the full collection, or
@@ -30,17 +31,15 @@ export declare class ContentLayer {
sync(options?: RefreshContentOptions): Promise<void>;
regenerateCollectionFileManifest(): Promise<void>;
}
export declare function simpleLoader<TData extends {
id: string;
}>(handler: () => Array<TData> | Promise<Array<TData>>, context: LoaderContext): Promise<void>;
/**
* Get the path to the data store file.
* During development, this is in the `.astro` directory so that the Vite watcher can see it.
* In production, it's in the cache directory so that it's preserved between builds.
*/
export declare function getDataStoreFile(settings: AstroSettings, isDev?: boolean): URL;
export declare function getDataStoreFile(settings: AstroSettings, isDev: boolean): URL;
export declare const globalContentLayer: {
init: (options: ContentLayerOptions) => ContentLayer;
get: () => ContentLayer | null;
dispose: () => void;
};
export {};