This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/attic.git
The following commit(s) were added to refs/heads/main by this push:
new 9cd1f4d Prevent Jekyll from removing the generated file
9cd1f4d is described below
commit 9cd1f4d33229107d7c296788f0107c4277c111e8
Author: Sebb <[email protected]>
AuthorDate: Fri Oct 3 21:33:35 2025 +0100
Prevent Jekyll from removing the generated file
---
_config.yml | 1 +
_plugins/project-data-plugin.rb | 1 +
2 files changed, 2 insertions(+)
diff --git a/_config.yml b/_config.yml
index 5303cba..1e61e31 100644
--- a/_config.yml
+++ b/_config.yml
@@ -6,6 +6,7 @@ url: https://attic.apache.org/
include: [.htaccess]
exclude: [README.md, retire.rb]
+keep_files: [projects.json]
timezone: UTC
repo: https://github.com/apache/attic
diff --git a/_plugins/project-data-plugin.rb b/_plugins/project-data-plugin.rb
index c3f6747..c5f1793 100644
--- a/_plugins/project-data-plugin.rb
+++ b/_plugins/project-data-plugin.rb
@@ -36,6 +36,7 @@ module ProjectDataPlugin
Jekyll.logger.info "ProjectDataPlugin: Starting processing project data"
+ FileUtils.mkdir_p(site.dest) # might not exist yet
File.write(File.join(site.dest, 'projects.json'),
JSON.pretty_generate(site.data['projects'].sort.to_h))
projects = Array.new