diff options
| author | ST-DDT <[email protected]> | 2022-04-13 10:01:23 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-13 10:01:23 +0200 |
| commit | 360bec7c7f3269049eb748523f2d271b6ed36d75 (patch) | |
| tree | 171c4fd81486e9d769cb103c284720aa4defcb81 /scripts | |
| parent | bb2dfb6f0e9d906120c49b7ee38e05e05fd8fc45 (diff) | |
| download | faker-360bec7c7f3269049eb748523f2d271b6ed36d75.tar.xz faker-360bec7c7f3269049eb748523f2d271b6ed36d75.zip | |
docs: use vitepress config for markdown pre-renderer (#835)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/apidoc/signature.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/apidoc/signature.ts b/scripts/apidoc/signature.ts index 91691e69..0341d7c0 100644 --- a/scripts/apidoc/signature.ts +++ b/scripts/apidoc/signature.ts @@ -14,10 +14,9 @@ import type { Method, MethodParameter, } from '../../docs/.vitepress/components/api-docs/method'; +import vitepressConfig from '../../docs/.vitepress/config'; import { faker } from '../../src'; import { formatTypescript, pathOutputDir } from './utils'; -// TODO ST-DDT 2022-02-20: Actually import this/fix module import errors -// import vitepressConfig from '../../docs/.vitepress/config'; export function prettifyMethodName(method: string): string { return ( @@ -36,9 +35,7 @@ export function toBlock(comment?: Comment): string { const markdown = createMarkdownRenderer( pathOutputDir, - undefined, - // TODO ST-DDT 2022-02-20: Actually import this/fix module import errors - // vitepressConfig.markdown, + vitepressConfig.markdown, '/' ); |
