Repository navigation
Add support for people aliases in project and publication linking - #16
Merged
Merged
Conversation
Add `otherEmails` and `otherNames` to people content and centralize matching logic in a new `src/lib/people.ts` helper. Projects, people pages, publication matching, and project cards now resolve team/authors through these aliases (with dedupe and missing-profile handling), and docs were updated with new workflows and linking guidance.
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.
This pull request introduces a comprehensive system for linking people to projects and publications using multiple email addresses and name forms, making the site more robust to variations in how people are referenced. It adds support for
otherEmailsandotherNamesin people profiles, updates all relevant matching and linking logic, and extensively improves the documentation and user guidance for these changes.Key changes:
Core logic and data model
otherEmailsandotherNamesfields to the people collection schema (src/content.config.ts), allowing each person to list multiple email addresses and name forms for robust matching.src/lib/people.tsto normalize and match emails and names, and to resolve project teams and publication authors using all listed forms.ProjectCard.astronow usesprojectTeamto resolve team members, and publication-person matching uses all emails and name forms.Documentation and user guidance
src/pages/docs/profiles.mdx): explains howotherEmailsandotherNameswork, how to safely update them, and provides clear instructions and examples for linking profiles to projects and publications.src/pages/docs/index.astro) with step-by-step guides for scenarios like joining/leaving projects, changing emails, and ensuring links are preserved.Consistency and UX improvements
These changes make the system more resilient to changes in people's emails or name formats and provide much clearer instructions for users to maintain correct links between people, projects, and publications.