From aac62e0506745010ddfe9d1426b2134dc4122889 Mon Sep 17 00:00:00 2001 From: Sander Striker Date: Mon, 3 Aug 2026 18:28:41 +0200 Subject: [PATCH] Render the board's minutes as pages, the way calendar.md is rendered The board's minutes are published as text and have been read through whimsy's renderer ever since. Those pages are now generated from the same record by the Board Agenda Tool and committed to SVN beside calendar.md - one page per meeting, one page per committee, and an index over both - so the website can serve them itself rather than pointing at another host. This is the wiring only, and it is deliberately the same arrangement calendar.md already uses: a script in setup.run exports the markdown from SVN before the build, Pelican renders it with everything else, and the output is gitignored because it is generated rather than written. Absent is not an error. The tool writes these pages only once it is configured to, and that is thrown after this wiring exists - so there is a window where the SVN directory is not there yet, and failing hard would break every build of the whole site over a directory nothing serves from. It logs and carries on. The minutes text itself is not moved here yet. Those files live under /foundation/records/minutes/ and are proxied to svn.apache.org by content/foundation/records/.htaccess; bringing them alongside the rendered pages, and retiring that proxy, is a second pass. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01L6te4U8EufoXpmYjCaRB16 --- .gitignore | 1 + get_minutes.sh | 39 +++++++++++++++++++++++++++++++++++++++ pelicanconf.yaml | 1 + 3 files changed, 41 insertions(+) create mode 100755 get_minutes.sh diff --git a/.gitignore b/.gitignore index 762ca2d8a..9f52b7a06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ site-generated pelican.auto.py content/foundation/board/calendar.md +content/foundation/board/minutes/ __pycache__/ .idea .DS_Store diff --git a/get_minutes.sh b/get_minutes.sh new file mode 100755 index 000000000..65ef9d71d --- /dev/null +++ b/get_minutes.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# The board's minutes as pages: one per meeting, one per committee, and an index over both. +# Generated from the published record by the Board Agenda Tool and committed to SVN beside +# calendar.md, so this is the same arrangement get_calendar.sh already uses - the tool writes +# markdown into SVN, and the site build renders it with everything else. +# +# Absent is not an error. The tool only writes these once it is switched on to, and that switch is +# thrown after this wiring is in place, so there is a window where the directory does not exist +# yet. Failing hard there would break every build of the whole site over a directory nothing is +# serving from. + +MINUTES=https://svn.apache.org/repos/asf/infrastructure/site/trunk/content/foundation/board/minutes + +echo "Fetching board minutes from SVN" +cd content/foundation/board || exit + +if /usr/bin/svn ls "$MINUTES" > /dev/null 2>&1; then + /usr/bin/svn export "$MINUTES" --force +else + echo "Nothing published at $MINUTES yet - skipping" +fi diff --git a/pelicanconf.yaml b/pelicanconf.yaml index 48d870400..0800bc8a7 100644 --- a/pelicanconf.yaml +++ b/pelicanconf.yaml @@ -19,6 +19,7 @@ setup: data: asfdata.yaml run: - /bin/bash get_calendar.sh + - /bin/bash get_minutes.sh postrun: - /bin/bash pagefind.sh ignore: