UNPKG

fumadocs-core

Version:

The React.js library for building a documentation website

73 lines • 1.54 kB
import { n as StructuredData } from "../remark-structure-CV606E7e.js"; import "../index-DuwVLhPl.js"; import { CloudManager } from "@oramacloud/client"; export interface SyncOptions { /** * Index name to sync */ index: string; documents: OramaDocument[]; /** * Deploy changes * * @defaultValue true */ autoDeploy?: boolean; } export interface I18nSyncOptions extends Omit<SyncOptions, 'index' | 'documents'> { /** * Indexes to sync. * * Pairs of `locale`-`index`. **/ indexes: Record<string, string>; documents: { locale: string; items: OramaDocument[]; }[]; } export interface OramaDocument { /** * The ID of document, must be unique */ id: string; title: string; description?: string; /** * URL to the page */ url: string; structured: StructuredData; /** * Tag to filter results */ tag?: string; /** * Data to be added to each section index */ extra_data?: object; breadcrumbs?: string[]; } export interface OramaIndex { id: string; title: string; url: string; tag?: string; /** * The id of page, used for `group by` */ page_id: string; /** * Heading content */ section?: string; breadcrumbs?: string[]; /** * Heading (anchor) id */ section_id?: string; content: string; table?: string; } export declare function sync(cloudManager: CloudManager, options: SyncOptions): Promise<void>; export declare function syncI18n(cloudManager: CloudManager, options: I18nSyncOptions): Promise<void>;