Skip to content

Commit

Permalink
chore: remove custom apps docs (keep components-playground) (#3391)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko authored Feb 6, 2024
1 parent 973be93 commit c782a61
Show file tree
Hide file tree
Showing 140 changed files with 41 additions and 14,066 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs-content-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: errata-ai/vale-action@reviewdog
with:
version: 2.18.0
files: '["website/src","website-custom-views/src"]'
files: '["website-custom-views/src"]'
reporter: github-pr-review
filter_mode: diff_context
fail_on_error: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Documentation for Custom Applications
name: Components playground for Custom Applications

# The event triggers are configured as following:
# - on branch main, trigger the workflow on every push
Expand Down Expand Up @@ -45,9 +45,9 @@ jobs:
path: |
.cache
public
key: ${{ runner.os }}-gatsby-docs-custom-applications-v1-${{ hashFiles('**/pnpm-lock.yaml') }}
key: ${{ runner.os }}-components-playground-custom-applications-v1-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-gatsby-docs-custom-applications-v1-
${{ runner.os }}-components-playground-custom-applications-v1-
- name: Install dependencies
run: pnpm install
Expand All @@ -59,11 +59,8 @@ jobs:
- name: Building packages
run: pnpm build

- name: Building docs website
run: pnpm build:website:custom-applications
env:
NODE_OPTIONS: '--max-old-space-size=6144'
GATSBY_EXPERIMENTAL_QUERY_CONCURRENCY: 32
- name: Building Custom Applications components playground
run: pnpm build:website:custom-applications-components-playground

- name: Detect if is a production deployment (documentation)
if: github.event_name == 'push' && github.ref_name == 'main'
Expand All @@ -77,7 +74,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
scope: commercetools
vercel-args: '--prod --local-config website/vercel.json'
vercel-args: '--prod --local-config website-components-playground/vercel.json'
vercel-project-name: merchant-center-application-kit
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_DOCS }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID_DOCS }}
Expand All @@ -100,7 +97,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
scope: commercetools
vercel-args: '--local-config website/vercel.json'
vercel-args: '--local-config website-components-playground/vercel.json'
vercel-project-name: merchant-center-application-kit
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_DOCS }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID_DOCS }}
Expand All @@ -124,27 +121,3 @@ jobs:
env: ${{ steps.start-deployment.outputs.env }}
env_url: ${{ steps.deploy-docs-to-vercel-preview.outputs.preview-url }}
deployment_id: ${{ steps.start-deployment.outputs.deployment_id }}

link-check:
name: 'Check links'

needs: build_and_deploy_docs

if: github.event_name != 'push' && github.ref_name != 'main'

runs-on: ubuntu-latest

timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check links
uses: JustinBeckwith/linkinator-action@v1.10.4
with:
paths: https://appkit-sha-${{ github.sha }}.commercetools.vercel.app/custom-applications
config: website/linkinator.config.json
markdown: false
urlRewriteReplace: https://appkit-sha-${{ github.sha }}.commercetools.vercel.app
urlRewriteSearch: https://docs.commercetools.com
1 change: 0 additions & 1 deletion .stylelintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
website/public/
website-custom-views/public/
*.mdx
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ $ pnpm playground:start

Please look at the single packages in [`packages` folder](./packages) for documentation specific of each package.

_Documentation website coming soon_

## Contributing

Contributions are welcomed. Please have a read at our [contribution guidelines](CONTRIBUTING.md).
2 changes: 0 additions & 2 deletions jest.text.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ module.exports = {
moduleFileExtensions: ['md', 'mdx'],
modulePathIgnorePatterns: ['build', 'dist', 'public/', 'CHANGELOG.md'],
testMatch: [
'<rootDir>/website/**/*.md',
'<rootDir>/website/**/*.mdx',
'<rootDir>/website-custom-views/**/*.md',
'<rootDir>/website-custom-views/**/*.mdx',
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"template-custom-view-starter-typescript:start:prod:local": "pnpm --filter @commercetools-applications/merchant-center-custom-view-template-starter-typescript run start:prod:local",
"build": "./scripts/build_packages.sh",
"build:watch": "pnpm build --watch",
"build:website:custom-applications": "./scripts/build_website_custom_applications.sh",
"build:website:custom-applications-components-playground": "./scripts/build_website_custom_applications_components_playground.sh",
"build:website:custom-views": "./scripts/build_website_custom_views.sh",
"vercel-build": "echo \"Nothing to do, the build and deployment is managed in GH actions.\"",
"labels:sync": "github-labels sync",
Expand Down
1 change: 0 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ packages:
- custom-views-templates/*
- playground
- visual-testing-app
- website
- website-components-playground
- website-custom-views
21 changes: 0 additions & 21 deletions scripts/build_website_custom_applications.sh

This file was deleted.

15 changes: 15 additions & 0 deletions scripts/build_website_custom_applications_components_playground.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -e

echo "Preparing production builds"

echo "Building components playground (Custom Applications)"

pnpm --filter @commercetools-website/components-playground run build

echo "Moving dist folders into vercel-public"

rm -rf vercel-public
mkdir -p vercel-public
cp -R website-components-playground/dist vercel-public/playground
17 changes: 17 additions & 0 deletions website-components-playground/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": 2,
"github": {
"enabled": false
},
"outputDirectory": "vercel-public",
"rewrites": [
{
"source": "/custom-applications/playground/assets/(.*)",
"destination": "/playground/assets/$1"
},
{
"source": "/custom-applications/playground/(.*)",
"destination": "/playground/index.html"
}
]
}
2 changes: 0 additions & 2 deletions website/.eslintrc.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions website/.gitignore

This file was deleted.

Loading

2 comments on commit c782a61

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Deploy preview for merchant-center-application-kit ready!

✅ Preview
https://merchant-center-application-caok2191a-commercetools.vercel.app

Built with commit c782a61.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Deploy preview for application-kit-custom-views ready!

✅ Preview
https://application-kit-custom-views-2cxmsl8bn-commercetools.vercel.app

Built with commit c782a61.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.