mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-20 23:37:41 +00:00
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
Test-bot: skip Build-bot: skip release:developer
41 lines
No EOL
1.6 KiB
Markdown
41 lines
No EOL
1.6 KiB
Markdown
# Introduction
|
|
|
|
These files are used by `typescript_run_api_extractor()` in typescript.inc.sh.
|
|
|
|
This is setup only for Developer projects at this time as outputs go into
|
|
developer/docs and developer/build; future generalization requires changing only
|
|
`$report_temp` and `$report_folder` parameters in
|
|
`typescript_run_api_extractor()`.
|
|
|
|
## api-extractor.template.json
|
|
|
|
* Reference: https://api-extractor.com
|
|
|
|
api-extractor.template.json contains a template for api-extractor; these
|
|
parameters cannot be passed in to the tool, so we modify this template as needed
|
|
with the following parameters:
|
|
|
|
* `$keyman_root`: the `$KEYMAN_ROOT` variable, with backslash \ translated to
|
|
forward slash /
|
|
* `$index_d_ts`: the filename `index.d.ts` or the corresponding filename for the
|
|
entry point of the project
|
|
* `$project_path`: the path for the module, relative to the base of the repo
|
|
* `$report_temp`: a temporary path for output files for api-extractor
|
|
* `$report_folder`: target folder for completed api-extractor API documentation
|
|
|
|
## tsdoc.template.json
|
|
|
|
* Reference: https://tsdoc.org/pages/packages/tsdoc-config/
|
|
|
|
tsdoc.template.json is copied (unmodified) from this folder into tsdoc.json in
|
|
project folders (alongside tsconfig.json) before running api-extractor and
|
|
removed again afterwards; there is no way to specify an alternate location for
|
|
the file.
|
|
|
|
tsdoc.template.json includes a definition for "@since" which has been proposed
|
|
in https://github.com/microsoft/tsdoc/issues/136.
|
|
|
|
## Notes
|
|
|
|
See also .github/workflows/api-verification.yml which does API validation of
|
|
Core for desktop platforms. |