-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs: #699 Here we add the [`typedoc`](https://typedoc.org) tool in order to generate a Markdown API reference from the TSDoc comments. The generated API reference is stored in the `api-reference` directory of the SDK module. The API reference docs can be re-generated using: ``` yarn docs ``` The new CI job `typescript-docs` checks whether the API reference was re-generated after source code changes. If there is a need to do that, this job fails at the `Check docs up to date` step. To facilitate work, a pre-commit hook `typescript-docs` was added. It automatically runs `yarn docs` before each commit. If there are any changes in the API reference, the pre-commit hook fails but the file changes remain so it's enough to do Git commit again. To leverage the new hook, it's enough to run this command in the `tbtc-v2` repository root directory: ``` pre-commit install ``` By the way, we are also setting the `repository` section in the SDK `package.json` (this was previously done by mistake in the `solidity` directory).
- Loading branch information
Showing
57 changed files
with
8,183 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist/ | ||
node_modules/ | ||
typechain/ | ||
api-reference/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist/ | ||
external/ | ||
typechain/ | ||
api-reference/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.