Skip to content

Commit

Permalink
[Build Tooling]: Fix precommit hook to build block docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Dec 23, 2021
1 parent 5a8259b commit 08237e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/api-docs/gen-block-lib-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ const BLOCK_LIBRARY_DOCS_FILE = path.resolve(
*
* @type {string}
*/
const START_TOKEN = '<!-- START Autogenerated - DO NOT EDIT -->';
const START_TOKEN = '<!-- START TOKEN Autogenerated - DO NOT EDIT -->';

/**
* Start token for matching string in doc file.
*
* @type {string}
*/
const END_TOKEN = '<!-- END Autogenerated - DO NOT EDIT -->';
const END_TOKEN = '<!-- END TOKEN Autogenerated - DO NOT EDIT -->';

/**
* Regular expression using tokens for matching in doc file.
Expand Down
4 changes: 2 additions & 2 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This page lists the core blocks included in the block-library package.
Items marked with a strikeout (~~strikeout~~) are explicitly disabled.
</div>

<!-- START Autogenerated - DO NOT EDIT -->
<!-- START TOKEN Autogenerated - DO NOT EDIT -->

## Archives

Expand Down Expand Up @@ -809,4 +809,4 @@ Embed a video from your media library or upload a new one.
- **Supports:** align, anchor
- **Attributes:** autoplay, caption, controls, id, loop, muted, playsInline, poster, preload, src, tracks

<!-- END Autogenerated - DO NOT EDIT -->
<!-- END TOKEN Autogenerated - DO NOT EDIT -->
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@
"node ./docs/tool/index.js"
],
"packages/**/*.{js,ts,tsx,json}": [
"npm-run-all api-docs:*",
"npm run api-docs:ref",
"npm run api-docs:blocks",
"node ./bin/api-docs/are-api-docs-unstaged.js",
"node ./bin/packages/lint-staged-typecheck.js"
]
Expand Down

0 comments on commit 08237e4

Please sign in to comment.