Skip to content

Commit c422f35

Browse files
authored
Merge pull request #7459 from Shopify/clean-up-old-docs-content
Delete old docs content
2 parents 4fd9257 + f35ffa4 commit c422f35

198 files changed

Lines changed: 23 additions & 12303 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bin/docs/build-dev-docs.sh

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,15 @@
1-
echo "STARTING"
2-
COMPILE_DOCS="pnpm tsc --project bin/docs/tsconfig.docs.json --moduleResolution node --target esNext && pnpm generate-docs --overridePath ./bin/docs/typeOverride.json --input ./docs-shopify.dev/commands --output ./docs-shopify.dev/generated && rm -rf docs-shopify.dev/commands/**/*.doc.js docs-shopify.dev/commands/*.doc.js"
3-
COMPILE_STATIC_PAGES="pnpm tsc docs-shopify.dev/static/*.doc.ts --moduleResolution node --target esNext && pnpm generate-docs --isLandingPage --input ./docs-shopify.dev/static --output ./docs-shopify.dev/generated && rm -rf docs-shopify.dev/static/*.doc.js"
4-
COMPILE_CATEGORY_PAGES="pnpm tsc docs-shopify.dev/categories/*.doc.ts --moduleResolution node --target esNext && pnpm generate-docs --isCategoryPage --input ./docs-shopify.dev/categories --output ./docs-shopify.dev/generated && rm -rf docs-shopify.dev/categories/*.doc.js"
1+
#!/bin/bash
2+
set -e
53

6-
if [ "$1" = "isTest" ];
7-
then
8-
COMPILE_DOCS="pnpm tsc --project bin/docs/tsconfig.docs.json --moduleResolution node --target esNext && pnpm generate-docs --overridePath ./bin/docs/typeOverride.json --input ./docs-shopify.dev/commands --output ./docs-shopify.dev/static/temp && rm -rf docs-shopify.dev/commands/**/*.doc.js docs-shopify.dev/commands/*.doc.js"
9-
COMPILE_STATIC_PAGES="pnpm tsc docs-shopify.dev/static/*.doc.ts --moduleResolution node --target esNext && pnpm generate-docs --isLandingPage --input ./docs-shopify.dev/static/docs-shopify.dev --output ./docs-shopify.dev/static/temp && rm -rf docs-shopify.dev/static/*.doc.js"
10-
fi
11-
12-
echo $1
13-
echo "RUNNING"
14-
eval $COMPILE_DOCS
15-
eval $COMPILE_STATIC_PAGES
16-
eval $COMPILE_CATEGORY_PAGES
17-
echo "DONE"
4+
pnpm exec generate-docs \
5+
--input ./docs-shopify.dev/commands/interfaces \
6+
--output ./docs-shopify.dev/generated
187

19-
# Copy generated docs to shopify-dev in the world repo if available
8+
# Copy generated v2 docs to shopify-dev in the world repo if available
209
WORLD_DEST="$HOME/world/trees/root/src/areas/platforms/shopify-dev/db/data/docs/templated_apis/shopify_cli"
2110
if [ -d "$WORLD_DEST" ]; then
22-
for file in generated_docs_data.json generated_docs_data_v2.json generated_static_pages.json generated_category_pages.json; do
23-
if [ -f "./docs-shopify.dev/generated/$file" ]; then
24-
cp "./docs-shopify.dev/generated/$file" "$WORLD_DEST/$file"
25-
echo "Copied $file to $WORLD_DEST"
26-
fi
27-
done
11+
if [ -f "./docs-shopify.dev/generated/generated_docs_data_v2.json" ]; then
12+
cp "./docs-shopify.dev/generated/generated_docs_data_v2.json" "$WORLD_DEST/generated_docs_data_v2.json"
13+
echo "Copied generated_docs_data_v2.json to $WORLD_DEST"
14+
fi
2815
fi

bin/docs/tsconfig.docs.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

bin/docs/typeOverride.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs-shopify.dev/categories/app.doc.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs-shopify.dev/categories/general.doc.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs-shopify.dev/categories/hydrogen.doc.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs-shopify.dev/categories/store.doc.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs-shopify.dev/categories/theme.doc.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs-shopify.dev/commands/app-build.doc.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs-shopify.dev/commands/app-bulk-cancel.doc.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)