generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add typedoc report and GH Pages publishing (#402)
* Add typedoc report and GH Pages publishing * Fix contributing instructions * Add dids package to the build
- Loading branch information
1 parent
3048ca8
commit bf1de7b
Showing
5 changed files
with
116 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,4 +159,7 @@ dist | |
# IntelliJ | ||
.idea | ||
|
||
results.xml | ||
results.xml | ||
|
||
.tbdocs | ||
temp |
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,46 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p .tbdocs | ||
|
||
SUMMARY_FILE=.tbdocs/summary.md | ||
|
||
rm -f ${SUMMARY_FILE} | ||
touch ${SUMMARY_FILE} | ||
|
||
INPUT_ENTRY_POINTS=" | ||
- file: packages/api/src/index.ts | ||
docsReporter: typedoc | ||
docsGenerator: typedoc-html | ||
readmeFile: packages/api/README.md | ||
- file: packages/crypto/src/index.ts | ||
docsReporter: typedoc | ||
docsGenerator: typedoc-html | ||
readmeFile: packages/crypto/README.md | ||
- file: packages/crypto-aws-kms/src/index.ts | ||
docsReporter: typedoc | ||
docsGenerator: typedoc-html | ||
readmeFile: packages/crypto-aws-kms/README.md | ||
- file: packages/dids/src/index.ts | ||
docsReporter: typedoc | ||
docsGenerator: typedoc-html | ||
readmeFile: packages/dids/README.md | ||
" | ||
|
||
# Default docker image | ||
DOCKER_IMAGE="ghcr.io/tbd54566975/tbdocs:main" | ||
|
||
# Check for --local-image flag and update DOCKER_IMAGE if present | ||
for arg in "$@" | ||
do | ||
if [ "$arg" == "--local-image" ]; then | ||
DOCKER_IMAGE="tbdocs:latest" | ||
fi | ||
done | ||
|
||
docker run -v $(pwd):/github/workspace/ \ | ||
--workdir /github/workspace \ | ||
-e "GITHUB_REPOSITORY=TBD54566975/web5-js" \ | ||
-e "GITHUB_STEP_SUMMARY=${SUMMARY_FILE}" \ | ||
-e "INPUT_ENTRY_POINTS=${INPUT_ENTRY_POINTS}" \ | ||
-e "INPUT_GROUP_DOCS=true" \ | ||
${DOCKER_IMAGE} |