diff --git a/.github/linters/.markdownlint.yml b/.github/linters/.markdownlint.yml deleted file mode 100644 index 7c89f2e24..000000000 --- a/.github/linters/.markdownlint.yml +++ /dev/null @@ -1,51 +0,0 @@ ---- -########################### -########################### -## Markdown Linter rules ## -########################### -########################### - -# Linter rules doc: -# - https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md -# -# Note: -# To comment out a single error: -# -# any violations you want -# -# - -# Default state for all rules -default: false - -################# -# Rules by tags # -################# -blanks-around-fences: true # Fenced code blocks should be surrounded by blank lines -blanks-around-headings: true # Headings should be surrounded by blank lines -blanks-around-lists: true # Lists should be surrounded by blank lines -code-block-style: - style: "fenced" -code-fence-style: - style: "backtick" -emphasis-style: - style: "consistent" -fenced-code-language: true # Fenced code blocks should have a language specified -heading-start-left: true # Headings must start at the beginning of the line -heading-style: - style: "atx" -hr-style: true # Horizontal rule style -list-indent: true # Inconsistent indentation for list items at the same level -no-empty-links: true -no-missing-space-atx: true # No space after hash on atx style heading -no-multiple-blanks: true # Multiple consecutive blank lines -no-reversed-links: true -no-space-in-code: true -no-space-in-emphasis: true -no-space-in-links: true -no-trailing-spaces: true -single-trailing-newline: true # Files should end with a single newline character -strong-style: - style: "consistent" -ul-style: - style: "consistent" diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml deleted file mode 100644 index 764b5d4dd..000000000 --- a/.github/linters/.yaml-lint.yml +++ /dev/null @@ -1,59 +0,0 @@ ---- -########################################### -# These are the rules used for # -# linting all the yaml files in the stack # -# NOTE: # -# You can disable line with: # -# # yamllint disable-line # -########################################### -rules: - braces: - level: warning - min-spaces-inside: 0 - max-spaces-inside: 0 - min-spaces-inside-empty: 1 - max-spaces-inside-empty: 5 - brackets: - level: warning - min-spaces-inside: 0 - max-spaces-inside: 0 - min-spaces-inside-empty: 1 - max-spaces-inside-empty: 5 - colons: - level: warning - max-spaces-before: 0 - max-spaces-after: 1 - commas: - level: warning - max-spaces-before: 0 - min-spaces-after: 1 - max-spaces-after: 1 - comments: disable - comments-indentation: disable - document-end: disable - document-start: - level: warning - present: true - empty-lines: - level: warning - max: 2 - max-start: 0 - max-end: 0 - hyphens: - level: warning - max-spaces-after: 1 - indentation: - level: warning - spaces: consistent - indent-sequences: true - check-multi-line-strings: false - key-duplicates: enable - line-length: - level: warning - max: 200 - allow-non-breakable-words: true - allow-non-breakable-inline-mappings: true - new-line-at-end-of-file: disable - new-lines: - type: unix - trailing-spaces: disable diff --git a/.github/linters/metadata.schema.yml b/.github/linters/metadata.schema.yml deleted file mode 100644 index 4342eb811..000000000 --- a/.github/linters/metadata.schema.yml +++ /dev/null @@ -1,37 +0,0 @@ -properties: - title: - type: string - maxLength: 60 - description: - type: string - maxLength: 160 - keywords: - type: array - items: - type: string - enum: - - API Mesh - - App Builder - - B2B - - Backend Development - - Cache - - Checkout - - Cloud - - Configuration - - Cron - - Events - - Extensibility - - Extensions - - GraphQL - - Integration - - Inventory - - Payments - - Performance - - REST - - Security - - Tools - - Upgrade - -required: - - title - - description \ No newline at end of file diff --git a/.github/workflows/add-to-project_job.yml b/.github/workflows/add-to-project_job.yml deleted file mode 100644 index 987006d57..000000000 --- a/.github/workflows/add-to-project_job.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Add to project job - -on: - workflow_call - -jobs: - add-to-project: - runs-on: ubuntu-latest - - steps: - - name: Add to Commerce PR project - if: github.event_name == 'pull_request_target' - uses: actions/add-to-project@v1.0.2 - with: - project-url: https://github.com/orgs/AdobeDocs/projects/5 # The organizational project for pull requests - github-token: ${{ secrets.COMMERCE_PROJECT_AUTOMATION }} - - - name: Add to Commerce Issue project - if: github.event_name == 'issues' - uses: actions/add-to-project@v1.0.2 - with: - project-url: https://github.com/orgs/AdobeDocs/projects/6 # The organizational project for issues - github-token: ${{ secrets.COMMERCE_PROJECT_AUTOMATION }} diff --git a/.github/workflows/deploy-to-pages_job.yml b/.github/workflows/deploy-to-pages_job.yml deleted file mode 100644 index d56192b65..000000000 --- a/.github/workflows/deploy-to-pages_job.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Deploy Gatsby site to Pages - -on: workflow_call - -jobs: - # Build job - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - cache: yarn - - name: Setup Pages - id: pages - uses: actions/configure-pages@v5 - with: - # Automatically inject pathPrefix in your Gatsby configuration file. - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: gatsby - - name: Restore cache - uses: actions/cache@v4 - with: - path: | - public - .cache - key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }} - restore-keys: | - ${{ runner.os }}-gatsby-build- - - name: Install dependencies - run: yarn install - - name: Build with Gatsby - env: - PREFIX_PATHS: 'true' - run: yarn run build - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./public - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/validate-pr_job.yml b/.github/workflows/validate-pr_job.yml deleted file mode 100644 index d14d20368..000000000 --- a/.github/workflows/validate-pr_job.yml +++ /dev/null @@ -1,51 +0,0 @@ ---- -name: Reusable workflow to validate a pull request - -on: workflow_call - -jobs: - lint-test: - runs-on: ubuntu-latest - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Load super-linter configuration - shell: bash - run: cat .github/super-linter.env >> "$GITHUB_ENV" - - - name: Lint Code Base with super-linter - uses: super-linter/super-linter/slim@v8.5.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - remark-test: - runs-on: ubuntu-latest - needs: lint-test - steps: - - uses: actions/checkout@v5 - - name: Use Setup Node and Install Dependencies Action - uses: commerce-docs/devsite-install-action@main - with: - node-version-file: '.nvmrc' - cache-dependency-path: 'yarn.lock' - - - name: Run remark checks (see .remarkrc.yml for enabled plugins) - run: yarn test - - build-test: - runs-on: ubuntu-latest - needs: remark-test - steps: - - uses: actions/checkout@v5 - - name: Setup Node.js and install dependencies - uses: commerce-docs/devsite-install-action@main - with: - node-version-file: '.nvmrc' - cache-dependency-path: 'yarn.lock' - - - name: Build site - run: yarn build