You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/05/27 10:55:02 UTC
[whimsy] branch master updated: Also add yearly index
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 095fc3a2 Also add yearly index
095fc3a2 is described below
commit 095fc3a2a7c186a929ac27cf80d1c8c6606ed25c
Author: Sebb <se...@apache.org>
AuthorDate: Fri May 27 11:54:55 2022 +0100
Also add yearly index
---
www/board/agenda/views/actions/publish.json.rb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/www/board/agenda/views/actions/publish.json.rb b/www/board/agenda/views/actions/publish.json.rb
index 469fe7b0..41247d49 100755
--- a/www/board/agenda/views/actions/publish.json.rb
+++ b/www/board/agenda/views/actions/publish.json.rb
@@ -90,6 +90,12 @@ end
# Update the Calendar from SVN
ASF::SVN.update ASF::SVN.svnpath!('site-board', 'calendar.md' ), @message, env, _ do |_tmpdir, calendar|
+ # add year index
+ unless calendar.include? "[#{year}](calendar.html##{year}) |"
+ calendar[/^()\[.*\(calendar.html/, 1] =
+ "[#{year}](calendar.html##{year}) |\n"
+ end
+
# add year header
unless calendar.include? "# #{year} Board meeting minutes"
calendar[/^()#.*Board meeting minutes /, 1] =