Fix duplicated author/steering-committee folders#832
Open
richarddushime wants to merge 2 commits into
Open
Conversation
Contributor
|
👍 All image files/references (if any) are in webp format, in line with our policy. |
Contributor
✅ Spell Check PassedNo spelling issues found when checking 3 changed file(s)! 🎉 |
Contributor
|
✅ Staging Deployment Status This PR has been successfully deployed to staging as part of an aggregated deployment. Deployed at: 2026-07-05 08:21:25 UTC The staging site shows the combined state of all compatible open PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #792 issue
content/authors/mixes blog-post author profiles and steering committee (SC)member profiles, generated by
scripts/generate_sc_profiles.py. The script wasminting a fresh, differently-slugged folder for the same person almost every
time it ran, instead of reusing an existing one — #573 tried to fixed this , but
it didn't stick because the generator itself was never fixed.
Root cause:
normalize_name/sanitize_filenamehad double-escaped regexes(
r'\\s+'instead ofr'\s+', etc.), so whitespace collapsing and"Dr"-prefix stripping were silent no-ops, and hyphens in compound surnames
(e.g. "Matvienko-Sikar") were being stripped even though Hugo's
urlize—which the pre-existing author slugs already follow — preserves them. Any
minor difference in how a name was written across the SC roster sheet, the
personal-details form, or an existing author folder therefore produced a new
slug, and the script never checked for an existing folder before creating one.
Changes
normalize_name/sanitize_filename.find_existing_author_dir(), which fuzzy-matches a person againstexisting
content/authors/folder names before minting a fresh slug, soreruns converge on the one real folder.
adampartridge,drflavioazevedo,karenmatvienkosikar, etc.), merge the one case withreal duplicated content (Karen Matvienko-Sikar's role/team data and a
better photo) into the canonical folder, and update
content/about/steering-committee/index.md's hardcoded image/modalreferences to point at the canonical slugs.
Type of Change
Testing
Checklist
Notes