From 77ffe60921f64b81c0559b5a874fb7ba6703a102 Mon Sep 17 00:00:00 2001 From: Ian Cook Date: Mon, 6 Apr 2026 23:51:11 -0400 Subject: [PATCH 1/3] Add future option --- README.md | 6 ++++++ Rakefile | 14 +++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 282f6ed4fbf0..e69f2e3c30f6 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,12 @@ site locally: bundle exec rake ``` +To include posts with future dates: + +```shell +JEKYLL_FUTURE=1 bundle exec rake +``` + ## Deployment ### apache/arrow-site diff --git a/Rakefile b/Rakefile index 6284c9efdd9d..90f1fd715a6a 100644 --- a/Rakefile +++ b/Rakefile @@ -39,11 +39,13 @@ end desc "Serve site locally" task :serve => webpacked_js do - sh("jekyll", - "serve", - "--incremental", - "--livereload", - "--host", ENV["HOST"] || "127.0.0.1") + command_line = ["jekyll", "serve"] + command_line << "--incremental" + command_line << "--livereload" + command_line << "--host=#{ENV["HOST"] || "127.0.0.1"}" + future = ENV["JEKYLL_FUTURE"] + command_line << "--future" if future + sh(*command_line) end task :default => :serve @@ -57,5 +59,7 @@ task :generate => webpacked_js do command_line << "--config=_config.yml,#{extra_config}" if extra_config destination = ENV["JEKYLL_DESTINATION"] command_line << "--destination=#{destination}" if destination + future = ENV["JEKYLL_FUTURE"] + command_line << "--future" if future sh(*command_line) end From a08e969eaa9a9dadb42c1241dcfcae0efa7aae47 Mon Sep 17 00:00:00 2001 From: Ian Cook Date: Tue, 7 Apr 2026 22:19:41 -0700 Subject: [PATCH 2/3] Always set --future when serving site locally --- Rakefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 90f1fd715a6a..272305d544b3 100644 --- a/Rakefile +++ b/Rakefile @@ -43,8 +43,7 @@ task :serve => webpacked_js do command_line << "--incremental" command_line << "--livereload" command_line << "--host=#{ENV["HOST"] || "127.0.0.1"}" - future = ENV["JEKYLL_FUTURE"] - command_line << "--future" if future + command_line << "--future" sh(*command_line) end From f3596d1d08e030f27deef2024a5fd0e5e6c0d434 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Sat, 26 Sep 2026 12:04:47 +0900 Subject: [PATCH 3/3] Apply remaining suggestions --- .github/workflows/deploy.yml | 3 +++ README.md | 6 ------ Rakefile | 2 -- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d578b082ff55..34dd624249a0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -64,6 +64,9 @@ jobs: export JEKYLL_DESTINATION=../build export JEKYLL_ENV=production export JEKYLL_EXTRA_CONFIG=_extra_config.yml + if [ "${GITHUB_REPOSITORY}" != "apache/arrow-site" ]; then + export JEKYLL_FUTURE=1 + fi bundle exec rake generate - name: Checkout asf-site uses: actions/checkout@v6 diff --git a/README.md b/README.md index e69f2e3c30f6..282f6ed4fbf0 100644 --- a/README.md +++ b/README.md @@ -63,12 +63,6 @@ site locally: bundle exec rake ``` -To include posts with future dates: - -```shell -JEKYLL_FUTURE=1 bundle exec rake -``` - ## Deployment ### apache/arrow-site diff --git a/Rakefile b/Rakefile index 272305d544b3..502278706556 100644 --- a/Rakefile +++ b/Rakefile @@ -58,7 +58,5 @@ task :generate => webpacked_js do command_line << "--config=_config.yml,#{extra_config}" if extra_config destination = ENV["JEKYLL_DESTINATION"] command_line << "--destination=#{destination}" if destination - future = ENV["JEKYLL_FUTURE"] - command_line << "--future" if future sh(*command_line) end