Skip to content

Read and render object records with thumbnails, search index, and source image footnotes#195

Merged
colinangusmackay merged 11 commits intomainfrom
Read-object-records
Apr 5, 2026
Merged

Read and render object records with thumbnails, search index, and source image footnotes#195
colinangusmackay merged 11 commits intomainfrom
Read-object-records

Conversation

@colinangusmackay
Copy link
Copy Markdown
Member

Summary

  • Adds thumbnail generation (32px) alongside full-size media images when rendering GEDCOM object records
  • Introduces a new search-index.json output containing all individuals with names, birth/death/marriage events, and residences — suitable for client-side search
  • Source footnotes in Markdown now display inline thumbnail images for publishable JPG objects (suppressed for living persons)
  • Cleans up commented-out debug code and minor code quality fixes

Changes

  • RenderObjectHandler — refactored image rendering into a reusable private method; now renders both full-size and thumbnail variants
  • RenderPersonIndexAsJsonHandler — new handler registered for RenderPersonIndex, writes search-index.json
  • FileNamer — new methods: GetDestinationThumbnailFile, GetMediaThumbnailFile, GetSearchIndexJsonFile
  • MarkdownFootnoteOrganiser — new WriteImages method appends thumbnails to source footnotes
  • RenderSourceIndexAsMarkdownHandler — removed stale debug code
  • Program.cs — registers RenderPersonIndexAsJsonHandler

@colinangusmackay colinangusmackay merged commit 0be15e1 into main Apr 5, 2026
1 check failed
@colinangusmackay colinangusmackay deleted the Read-object-records branch April 5, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant