Skip to content

Commit

Permalink
feat(docs-custom): add config argument (#2696)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgroth committed Oct 14, 2020
1 parent 04665f9 commit d285879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/docs/custom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const generateCustomDocs = async (config: d.Config, docsData: d.JsonDocs,
await Promise.all(
customOutputTargets.map(async customOutput => {
try {
await customOutput.generator(docsData);
await customOutput.generator(docsData, config);
} catch (e) {
config.logger.error(`uncaught custom docs error: ${e}`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/declarations/stencil-public-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ export interface OutputTargetDocsJson extends OutputTargetBase {
export interface OutputTargetDocsCustom extends OutputTargetBase {
type: 'docs-custom';

generator: (docs: JsonDocs) => void | Promise<void>;
generator: (docs: JsonDocs, config: Config) => void | Promise<void>;
strict?: boolean;
}

Expand Down

0 comments on commit d285879

Please sign in to comment.