-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add TypeDoc to project #148
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! 📚
script/release
Outdated
@@ -9,6 +9,7 @@ DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |||
if npm whoami &>/dev/null; then | |||
rm -rf ./lib | |||
npm run release | |||
npm run release:docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the release command fails at the point of trying to push to main
, I'm not sure if it will ever execute this line or if it will fail and exit before getting there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh great point! Thoughts on possible solutions?
- Have a separate script and remember to run it
- Publish to GH Pages automatically via GH Actions, triggered by the creation of a GH tag/release
npm run release || true
to always have that statement exit cleanly- Something else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd vote for the second one as:
- I will forget to run a separate script
- If it fails for another reason (like yesterday when the tests failed) we probably don't want to publish to docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. Added a GH Actions workflow file now, which should deploy documentation to GH Pages whenever a new release is created.
TypeDoc will generate a documentation site which we can publish to github pages.
What does this change?
TypeDoc will generate a documentation site which we can publish to GitHub Pages.
A new
script/docs
script is added to view docs locally andscript/release
is updated to rungh-pages
to publish the generated site to GitHub Pages.Does this change require changes to existing projects or CDK CLI?
No.
How to test
script/docs
How can we measure success?
Published documentation 🎉 .
This will also encourage us to annotate our code properly, as noted here.
Have we considered potential risks?
n/a
Images
Index Page
Example page for
GuStack
Example page for
GuStack
w/out externals (AWS CDK properties) shown