/** * (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. */ import { DocusaurusContext, Preset, PluginOptions } from '@docusaurus/types'; export type PresetOptions = PluginOptions & { docs?: false | (Record & { /** * Path to repo edit * @example 'https://www.internalfb.com/code/fbsource/fbcode/staticdocs/packages/website' * @example 'https://github.com/facebook/docusaurus/edit/main/website/' */ editUrl?: string; /** * Filepath to where the documentation is stored */ path?: string; }); /** * Project name in configurator */ staticDocsProject?: string; /** * Enable "edit this page" button on pages */ enableEditor?: boolean | 'top' | 'bottom'; /** * This is the magic that tracks which source files you're referencing in your code snippets. * Use one of the following depending on the repo you're in: * - fbsource `fbcode/staticdocs/WATCHED_FILES` * - www `scripts/static_docs/WATCHED_FILES` */ trackingFile?: 'fbcode/staticdocs/WATCHED_FILES' | 'scripts/static_docs/WATCHED_FILES'; /** * Enable refering to other files for code snippets */ 'remark-code-snippets'?: { /** * Relative file path to the diretory to resolve specified paths from */ baseDir: string; }; internSearch?: boolean; experimentalXRepoSnippets?: { /** * Relative file path to the diretory to resolve specified paths from */ baseDir: string; }; }; export default function preset(context: DocusaurusContext, opts?: PresetOptions): Preset;