Skip to content

Commit c00fb2f

Browse files
committed
support building docs in-repo
1 parent e697694 commit c00fb2f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ packages/*/*.js
1111
packages/*/bin
1212
!packages/*/.eslintrc.js
1313
*.log
14+
packages/ui-extensions/docs/**/generated
1415

1516
# IntelliJ IDE ignore
1617
.idea

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"predeploy": "yarn build",
1515
"deploy": "changeset publish",
1616
"predeploy:unstable": "yarn build",
17-
"docs:checkout": "yarn workspace @shopify/ui-extensions build-docs",
17+
"docs:checkout": "yarn workspace @shopify/ui-extensions docs:checkout",
1818
"deploy:unstable": "changeset version --snapshot unstable && changeset publish --tag unstable --no-git-tag",
1919
"lint": "loom lint",
2020
"nuke": "rm -rf node_modules && yarn cache clean && rm -rf .loom && git clean -xdf ./packages; rm -rf ./build",

packages/ui-extensions/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "@shopify/ui-extensions",
33
"version": "2022.10.6",
4+
"scripts": {
5+
"docs:checkout": "sh ./docs/surfaces/checkout/build-docs.sh"
6+
},
47
"main": "index.js",
58
"module": "index.mjs",
69
"esnext": "index.esnext",
@@ -42,7 +45,8 @@
4245
"@remote-ui/core": "2.1.x"
4346
},
4447
"devDependencies": {
45-
"@shopify/generate-docs": "0.10.7"
48+
"@shopify/generate-docs": "0.10.7",
49+
"typescript": "^4.9.0"
4650
},
4751
"publishConfig": {
4852
"access": "public",

0 commit comments

Comments
 (0)