From 406da86989cf45d22edcf11c7a4dd05aab1686e6 Mon Sep 17 00:00:00 2001 From: jiangy10 Date: Mon, 23 Mar 2026 19:49:05 -0400 Subject: [PATCH] Auto content update (2026-03-23 23:49:05) --- .github/workflows/lint.yml | 36 ++++++++++++++++++++++++++++++++++++ .gitignore | 30 +++++++++++++++++++++++------- package.json | 30 ++++++++++++++++++------------ 3 files changed, 77 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..8c6ddf8 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,36 @@ +--- + name: Lint + on: + pull_request: + branches: [main] + paths: + - 'src/pages/**' + + jobs: + lint: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Lint + id: lint + continue-on-error: true + run: npx --yes github:AdobeDocs/adp-devsite-utils runLint -v + + - name: Post Linter Report to PR + if: always() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_ID: ${{ github.event.pull_request.number }} + GITHUB_REPOSITORY: ${{ github.repository }} + run: | + npm install --no-save github:AdobeDocs/adp-devsite-scripts + node node_modules/adp-devsite-scripts/linter-bot/postLinterReport.js + + - name: Fail if linter found errors + if: steps.lint.outcome == 'failure' + run: exit 1 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 51fad6e..2a83daa 100644 --- a/.gitignore +++ b/.gitignore @@ -6,18 +6,33 @@ .history .idea .editorconfig -.code-workspace -.trash -Thumbs.db -.cursor/ # npm yarn node_modules -package.lock +package-lock.json yarn-error.log .pnp.* .yarn/* +# keep in repo +!.gitignore +!.yarn.lock +!.yarnrc.yml +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +# gatsby files +.env +.cache +public + +# cypress +cypress/videos +cypress/screenshots + # lerna lerna-debug.log @@ -30,5 +45,6 @@ local-test.yml .yalc yalc.lock -# local -tmp/ +#txt +linter-output.txt +linter-report.txt diff --git a/package.json b/package.json index 7f39a0f..1c93731 100644 --- a/package.json +++ b/package.json @@ -1,23 +1,29 @@ { - "name": "commerce-cloud-tools", + "name": "dev-docs-template", "version": "1.0.0", "license": "Apache-2.0", "repository": { "type": "git", - "url": "https://github.com/AdobeDocs/commerce-cloud-tools" + "url": "https://github.com/AdobeDocs/dev-docs-template" }, - "config": { - "sitePath": "commerce/cloud-tools" + "author": { + "name": "Tim Kim", + "url": "https://github.com/timkim" }, "scripts": { - "dev": "node ./dev.mjs", + "dev": "npx --yes github:AdobeDocs/adp-devsite-utils dev", + "buildNavigation": "npx --yes github:AdobeDocs/adp-devsite-utils buildNavigation -v", + "buildRedirections": "npx --yes github:AdobeDocs/adp-devsite-utils buildRedirections -v", + "renameFiles": "npx --yes github:AdobeDocs/adp-devsite-utils renameFiles -v", + "normalizeLinks": "npx --yes github:AdobeDocs/adp-devsite-utils normalizeLinks -v", + "buildSiteWideBanner": "npx --yes github:AdobeDocs/adp-devsite-utils buildSiteWideBanner -v", + "buildSiteMetadata": "npx --yes github:AdobeDocs/adp-devsite-utils buildSiteMetadata -v", + "buildContributors": "npx --yes github:AdobeDocs/adp-devsite-utils buildContributors -v", "lint": "npx --yes github:AdobeDocs/adp-devsite-utils runLint -v", - "lint:md": "npx --yes markdownlint-cli2 'src/pages/**/*.md' '*.md'", - "lint:md:fix": "npx --yes markdownlint-cli2 --fix 'src/pages/**/*.md' '*.md'", - "test": "npx --yes jest", - "test:config": "npx --yes jest tests/config.test.js" - }, - "devDependencies": { - "express": "5.2.1" + "lint:errorOnly": "npx --yes github:AdobeDocs/adp-devsite-utils runLint", + "link:externalLinkOnly": "npx --yes github:AdobeDocs/adp-devsite-utils runLint --external-links-only -v", + "link:checkAllLinks": "npx --yes github:AdobeDocs/adp-devsite-utils runLint --internal-links-only --external-links-only -v", + "redirectCheck:stage": "npx --yes github:AdobeDocs/adp-devsite-utils redirectChecker stage --verbose", + "redirectCheck:prod": "npx --yes github:AdobeDocs/adp-devsite-utils redirectChecker prod --verbose" } }