Skip to content
Merged
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
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
&& sudo apt update \
&& sudo apt install gh -y
- name: 🗂 Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
uses: actions/checkout@v4.2.2 # v4.2.2
with:
submodules: recursive
lfs: true
Expand All @@ -69,17 +69,17 @@ jobs:
working-directory: /mnt/airflow-site
run: echo "Working directory set to /mnt/airflow-site"
- name: 🐍 Setup Python
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
uses: actions/setup-python@v5.3.0 # v5.3.0
with:
python-version: '3.9'
- name: ❤️ Install Node 16
uses: actions/setup-node@v3.3.0 # v3.3.0
python-version: '3.12'
- name: ❤️ Install Node 22 LTS
uses: actions/setup-node@v4.2.0 # v4.2.0
with:
node-version: 16
node-version: 22
- name: 📚 Install Hugo
uses: peaceiris/actions-hugo@v2.4.13 # v2.4.13
uses: peaceiris/actions-hugo@v3.0.0 # v3.0.0
with:
hugo-version: '0.91.2'
hugo-version: '0.135.0'
extended: true
- name: 🟢 Install node dependencies
run: |
Expand All @@ -96,7 +96,7 @@ jobs:
uv tool install pre-commit --with pre-commit-uv
pre-commit run --all-files --color always
- name: 🗂 Checkout ${{ env.PUBLISH_BRANCH }} branch with minimum depth
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3
uses: actions/checkout@v4.2.2 # v4.2.2
with:
ref: ${{ env.PUBLISH_BRANCH }}
fetch-depth: 1
Expand All @@ -114,7 +114,7 @@ jobs:
rm -rf /tmp/aws/
- name: Configure AWS credentials
if: env.PROD_PUBLISH_REQUIRED != 'false' || env.STAGING_PUBLISH_REQUIRED != 'false'
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
uses: aws-actions/configure-aws-credentials@v4.0.2 # v4.0.2
with:
aws-access-key-id: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ default_stages: [pre-commit, pre-push]
default_language_version:
# force all unspecified python hooks to run python3
python: python3
node: "16.20.2"
node: "22.13.0"
exclude: ^(docs-archive|landing-pages/site/static/external|landing-pages/site/layouts/partials/scripts.html|landing-pages/site/assets/scss/_variables.scss)

repos:
Expand All @@ -28,7 +28,7 @@ repos:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.1
rev: v1.5.5
hooks:
- id: forbid-tabs
exclude: ^\.gitmodules$
Expand Down Expand Up @@ -144,7 +144,7 @@ repos:
additional_dependencies:
- yarn
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: check-executables-have-shebangs
- id: check-json
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

FROM debian:stretch-slim
FROM debian:bookworm-slim

SHELL ["/bin/bash", "-o", "pipefail", "-e", "-u", "-x", "-c"]

Expand All @@ -38,7 +38,7 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
RUN curl -sL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
nodejs \
Expand All @@ -59,7 +59,7 @@ RUN curl -sL "https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64

RUN HUGOHOME="$(mktemp -d)" \
&& export HUGOHOME \
&& curl -sL https://github.com/gohugoio/hugo/releases/download/v0.58.3/hugo_extended_0.58.3_Linux-64bit.tar.gz > "${HUGOHOME}/hugo.tar.gz" \
&& curl -sL https://github.com/gohugoio/hugo/releases/download/v0.135.0/hugo_extended_0.135.0_linux-amd64.tar.gz > "${HUGOHOME}/hugo.tar.gz" \
&& tar -xzvf "${HUGOHOME}/hugo.tar.gz" hugo \
&& mv hugo /usr/local/bin/hugo \
&& chmod +x /usr/local/bin/hugo \
Expand Down
16 changes: 11 additions & 5 deletions landing-pages/.babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"plugins": [
"@babel/plugin-syntax-object-rest-spread",
"@babel/plugin-proposal-object-rest-spread"
],
"presets": [
"@babel/preset-env"
[
"@babel/preset-env",
{
"targets": {
"browsers": [
"last 2 versions",
"ie >= 11"
]
}
}
]
]
}
19 changes: 0 additions & 19 deletions landing-pages/.eslintignore

This file was deleted.

104 changes: 0 additions & 104 deletions landing-pages/.eslintrc.yml

This file was deleted.

4 changes: 1 addition & 3 deletions landing-pages/create-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
* under the License.
*/

/* eslint-disable no-console */

const fs = require("fs").promises;
const path = require("path");
const {promisify} = require("util");
Expand All @@ -35,7 +33,7 @@ async function isDirectoryExists(dirPath) {
if ((await fs.stat(dirPath)).isDirectory()) {
return true;
}
} catch (err) {
} catch {
return false;
}
return false;
Expand Down
121 changes: 121 additions & 0 deletions landing-pages/eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

const globals = require("globals");
const pluginJs = require("@eslint/js");
const importPlugin = require("eslint-plugin-import");

module.exports = [
{
ignores: [
"node_modules/**",
"dist/**",
"site/**",
"**/*.min.js",
"**/vendor/**",
],
},
// Configuration for Node.js files (webpack configs, build scripts)
{
files: ["webpack.*.js", "create-index.js", "postcss.config.js"],
languageOptions: {
globals: {
...globals.node,
},
ecmaVersion: 2020,
sourceType: "commonjs",
},
rules: {
"no-console": "off", // Allow console in build scripts
"no-unused-vars": ["error", {"args": "none"}],
},
},
// Configuration for browser JavaScript
{
files: ["src/**/*.js"],
languageOptions: {
globals: {
...globals.browser,
...globals.es6,
},
ecmaVersion: 2020,
sourceType: "module",
},
plugins: {
import: importPlugin,
},
rules: {
// Possible Errors
"no-control-regex": "error",
"no-console": "warn",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "warn",
"no-proto": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"valid-typeof": "error",

// Best Practices
"no-fallthrough": "error",
"no-redeclare": "error",

// Stylistic Issues
"comma-spacing": "error",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"indent": ["error", 2, {SwitchCase: 1}],
"keyword-spacing": "error",
"max-len": ["warn", 160, 2],
"new-parens": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error", {max: 2}],
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "never"],
"quotes": ["error", "double", "avoid-escape"],
"semi": "error",
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": "error",

// ECMAScript 6
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", {"before": true, "after": true}],
"no-confusing-arrow": "error",
"prefer-const": "error",

// Import
"import/no-unresolved": "off", // Disable for now due to p5 import issues
"import/export": "error",

// Variables
"no-undef": "error",
"no-unused-vars": ["error", {"args": "none"}],
},
},
];
Loading