-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 inline docs on building API docs to commit block API verify error message #42432
Add inline docs on building API docs to commit block API verify error message #42432
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.
That's a useful hint 👍🏻
@gziolo fastest review ever! 😆 |
Although, on second thought. Should we recommend a more general command:
It might be three different things that changed the files represented as |
Size Change: 0 B Total Size: 1.25 MB ℹ️ View Unchanged
|
@@ -35,7 +35,7 @@ const getUnstagedReadmes = () => | |||
'\n', | |||
'Some API docs may be out of date:', | |||
unstagedReadmes.toString(), | |||
'Either stage them or continue with --no-verify.', | |||
'Either build and stage them with npm run api-docs:blocks or continue with --no-verify.', |
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.
'Either build and stage them with npm run api-docs:blocks or continue with --no-verify.', | |
'Either build and stage them with npm run docs:build or continue with --no-verify.', |
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.
@gziolo What do you think?
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.
It will always work correctly 👍🏻
I force merged this one because the failing e2e tests were unrelated. |
What?
If you make a change to a block's attributes and then commit the pre-commit check will fail with the following message:
This PR adds instructions inline within the error message to include details on how to rebuild the API docs.
Closes #42420
Why?
Because it's easier if the error tells you how to fix it.
How?
Adds instructions to error.
Testing Instructions
block.json
npm run api-docs:blocks
.Screenshots or screencast