-
Notifications
You must be signed in to change notification settings - Fork 9
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
[bug/SWTCH-1091] Adds build:api_docs to deploy process #52
Conversation
ahmedolaibrahim
commented
Jul 2, 2021
- Adds build:api_docs to deploy workflow
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 don't think it will be sufficient to simply run npm run build:api_docs
during build as (at least currently), the docs need to be committed to source control. So maybe the commit needs to be made automatically? Or maybe there needs to be a check that fails the build if the documentation hasn't been updated by the developer? Or maybe you can come up with some better idea.
I am not quite sure why the build is failing but i'll check that. I think you are right about the build not being committed to source control luckily I found an article that talks about how to do that here |
@ahmedolaibrahim Nice research 👍 . I took a look at the article though and I think it is not committing the docs to source control (which we need for read the docs), it is only bundling the updated docs into the NPM package. So I'm not sure it will work in our case? 🤔 |
@@ -13,7 +13,7 @@ | |||
"build:ts": "tsc", | |||
"build:contracts": "npm run build:typechain:resolver", | |||
"build:typechain:resolver": "typechain --target ethers-v4 --outDir ethers './node_modules/@ensdomains/resolver/build/contracts/PublicResolver.json'", | |||
"build:api_docs": "rm -rf docs/api && typedoc", | |||
"build:api_docs": "rm -rf docs/api && typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs true", |
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.
asides rendering the documentation as markdown, I also added this so we have consistency across our repos as this is also used by iam-client-lib
@@ -1,11 +1,9 @@ | |||
{ | |||
"inputFiles": ["lib/"], | |||
"entryPoints": ["lib/"], |
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.
these options have since been removed in version 0.20 as stated in the release notes. will update iam-client-lib
to use this version.
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.
Nice catch
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.
Looks good to me, nice work!
@@ -1,11 +1,9 @@ | |||
{ | |||
"inputFiles": ["lib/"], | |||
"entryPoints": ["lib/"], |
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.
Nice catch
🎉 This PR is included in version 1.0.0-alpha.14 🎉 The release is available on: Your semantic-release bot 📦🚀 |