Skip to content

Commit ff976ae

Browse files
committed
Merge upstream/main into infra/super-linter-biome-json
2 parents 1e5d271 + 488b3ca commit ff976ae

54 files changed

Lines changed: 11025 additions & 786 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eleventy.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
const yaml = require("js-yaml");
22

3-
module.exports = function(eleventyConfig) {
3+
module.exports = function (eleventyConfig) {
4+
eleventyConfig.addShortcode("currentYear", function () {
5+
return new Date().getFullYear();
6+
});
47
// Add this line to copy your external assets
58
eleventyConfig.addPassthroughCopy("src/assets");
69
// 1. Recognize YAML as a template format
@@ -20,11 +23,11 @@ module.exports = function(eleventyConfig) {
2023
const fs = require("fs/promises");
2124
const content = await fs.readFile(inputPath, "utf-8");
2225
return yaml.load(content);
23-
}
26+
},
2427
});
2528

2629
// 2. The Randomized Collection
27-
eleventyConfig.addCollection("randomPeople", function(collectionApi) {
30+
eleventyConfig.addCollection("randomPeople", function (collectionApi) {
2831
// Grab all yaml files from the users folder
2932
const people = collectionApi.getFilteredByGlob("src/users/*.yaml");
3033

@@ -44,7 +47,7 @@ module.exports = function(eleventyConfig) {
4447
dir: {
4548
input: "src",
4649
output: "_site",
47-
includes: "_includes"
48-
}
50+
includes: "_includes",
51+
},
4952
};
5053
};

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @jbampton

.github/dependabot.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1-
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically
21
version: 2
32
updates:
4-
# Maintain dependencies for GitHub Actions
53
- package-ecosystem: "github-actions"
64
directory: "/"
75
schedule:
86
interval: "daily"
7+
groups:
8+
github-dependencies:
9+
patterns:
10+
- "*"
11+
cooldown:
12+
default-days: 7
13+
14+
- package-ecosystem: "npm"
15+
directory: "/"
16+
schedule:
17+
interval: "daily"
18+
groups:
19+
github-dependencies:
20+
patterns:
21+
- "*"
22+
cooldown:
23+
default-days: 7

.github/linters/.markdown-lint.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,7 @@
11
# https://github.com/DavidAnson/markdownlint#rules--aliases
2-
# markdownlint -c .github/linters/.markdown-lint.yml .
3-
4-
# MD001/heading-increment/header-increment Heading levels should only increment by one level at a time
5-
MD001: false
62

73
# MD013/line-length Line length
84
MD013: false
95

10-
# MD024/no-duplicate-heading/no-duplicate-header
11-
MD024: false
12-
13-
# MD026/no-trailing-punctuation Trailing punctuation in heading
14-
MD026: false
15-
16-
# MD029/ol-prefix Ordered list item prefix
17-
MD029: false
18-
19-
# MD033/no-inline-html Inline HTML
20-
MD033: false
21-
22-
# MD040 fenced-code-language - Fenced code blocks should have a language specified
23-
MD040: false
24-
25-
# MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading
26-
MD041: false
27-
28-
# MD059/descriptive-link-text Link text should be descriptive
29-
MD059: false
6+
# MD036/no-emphasis-as-heading Emphasis used instead of a heading
7+
MD036: false

.github/workflows/deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ on:
77

88
jobs:
99
deployment:
10+
if: github.repository == 'NextCommunity/NextCommunity.github.io'
1011
permissions:
11-
pages: write # to deploy to Pages
12-
id-token: write # to verify the deployment originates from an appropriate source
12+
pages: write # to deploy to Pages
13+
id-token: write # to verify the deployment originates from an appropriate source
1314
runs-on: ubuntu-latest
1415
steps:
1516
- name: Checkout code
@@ -25,7 +26,7 @@ jobs:
2526
- name: Upload artifact
2627
uses: actions/upload-pages-artifact@v4
2728
with:
28-
path: '_site' # The directory that contains the deployable files
29+
path: "_site" # The directory that contains the deployable files
2930
- name: Deploy to GitHub Pages
3031
id: deployment
3132
uses: actions/deploy-pages@v4

.github/workflows/lint.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/pre-commit.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: pre-commit
2+
3+
permissions:
4+
contents: read
5+
6+
on: [pull_request]
7+
8+
jobs:
9+
pre-commit:
10+
name: Run pre-commit
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v6
15+
with:
16+
# Fetch all history so pre-commit can compare if needed
17+
fetch-depth: 0
18+
- name: Set up Python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: "3.x"
22+
architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install pre-commit
27+
- name: Set PY
28+
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
29+
- name: Cache Pre-commit Hooks
30+
uses: actions/cache@v5
31+
with:
32+
path: ~/.cache/pre-commit
33+
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
34+
- name: Run pre-commit hooks
35+
run: pre-commit run --all-files --show-diff-on-failure --color always

.github/workflows/super-linter.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
1-
name: Lint
1+
name: Super-Linter
22

33
on: [pull_request]
44

5+
permissions: {}
6+
57
jobs:
68
build:
7-
name: GitHub Super-Linter
9+
name: Run Super-Linter
810
runs-on: ubuntu-latest
11+
permissions:
12+
# contents permission to clone the repository
13+
contents: read
914
steps:
10-
- uses: actions/checkout@v4
11-
- uses: super-linter/super-linter@v7.2.1
15+
- name: Checkout Code
16+
uses: actions/checkout@v4
17+
with:
18+
# super-linter needs the full git history to get the
19+
# list of files that changed across commits
20+
fetch-depth: 0
21+
persist-credentials: false
22+
- name: Super-Linter
23+
uses: super-linter/super-linter@v7.2.1
1224
env:
1325
ERROR_ON_MISSING_EXEC_BIT: true
1426
VALIDATE_EDITORCONFIG: true
27+
VALIDATE_MARKDOWN: true
1528
VALIDATE_YAML: true
1629
VALIDATE_BIOME: true
1730
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ _site
22
.jekyll-cache
33
node_modules
44
vendor
5+
.venv

.pre-commit-config.yaml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
default_stages: [pre-commit, pre-push]
2+
minimum_prek_version: "0.2.22"
3+
default_language_version:
4+
python: python3
5+
node: 24.13.0
6+
exclude: |
7+
(?x)^(
8+
\.git/|
9+
_site/|
10+
node_modules/|
11+
package-lock\.json$
12+
)
13+
14+
repos:
15+
- repo: meta
16+
hooks:
17+
- id: identity
18+
name: Run identity
19+
description: Run the identity check
20+
- id: check-hooks-apply
21+
name: run check-hooks-apply
22+
description: check that all the hooks apply to the repository
23+
24+
- repo: local
25+
hooks:
26+
- id: check-zip-file-is-not-committed
27+
name: check no zip files are committed
28+
description: Zip files are not allowed in the repository
29+
language: fail
30+
entry: |
31+
Zip files are not allowed in the repository as they are hard to
32+
track and have security implications. Please remove the zip file from the repository.
33+
files: (?i)\.zip$
34+
- id: npm-ci
35+
name: run npm-ci
36+
description: Install Node dependencies
37+
entry: npm ci
38+
language: system
39+
pass_filenames: false
40+
- id: eleventy-build-check
41+
name: run eleventy-build-check
42+
description: Eleventy build and output check
43+
entry: npm run build
44+
language: system
45+
pass_filenames: false
46+
- id: npm-audit
47+
name: run npm-audit
48+
description: Run npm audit
49+
entry: npm audit --audit-level=high
50+
language: system
51+
pass_filenames: false
52+
53+
# GO-based
54+
# - repo: https://github.com/gitleaks/gitleaks
55+
# rev: v8.30.0
56+
# hooks:
57+
# - id: gitleaks
58+
# name: Run gitleaks
59+
# description: Check for secrets with gitleaks
60+
61+
- repo: https://github.com/Lucas-C/pre-commit-hooks
62+
rev: v1.5.6
63+
hooks:
64+
- id: chmod
65+
name: Set file permissions
66+
description: Does not run on Windows so setup as a manual hook
67+
args: ["644"]
68+
files: \.md$
69+
stages: [manual]
70+
71+
- repo: https://github.com/pre-commit/pre-commit-hooks
72+
rev: v6.0.0
73+
hooks:
74+
- id: trailing-whitespace
75+
name: run trailing-whitespace
76+
description: trims trailing whitespace
77+
args: [--markdown-linebreak-ext=md]
78+
- id: end-of-file-fixer
79+
name: run end-of-file-fixer
80+
description: makes sure files end in a newline and only a newline
81+
- id: fix-byte-order-marker
82+
name: run fix-byte-order-marker
83+
description: removes UTF-8 byte order marker
84+
- id: forbid-submodules
85+
name: run forbid-submodules
86+
description: forbids any submodules in the repository
87+
- id: check-yaml
88+
name: run check-yaml
89+
description: attempts to load all yaml files to verify syntax
90+
- id: check-added-large-files
91+
name: run check-added-large-files
92+
description: prevent giant files from being committed
93+
- id: check-json
94+
name: run check-json
95+
description: check JSON files for syntax errors
96+
- id: check-merge-conflict
97+
name: run check-merge-conflict
98+
description: check for merge conflict markers
99+
- id: check-case-conflict
100+
name: run check-case-conflict
101+
description: check for case conflicts in file names
102+
- id: check-vcs-permalinks
103+
name: run check-vcs-permalinks
104+
description: ensures that links to vcs websites are permalinks
105+
- id: detect-aws-credentials
106+
name: run detect-aws-credentials
107+
description: checks for the existence of AWS secrets that you have set up with the AWS CLI
108+
args: [--allow-missing-credentials]
109+
- id: detect-private-key
110+
name: run detect-private-key
111+
description: checks for the existence of private keys
112+
- id: mixed-line-ending
113+
name: run mixed-line-ending
114+
description: replaces or checks mixed line ending
115+
116+
- repo: https://github.com/pre-commit/mirrors-prettier
117+
rev: v4.0.0-alpha.8
118+
hooks:
119+
- id: prettier
120+
name: run prettier
121+
types_or: [css, html, javascript, json, markdown, yaml]
122+
additional_dependencies: ["prettier@3.8.1"]
123+
124+
- repo: https://github.com/igorshubovych/markdownlint-cli
125+
rev: v0.47.0
126+
hooks:
127+
- id: markdownlint
128+
name: run markdownlint
129+
description: check Markdown files with markdownlint
130+
args: [--config=.github/linters/.markdown-lint.yml]
131+
types: [markdown]
132+
files: \.md$
133+
134+
- repo: https://github.com/adrienverge/yamllint
135+
rev: v1.38.0
136+
hooks:
137+
- id: yamllint
138+
name: run yamllint
139+
description: check YAML files with yamllint
140+
args: [--strict, -c=.github/linters/.yaml-lint.yml]
141+
types: [yaml]
142+
files: \.ya?ml$

0 commit comments

Comments
 (0)