-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# If TypeDoc succeeds, it creates the directory with markdown files that Docusaurus uses to generate the API docs. | ||
# If TypeDoc fails, Docusaurus ignores the error, builds the site without API docs, and the "npm run build" | ||
# script still returns 0. This is why this separate smoke test is needed. | ||
|
||
if [ ! -d "docs/usage/sdk/api" ]; then | ||
echo 'No files in "docs/usage/sdk/api" directory. Maybe TypeDoc failed?' | ||
exit 1 | ||
fi |