diff --git a/.github/workflows/build-auto-generated-files.yml b/.github/workflows/build-auto-generated-files.yml new file mode 100644 index 00000000..c926d91c --- /dev/null +++ b/.github/workflows/build-auto-generated-files.yml @@ -0,0 +1,13 @@ +--- +name: Build Auto-Generated Files +on: + pull_request: + workflow_dispatch: + +jobs: + build-contributors: + name: Build Auto-Generated Files + if: github.repository != 'AdobeDocs/dev-docs-template' + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/build-auto-generated-files.yml@main + secrets: inherit + \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 18f1e49d..8c6ddf8d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,17 +1,36 @@ --- - name: Lint - on: - pull_request: - branches: [main] - paths: - - 'src/pages/**' - - jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Lint - run: npx --yes github:AdobeDocs/adp-devsite-utils runLint -v \ No newline at end of file + 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 c2ed6184..38d98e63 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ # npm yarn node_modules -package.lock +package-lock.json yarn-error.log .pnp.* .yarn/* @@ -30,4 +30,17 @@ cypress/videos cypress/screenshots # lerna -lerna-debug.log \ No newline at end of file +lerna-debug.log + +# local actions +.actrc +.secrets +local-test.yml + +# yalc +.yalc +yalc.lock + +# Added by update-bot +linter-output.txt +linter-report.txt diff --git a/dev.mjs b/dev.mjs deleted file mode 100644 index 412e84de..00000000 --- a/dev.mjs +++ /dev/null @@ -1,28 +0,0 @@ -// content/docs -// serve static on 3001 - -import express from 'express'; -import fs from 'fs'; -import path from 'path'; -import { fileURLToPath } from 'url'; - -const __dirname = path.dirname(fileURLToPath(import.meta.url)); - -const PORT = process.env.DEV_PORT || 3003; - -// TODO: ensure `DOCS_DIRECTORY` starts with `/` -const DOCS_DIRECTORY = process.env.DIRECTORY || './src/pages'; - -const app = express(); -console.log(path.resolve(__dirname, `./${DOCS_DIRECTORY}`)); -app.use( - express.static(path.resolve(__dirname, `./${DOCS_DIRECTORY}`), { - setHeaders: (res) => { - res.setHeader('last-modified', new Date().toGMTString()); - }, - }), -); - -app.listen(PORT, () => { - console.debug(`Docs dev server is running on port ${PORT}`); -}); \ No newline at end of file diff --git a/package.json b/package.json index 5a625d4e..f85ce7ae 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,32 @@ { "private": true, - "name": "adobe-dev-distribution", + "name": "Developer-Distribution-Experience-Cloud", "version": "1.0.0", "license": "Apache-2.0", "repository": { "type": "git", - "url": "https://github.com/AdobeDocs/dev-site-documentation-template" + "url": "https://github.com/AdobeDocs/Developer-Distribution-Experience-Cloud" }, "author": { - "name": "Stephan Ringel", - "url": "https://github.com/icaraps" + "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", - "lint": "npx --yes github:AdobeDocs/adp-devsite-utils runLint -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: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" }, - "packageManager": "yarn@3.2.1", "devDependencies": { "express": "5.1.0" } diff --git a/src/pages/adp-site-metadata.json b/src/pages/adp-site-metadata.json new file mode 100644 index 00000000..59fd870e --- /dev/null +++ b/src/pages/adp-site-metadata.json @@ -0,0 +1 @@ +{"total":3,"offset":0,"limit":3,"data":[{"key":"contributors","value":"src/pages/contributors.json"},{"key":"get-credentials","value":null},{"key":"site-wide-banner","value":null}],":type":"sheet"} \ No newline at end of file diff --git a/src/pages/contributors.json b/src/pages/contributors.json new file mode 100644 index 00000000..167a2b02 --- /dev/null +++ b/src/pages/contributors.json @@ -0,0 +1 @@ +{"total":21,"offset":0,"limit":21,"data":[{"page":"/config","avatars":["https://avatars.githubusercontent.com/u/951386?v=4","https://avatars.githubusercontent.com/u/14320591?v=4"],"lastUpdated":"7/16/2025"},{"page":"/guides/","avatars":["https://avatars.githubusercontent.com/u/136454403?v=4","https://avatars.githubusercontent.com/u/14320591?v=4","https://avatars.githubusercontent.com/u/130189735?v=4","https://avatars.githubusercontent.com/u/951386?v=4","https://avatars.githubusercontent.com/u/78827399?v=4","https://avatars.githubusercontent.com/u/359935?v=4","https://avatars.githubusercontent.com/u/25147704?v=4","https://avatars.githubusercontent.com/u/57922?v=4"],"lastUpdated":"2/11/2026"},{"page":"/guides/branding-guidelines","avatars":["https://avatars.githubusercontent.com/u/136454403?v=4","https://avatars.githubusercontent.com/u/14320591?v=4"],"lastUpdated":"2/9/2026"},{"page":"/guides/commerce","avatars":["https://avatars.githubusercontent.com/u/359935?v=4"],"lastUpdated":"2/13/2023"},{"page":"/guides/discoverandmanage","avatars":["https://avatars.githubusercontent.com/u/136454403?v=4","https://avatars.githubusercontent.com/u/951386?v=4","https://avatars.githubusercontent.com/u/14320591?v=4","https://avatars.githubusercontent.com/u/77717258?v=4","https://avatars.githubusercontent.com/u/28722775?v=4","https://avatars.githubusercontent.com/u/359935?v=4","https://avatars.githubusercontent.com/u/147755538?v=4","https://avatars.githubusercontent.com/u/78827399?v=4"],"lastUpdated":"2/11/2026"},{"page":"/guides/discoverAndManage/app-builder-discover","avatars":["https://avatars.githubusercontent.com/u/136454403?v=4","https://avatars.githubusercontent.com/u/951386?v=4"],"lastUpdated":"3/12/2026"},{"page":"/guides/discoverAndManage/overview","avatars":["https://avatars.githubusercontent.com/u/136454403?v=4","https://avatars.githubusercontent.com/u/951386?v=4"],"lastUpdated":"2/11/2026"},{"page":"/guides/discoverAndManage/server-to-server-discover","avatars":["https://avatars.githubusercontent.com/u/951386?v=4"],"lastUpdated":"7/16/2025"},{"page":"/guides/getting-started","avatars":["https://avatars.githubusercontent.com/u/136454403?v=4","https://avatars.githubusercontent.com/u/14320591?v=4"],"lastUpdated":"2/11/2026"},{"page":"/guides/glossary","avatars":["https://avatars.githubusercontent.com/u/14320591?v=4","https://avatars.githubusercontent.com/u/130189735?v=4","https://avatars.githubusercontent.com/u/359935?v=4","https://avatars.githubusercontent.com/u/25147704?v=4"],"lastUpdated":"6/17/2025"},{"page":"/guides/plugin-id","avatars":["https://avatars.githubusercontent.com/u/14320591?v=4"],"lastUpdated":"6/17/2025"},{"page":"/guides/submission/app-builder-submission","avatars":["https://avatars.githubusercontent.com/u/136454403?v=4","https://avatars.githubusercontent.com/u/14320591?v=4"],"lastUpdated":"2/11/2026"},{"page":"/guides/submission/catalog-listing-submission","avatars":["https://avatars.githubusercontent.com/u/136454403?v=4","https://avatars.githubusercontent.com/u/14320591?v=4"],"lastUpdated":"2/9/2026"},{"page":"/guides/submission/overview","avatars":["https://avatars.githubusercontent.com/u/14320591?v=4","https://avatars.githubusercontent.com/u/951386?v=4","https://avatars.githubusercontent.com/u/28722775?v=4","https://avatars.githubusercontent.com/u/359935?v=4","https://avatars.githubusercontent.com/u/130189735?v=4"],"lastUpdated":"6/17/2025"},{"page":"/guides/submission/rejection-reasons","avatars":["https://avatars.githubusercontent.com/u/14320591?v=4"],"lastUpdated":"6/17/2025"},{"page":"/guides/submission/server-to-server-submission","avatars":["https://avatars.githubusercontent.com/u/136454403?v=4","https://avatars.githubusercontent.com/u/14320591?v=4"],"lastUpdated":"2/9/2026"},{"page":"/guides/submission/timelines-outcomes","avatars":["https://avatars.githubusercontent.com/u/14320591?v=4"],"lastUpdated":"6/17/2025"},{"page":"/guides/zxp/coming-soon","avatars":["https://avatars.githubusercontent.com/u/14320591?v=4"],"lastUpdated":"6/17/2025"},{"page":"/guides/zxp/distribution","avatars":["https://avatars.githubusercontent.com/u/136454403?v=4","https://avatars.githubusercontent.com/u/14320591?v=4","https://avatars.githubusercontent.com/u/130189735?v=4","https://avatars.githubusercontent.com/u/951386?v=4","https://avatars.githubusercontent.com/u/359935?v=4","https://avatars.githubusercontent.com/u/147755538?v=4"],"lastUpdated":"2/11/2026"},{"page":"/guides/zxp/resources","avatars":["https://avatars.githubusercontent.com/u/14320591?v=4","https://avatars.githubusercontent.com/u/359935?v=4"],"lastUpdated":"6/17/2025"},{"page":"/support/","avatars":["https://avatars.githubusercontent.com/u/14320591?v=4","https://avatars.githubusercontent.com/u/28722775?v=4","https://avatars.githubusercontent.com/u/359935?v=4","https://avatars.githubusercontent.com/u/57922?v=4"],"lastUpdated":"6/17/2025"}],":type":"sheet"} \ No newline at end of file