Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 0 additions & 74 deletions .github/CODE_OF_CONDUCT.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The following are a set of guidelines to follow when contributing to this projec

## Code Of Conduct

This project adheres to the Adobe [code of conduct](CODE_OF_CONDUCT.md). By participating,
This project adheres to the Adobe [code of conduct](../CODE_OF_CONDUCT.md). By participating,
you are expected to uphold this code. Please report unacceptable behavior to
[[email protected]](mailto:[email protected]).

Expand Down
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ updates:
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
allow:
- dependency-name: "@adobe/gatsby-theme-aio"
versioning-strategy: increase
open-pull-requests-limit: 25
labels:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/linters/.yaml-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ rules:
key-duplicates: enable
line-length:
level: warning
max: 200
max: 100
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
new-line-at-end-of-file: disable
Expand Down
6 changes: 6 additions & 0 deletions .github/super-linter.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
IGNORE_GITIGNORED_FILES=true
VALIDATE_GITLEAKS=true
VALIDATE_MARKDOWN=true
MARKDOWN_CONFIG_FILE=.markdownlint.yml
VALIDATE_YAML=true
VALIDATE_JSON=true
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ jobs:
GATSBY_ALGOLIA_API_KEY: ${{ secrets.AIO_ALGOLIA_API_KEY }}
GATSBY_ALGOLIA_INDEX_ALL_SRC: ${{ secrets.AIO_ALGOLIA_INDEX_ALL_SRC }}
GATSBY_ALGOLIA_SEARCH_INDEX: ${{ secrets.AIO_ALGOLIA_SEARCH_INDEX }}
GATSBY_ALGOLIA_INDEX_ENV_PREFIX: ${{ secrets.AIO_ALGOLIA_INDEX_ENV_PREFIX }}
GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }}

- name: Deploy
Expand Down Expand Up @@ -248,6 +249,7 @@ jobs:
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME || github.event.repository.name }}
GATSBY_ALGOLIA_INDEX_ALL_SRC: ${{ secrets.AIO_ALGOLIA_INDEX_ALL_SRC }}
GATSBY_ALGOLIA_SEARCH_INDEX: ${{ secrets.AIO_ALGOLIA_SEARCH_INDEX }}
GATSBY_ALGOLIA_INDEX_ENV_PREFIX: ${{ secrets.AIO_ALGOLIA_INDEX_ENV_PREFIX }}
GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }}
- name: Deploy
uses: icaraps/static-website-deploy@master
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
# Full git history is needed to get a proper list of changed files
# within `super-linter`
fetch-depth: 0
- run: cat ".github/super-linter.env" >> "$GITHUB_ENV"

################################
# Run Linters against code base #
Expand All @@ -49,21 +50,12 @@ jobs:
# Use full version number to avoid cases when a next
# released version is buggy
# About slim image: https://github.com/github/super-linter#slim-image
uses: github/super-linter/slim@v4.9.4
uses: github/super-linter/slim@v4.10.1
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: main
VALIDATE_ALL_CODEBASE: false
VALIDATE_GITHUB_ACTIONS: true
VALIDATE_GITLEAKS: true
#
# The Markdown rules are defined at
# .github/linters/.markdown-lint.yml
#
# Documentation on rules:
# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
VALIDATE_MARKDOWN: true
VALIDATE_YAML: true

- name: Setup Node v16 for Yarn v3
uses: actions/setup-node@v3
Expand All @@ -85,6 +77,11 @@ jobs:
with:
cmd: install

- name: Check internal links
uses: borales/actions-yarn@v3
with:
cmd: test:links

- name: Build site
if: ${{ success() }}
uses: borales/actions-yarn@v3
Expand Down
19 changes: 15 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"url": "https://github.com/gigazelle"
},
"dependencies": {
"@adobe/gatsby-theme-aio": "^4.9.0",
"gatsby": "^4.22.0",
"@adobe/gatsby-theme-aio": "^4.9.7",
"gatsby": "4.22.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
Expand All @@ -25,7 +25,18 @@
"build": "gatsby build",
"build:incremental": "GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES=true gatsby build --log-pages",
"serve": "gatsby serve",
"clean": "gatsby clean"
"clean": "gatsby clean",
"test:links": "remark src/pages --quiet --frail",
"lint": "docker run --rm -e RUN_LOCAL=true --env-file '.github/super-linter.env' -v \"$PWD\":/tmp/lint github/super-linter:slim-v4.10.1"
},
"packageManager": "[email protected]"
"remarkConfig": {
"plugins": [
"remark-validate-links"
]
},
"packageManager": "[email protected]",
"devDependencies": {
"remark-cli": "^11.0.0",
"remark-validate-links": "^12.1.0"
}
}
Loading