This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/staging by this push:
new 2a3ee9d3e4 Add Hugo --gc flag and ensure data directory exists
2a3ee9d3e4 is described below
commit 2a3ee9d3e4f28213085a1cf29ff0d27ff09a5c22
Author: Kaxil Naik <[email protected]>
AuthorDate: Tue Dec 16 22:08:30 2025 +0000
Add Hugo --gc flag and ensure data directory exists
---
landing-pages/package.json | 7 +++----
landing-pages/site/data/.gitkeep | 2 ++
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/landing-pages/package.json b/landing-pages/package.json
index 5ea815bfc2..182ad1343c 100644
--- a/landing-pages/package.json
+++ b/landing-pages/package.json
@@ -7,8 +7,8 @@
"author": "",
"license": "MIT",
"scripts": {
- "build": "$npm_execpath run build:webpack && $npm_execpath run
verify-webpack-json && $npm_execpath run build:hugo",
- "build:hugo": "cross-env HUGO_ENV=production hugo -d ../dist -s site",
+ "build": "$npm_execpath run build:webpack && $npm_execpath run build:hugo",
+ "build:hugo": "cross-env HUGO_ENV=production hugo --gc -d ../dist -s site",
"build:hugo:preview": "$npm_execpath run build:hugo -- -D -F",
"build:preview": "$npm_execpath run build:webpack && $npm_execpath run
build:hugo:preview",
"build:webpack": "cross-env NODE_ENV=production webpack --config
webpack.prod.js",
@@ -22,8 +22,7 @@
"preview:webpack": "$npm_execpath run start:webpack",
"start": "run-p start:**",
"start:hugo": "hugo -d ../dist -s site -w",
- "start:webpack": "webpack serve --config webpack.dev.js --hot",
- "verify-webpack-json": "test -f site/data/webpack.json && echo '\u2713
webpack.json exists before Hugo build' && cat site/data/webpack.json || echo
'\u2717 webpack.json missing before Hugo build'"
+ "start:webpack": "webpack serve --config webpack.dev.js --hot"
},
"dependencies": {
"lodash": "^4.17.21",
diff --git a/landing-pages/site/data/.gitkeep b/landing-pages/site/data/.gitkeep
new file mode 100644
index 0000000000..7906befcbf
--- /dev/null
+++ b/landing-pages/site/data/.gitkeep
@@ -0,0 +1,2 @@
+# This file ensures the data directory exists in git
+# webpack.json is generated during build and should not be committed