UNPKG

@rr0/cms

Version:

RR0 Content Management System (CMS)

22 lines (21 loc) 663 B
import { SsgContext, SsgStep } from "ssg-api"; import { SearchVisitor } from "./SearchVisitor.js"; /** * Saves the index file collected by the SearchCommand. */ export declare class SearchIndexStep implements SsgStep { protected fileName: string; protected searchCommand: SearchVisitor; protected encoding: BufferEncoding; /** * @param fileName The index file path * @param searchCommand The command that collected the pages info. */ constructor(fileName: string, searchCommand: SearchVisitor); /** * Write the search index file. * * @param context */ execute(context: SsgContext): Promise<any>; }