From 7fb14b8c050ba27d628341409126dd18b40abd02 Mon Sep 17 00:00:00 2001 From: melissag-ensemble <120194874+melissag-ensemble@users.noreply.github.com> Date: Thu, 14 May 2026 15:08:12 -0700 Subject: [PATCH 1/5] Auto content update (2026-05-14 22:08:12) --- .../workflows/build-auto-generated-files.yml | 11 +++ .github/workflows/deploy.yml | 35 ++++++++ .github/workflows/lint.yml | 36 ++++++++ .github/workflows/post-lint-comment.yml | 32 +++++++ .github/workflows/stage.yml | 23 +++++ .gitignore | 86 +++++++++---------- package.json | 32 +++++++ 7 files changed, 212 insertions(+), 43 deletions(-) create mode 100644 .github/workflows/build-auto-generated-files.yml create mode 100644 .github/workflows/deploy.yml create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/post-lint-comment.yml create mode 100644 .github/workflows/stage.yml create mode 100644 package.json diff --git a/.github/workflows/build-auto-generated-files.yml b/.github/workflows/build-auto-generated-files.yml new file mode 100644 index 0000000..3ee6368 --- /dev/null +++ b/.github/workflows/build-auto-generated-files.yml @@ -0,0 +1,11 @@ +--- +name: Build Auto-Generated Files +on: + workflow_dispatch: + +jobs: + build-contributors: + name: Build Auto-Generated Files + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/build-auto-generated-files-v2.yml@main + secrets: inherit + \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..8181bc6 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,35 @@ +--- +name: Production Deployment +on: + push: + branches: + - main + workflow_dispatch: + inputs: + env: + description: "Select environment to deploy to" + type: choice + required: true + default: "prod" + options: + - "prod" + - "stage & prod" + baseSha: + description: "Use base SHA commit to deploy from (empty string defaults to last commit before HEAD)" + type: string + required: false + default: "" + deployAll: + description: "Force deploy all files" + type: boolean + default: false +jobs: + deployment: + name: Deployment + if: github.actor != 'adp-devsite-app[bot]' && github.repository != 'AdobeDocs/dev-docs-template' + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy-v2.yml@main + secrets: inherit + with: + env: ${{ inputs.env || 'prod' }} + baseSha: ${{ inputs.baseSha || '' }} + deployAll: ${{ inputs.deployAll || false }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..44d6c6b --- /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 + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Lint + id: lint + continue-on-error: true + run: npx --yes github:AdobeDocs/adp-devsite-utils runLint -v + + - name: Save PR number + if: always() + run: echo "${{ github.event.pull_request.number }}" > pr-number.txt + + - name: Upload linter report + if: always() + uses: actions/upload-artifact@v7 + with: + name: linter-report + path: | + linter-report.txt + pr-number.txt + + - name: Fail if linter found errors + if: steps.lint.outcome == 'failure' + run: exit 1 diff --git a/.github/workflows/post-lint-comment.yml b/.github/workflows/post-lint-comment.yml new file mode 100644 index 0000000..d2c75fd --- /dev/null +++ b/.github/workflows/post-lint-comment.yml @@ -0,0 +1,32 @@ +--- +name: Post Linter Report +on: + workflow_run: + workflows: ["Lint"] + types: + - completed + +permissions: + pull-requests: write + +jobs: + comment: + runs-on: ubuntu-latest + if: github.event.workflow_run.event == 'pull_request' + steps: + - name: Download linter report artifact + uses: actions/download-artifact@v8 + with: + name: linter-report + run-id: ${{ github.event.workflow_run.id }} + github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Post Linter Report to PR + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + LINTER_REPORT_PATH: ./linter-report.txt + PR_NUMBER_PATH: ./pr-number.txt + run: | + npm install --no-save github:AdobeDocs/adp-devsite-scripts + node node_modules/adp-devsite-scripts/linter-bot/postLinterReport.js diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml new file mode 100644 index 0000000..d108f50 --- /dev/null +++ b/.github/workflows/stage.yml @@ -0,0 +1,23 @@ +--- +name: Staging +on: + workflow_dispatch: + inputs: + baseSha: + description: "Use base SHA commit to deploy from (empty string defaults to last commit before HEAD)" + type: string + required: false + default: "" + deployAll: + description: "Force deploy all files" + type: boolean + default: false +jobs: + deployment: + name: Deployment + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/deploy-v2.yml@main + secrets: inherit + with: + env: stage + baseSha: ${{ inputs.baseSha }} + deployAll: ${{ inputs.deployAll }} diff --git a/.gitignore b/.gitignore index 3d8da61..2a83daa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,50 +1,50 @@ -# Environment variables (keep .env.example for reference) -.env -!.env.example -# Node.js -node_modules/ -npm-debug.log -yarn-error.log +# OS and IDE generated files # +############################## +.DS_Store +.vscode +.history +.idea +.editorconfig -# Build output -dist/ -build/ +# npm yarn +node_modules +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 -# Editor and IDE files -.vscode/ -.idea/ +# cypress +cypress/videos +cypress/screenshots -# Logs -logs/ -*.log +# lerna +lerna-debug.log -# Dependency lock files -package-lock.json -yarn.lock +# local actions +.actrc +.secrets +local-test.yml -# macOS -.DS_Store +# yalc +.yalc +yalc.lock -# Windows -Thumbs.db - -# Android -.gradle/ -local.properties -*.iml -captures/ -.externalNativeBuild/ -.cxx/ -*.apk -*.aab - -# iOS / Xcode -xcuserdata/ -*.xcuserstate -DerivedData/ -Pods/ -Carthage/Build/ -*.ipa -*.dSYM.zip -*.dSYM \ No newline at end of file +#txt +linter-output.txt +linter-report.txt diff --git a/package.json b/package.json new file mode 100644 index 0000000..09f8ad8 --- /dev/null +++ b/package.json @@ -0,0 +1,32 @@ +{ + "name": "dev-docs-template", + "version": "1.0.0", + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/AdobeDocs/dev-docs-template" + }, + "author": { + "name": "Tim Kim", + "url": "https://github.com/timkim" + }, + "engines": { + "node": "^24.11.0" + }, + "scripts": { + "dev": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils dev", + "buildNavigation": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils buildNavigation -v", + "buildRedirections": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils buildRedirections -v", + "renameFiles": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils renameFiles -v", + "normalizeLinks": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils normalizeLinks -v", + "buildSiteWideBanner": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils buildSiteWideBanner -v", + "buildSiteMetadata": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils buildSiteMetadata -v", + "buildContributors": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils buildContributorsV2 -v", + "lint": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils runLint -v", + "lint:errorOnly": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils runLint", + "link:externalLinkOnly": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils runLint --external-links-only -v", + "link:checkAllLinks": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils runLint --internal-links-only --external-links-only -v", + "redirectCheck:stage": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils redirectChecker stage --verbose", + "redirectCheck:prod": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils redirectChecker prod --verbose" + } +} From 3b7acd2050ee4a6d5579402c3ef72f4f3f539858 Mon Sep 17 00:00:00 2001 From: melissag-ensemble <120194874+melissag-ensemble@users.noreply.github.com> Date: Thu, 14 May 2026 15:25:18 -0700 Subject: [PATCH 2/5] fix: preserve repo-specific fields in .gitignore --- .gitignore | 73 ++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 52 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 2a83daa..280e67b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,20 +1,64 @@ +# .gitignore -# OS and IDE generated files # -############################## +# Environment variables (keep .env.example for reference) +.env +!.env.example + +# Node.js +node_modules/ +npm-debug.log +yarn-error.log + +# Build output +dist/ +build/ + +# Editor and IDE files +.vscode/ +.idea/ + +# Logs +logs/ +*.log + +# Dependency lock files +package-lock.json +yarn.lock + +# macOS .DS_Store + +# Windows +Thumbs.db + +# Android +.gradle/ +local.properties +*.iml +captures/ +.externalNativeBuild/ +.cxx/ +*.apk +*.aab + +# iOS / Xcode +xcuserdata/ +*.xcuserstate +DerivedData/ +Pods/ +Carthage/Build/ +*.ipa +*.dSYM.zip +*.dSYM + +# Added by update-bot .vscode .history .idea .editorconfig - -# npm yarn node_modules -package-lock.json -yarn-error.log .pnp.* .yarn/* - -# keep in repo !.gitignore !.yarn.lock !.yarnrc.yml @@ -23,28 +67,15 @@ yarn-error.log !.yarn/releases !.yarn/sdks !.yarn/versions - -# gatsby files -.env .cache public - -# cypress cypress/videos cypress/screenshots - -# lerna lerna-debug.log - -# local actions .actrc .secrets local-test.yml - -# yalc .yalc yalc.lock - -#txt linter-output.txt linter-report.txt From 9ddd2f5ace994c5431d57af63f49d1c4123bd443 Mon Sep 17 00:00:00 2001 From: melissag-ensemble <120194874+melissag-ensemble@users.noreply.github.com> Date: Fri, 22 May 2026 10:11:02 -0700 Subject: [PATCH 3/5] Auto content update (2026-05-22 17:11:01) --- .github/workflows/lint.yml | 15 +++++-- .gitignore | 83 +++++--------------------------------- 2 files changed, 21 insertions(+), 77 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 44d6c6b..8c66a80 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,8 +3,6 @@ name: Lint on: pull_request: branches: [main] - paths: - - 'src/pages/**' jobs: lint: @@ -12,9 +10,19 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Check for src/pages changes + id: changes + run: | + git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q '^src/pages/' \ + && echo "changed=true" >> $GITHUB_OUTPUT \ + || echo "changed=false" >> $GITHUB_OUTPUT - name: Lint id: lint + if: steps.changes.outputs.changed == 'true' continue-on-error: true run: npx --yes github:AdobeDocs/adp-devsite-utils runLint -v @@ -30,7 +38,8 @@ jobs: path: | linter-report.txt pr-number.txt + if-no-files-found: ignore - name: Fail if linter found errors - if: steps.lint.outcome == 'failure' + if: steps.changes.outputs.changed == 'true' && steps.lint.outcome == 'failure' run: exit 1 diff --git a/.gitignore b/.gitignore index 280e67b..4ee2f6f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,81 +1,16 @@ -# .gitignore -# Environment variables (keep .env.example for reference) -.env -!.env.example - -# Node.js -node_modules/ -npm-debug.log -yarn-error.log - -# Build output -dist/ -build/ - -# Editor and IDE files -.vscode/ -.idea/ - -# Logs -logs/ -*.log - -# Dependency lock files -package-lock.json -yarn.lock - -# macOS +# OS .DS_Store -# Windows -Thumbs.db - -# Android -.gradle/ -local.properties -*.iml -captures/ -.externalNativeBuild/ -.cxx/ -*.apk -*.aab +# IDE +.vscode -# iOS / Xcode -xcuserdata/ -*.xcuserstate -DerivedData/ -Pods/ -Carthage/Build/ -*.ipa -*.dSYM.zip -*.dSYM +# environment variables +.env -# Added by update-bot -.vscode -.history -.idea -.editorconfig +# npm node_modules -.pnp.* -.yarn/* -!.gitignore -!.yarn.lock -!.yarnrc.yml -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/sdks -!.yarn/versions -.cache -public -cypress/videos -cypress/screenshots -lerna-debug.log -.actrc -.secrets -local-test.yml -.yalc -yalc.lock -linter-output.txt +package-lock.json + +# generated by .github/workflows/lint.yml linter-report.txt From e1fb92d951933b7d60ae64ab04b6dae988bc66d4 Mon Sep 17 00:00:00 2001 From: melissag-ensemble <120194874+melissag-ensemble@users.noreply.github.com> Date: Fri, 22 May 2026 10:59:45 -0700 Subject: [PATCH 4/5] fix: preserve repo-specific fields in package.json --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 09f8ad8..19379d1 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { - "name": "dev-docs-template", + "name": "embed-sdk-samples", "version": "1.0.0", "license": "Apache-2.0", "repository": { "type": "git", - "url": "https://github.com/AdobeDocs/dev-docs-template" + "url": "https://github.com/AdobeDocs/embed-sdk-samples" }, "author": { "name": "Tim Kim", @@ -29,4 +29,4 @@ "redirectCheck:stage": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils redirectChecker stage --verbose", "redirectCheck:prod": "npx --yes --prefer-online github:AdobeDocs/adp-devsite-utils redirectChecker prod --verbose" } -} +} \ No newline at end of file From 2429e7afdd6e81f46ca7e98f4a823ab30c22da26 Mon Sep 17 00:00:00 2001 From: melissag-ensemble <120194874+melissag-ensemble@users.noreply.github.com> Date: Fri, 22 May 2026 10:59:46 -0700 Subject: [PATCH 5/5] fix: preserve repo-specific entries in .gitignore --- .gitignore | 53 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 4ee2f6f..840d155 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,53 @@ +# Environment variables (keep .env.example for reference) +.env +!.env.example -# OS -.DS_Store +# Node.js +node_modules/ +npm-debug.log +yarn-error.log -# IDE -.vscode +# Build output +dist/ +build/ -# environment variables -.env +# Editor and IDE files +.vscode/ +.idea/ -# npm -node_modules +# Logs +logs/ +*.log + +# Dependency lock files package-lock.json +yarn.lock + +# macOS +.DS_Store + +# Windows +Thumbs.db + +# Android +.gradle/ +local.properties +*.iml +captures/ +.externalNativeBuild/ +.cxx/ +*.apk +*.aab + +# iOS / Xcode +xcuserdata/ +*.xcuserstate +DerivedData/ +Pods/ +Carthage/Build/ +*.ipa +*.dSYM.zip +*.dSYM # generated by .github/workflows/lint.yml linter-report.txt