Skip to content

Commit

Permalink
Merge pull request #3543 from zelliott/inheritance-docs-api-documenter
Browse files Browse the repository at this point in the history
[api-documenter] Add new `showInheritedMembers` config for api-documenter and new api-documenter-scenarios test project
  • Loading branch information
octogonz committed Jul 21, 2022
2 parents 183d212 + baa19e9 commit 4077079
Show file tree
Hide file tree
Showing 196 changed files with 2,449 additions and 75 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ These GitHub repositories provide supplementary resources for Rush Stack:
| [/build-tests-samples/heft-web-rig-library-tutorial](./build-tests-samples/heft-web-rig-library-tutorial/) | (Copy of sample project) Building this project is a regression test for Heft |
| [/build-tests-samples/heft-webpack-basic-tutorial](./build-tests-samples/heft-webpack-basic-tutorial/) | (Copy of sample project) Building this project is a regression test for Heft |
| [/build-tests-samples/packlets-tutorial](./build-tests-samples/packlets-tutorial/) | (Copy of sample project) Building this project is a regression test for @rushstack/eslint-plugin-packlets |
| [/build-tests/api-documenter-scenarios](./build-tests/api-documenter-scenarios/) | Building this project is a regression test for api-documenter |
| [/build-tests/api-documenter-test](./build-tests/api-documenter-test/) | Building this project is a regression test for api-documenter |
| [/build-tests/api-extractor-lib1-test](./build-tests/api-extractor-lib1-test/) | Building this project is a regression test for api-extractor |
| [/build-tests/api-extractor-lib2-test](./build-tests/api-extractor-lib2-test/) | Building this project is a regression test for api-extractor |
Expand Down
4 changes: 2 additions & 2 deletions apps/api-documenter/src/documenters/DocumenterConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ export class DocumenterConfig {
public readonly newlineKind: NewlineKind;

/**
* The JSON Schema for API Extractor config file (api-extractor.schema.json).
* The JSON Schema for API Documenter config file (api-documenter.schema.json).
*/
public static readonly jsonSchema: JsonSchema = JsonSchema.fromFile(
path.join(__dirname, '..', 'schemas', 'api-documenter.schema.json')
);

/**
* The config file name "api-extractor.json".
* The config file name "api-documenter.json".
*/
public static readonly FILENAME: string = 'api-documenter.json';

Expand Down
5 changes: 5 additions & 0 deletions apps/api-documenter/src/documenters/IConfigFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,9 @@ export interface IConfigFile {

/** {@inheritDoc IConfigTableOfContents} */
tableOfContents?: IConfigTableOfContents;

/**
* Specifies whether inherited members should also be shown on an API item's page.
*/
showInheritedMembers?: boolean;
}
Loading

0 comments on commit 4077079

Please sign in to comment.