Methods
contentIterator
- contentIterator(directory: string, contentKeys: string[], languages: string[]): AsyncGenerator<{
files: Record<string, string>;
key: string;
}[], void, unknown>
-
Parameters
-
directory: string
-
contentKeys: string[]
-
languages: string[]
Returns AsyncGenerator<{
files: Record<string, string>;
key: string;
}[], void, unknown>
processMarkdown
- processMarkdown(markdown: string): string
-
Returns string
validateContent
- validateContent<T>(directory: string, languages: T[]): Promise<Record<T, string>>
-
Parameters
-
directory: string
-
languages: T[]
Returns Promise<Record<T, string>>
see docs/content.md
Todo
migrate markdown docs across.