Skip to content
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

Merged
merged 4 commits into from
Jul 5, 2021

Conversation

ahmedolaibrahim
Copy link
Contributor

  • Adds build:api_docs to deploy workflow

@jrhender
Copy link
Collaborator

jrhender commented Jul 2, 2021

The travis build is failing. do you know why this is?
image

Copy link
Collaborator

@jrhender jrhender left a 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.

@ahmedolaibrahim
Copy link
Contributor Author

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

@jrhender
Copy link
Collaborator

jrhender commented Jul 2, 2021

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",
Copy link
Contributor Author

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/"],
Copy link
Contributor Author

@ahmedolaibrahim ahmedolaibrahim Jul 5, 2021

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

Copy link
Collaborator

@jrhender jrhender left a 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/"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@ahmedolaibrahim ahmedolaibrahim merged commit a853233 into develop Jul 5, 2021
@JGiter
Copy link
Collaborator

JGiter commented Jul 5, 2021

🎉 This PR is included in version 1.0.0-alpha.14 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jrhender jrhender deleted the bug/SWTCH-1091_auto_update_api_doc branch January 18, 2022 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants