This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-site.git
The following commit(s) were added to refs/heads/main by this push:
new 1677a2e36f7 Add option to build and serve posts with dates in the
future (#774)
1677a2e36f7 is described below
commit 1677a2e36f7255a4dcba8e57763138cef9e797da
Author: Ian Cook <[email protected]>
AuthorDate: Fri Sep 25 23:17:39 2026 -0400
Add option to build and serve posts with dates in the future (#774)
Co-authored-by: Sutou Kouhei <[email protected]>
---
.github/workflows/deploy.yml | 3 +++
Rakefile | 11 ++++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 583f027da8c..abee806396d 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@v7
diff --git a/Rakefile b/Rakefile
index 6284c9efdd9..50227870655 100644
--- a/Rakefile
+++ b/Rakefile
@@ -39,11 +39,12 @@ 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"}"
+ command_line << "--future"
+ sh(*command_line)
end
task :default => :serve