Commit Graph
60 Commits
Author SHA1 Message Date
Jared Howland a56792ae0d test: Gedcom file with no FamilySearchID
Added a negative-case assertion
to ensure get_fs_id returns an empty string when an Individual lacks the _FSFTID
tag
2026-04-16 15:08:15 -06:00
Jared Howland 14cd8beadc feat: add FamilySearch ID to frontmatter 2026-04-16 13:47:59 -06:00
AlexKucera 48e339c119 Updates license badge and text to GPL-3.0
The project has switched from the MIT license to the GNU
General Public License v3.0. This change updates the license
badge in the README and the corresponding license text to
reflect this change.
2025-11-03 10:43:50 +01:00
AlexKucera 9b3c63c2c4 Adds canvas visualization feature
Introduces the `--canvas` option to generate an Obsidian Canvas file,
providing an interactive visual representation of family trees.

Explains the generational layout algorithm, root person selection,
limitations, and tips for optimal results.
2025-11-03 10:41:18 +01:00
AlexKucera 126600255f Adapts release workflow to accept semantic versions
Updates the release workflow to correctly identify semantic versions and removes the assumption of a 'v' prefix on release tags.
This change allows the workflow to trigger on any tag that follows the semantic versioning format *.*.*, providing greater flexibility in versioning schemes.
1.0.0
2025-11-02 20:10:01 +01:00
AlexKucera 4ce6fb588d Adds GitHub Actions workflow for releases
Sets up a GitHub Actions workflow to automate the release process.

The workflow triggers on tagged commits (v*.*.*), extracts the version number from the tag, and retrieves the corresponding changelog section from CHANGELOG.md.

It then creates a GitHub release with the extracted version and changelog. If no changelog is found, a default message is used.

The automation streamlines the release creation process and ensures consistency.
2025-11-02 20:03:01 +01:00
AlexKucera 0f04078a4a Updates image link in README
Updates the image link in the README to point to a permanent URL on GitHub.

This ensures the image remains accessible even if the local file structure changes.
2025-11-02 20:00:12 +01:00
AlexKucera 879639cd17 Renames README to Markdown format
Updates the README file extension to `.md` for improved formatting and compatibility.
2025-11-02 19:58:03 +01:00
AlexKucera 458b23e8f8 Removes Python 3.7 support
Removes support for Python 3.7, as it has reached its end-of-life.
The test matrix is updated to reflect the removal of 3.7, and the
documentation is updated to indicate 3.8 as the minimum supported
version.
2025-11-02 19:56:44 +01:00
AlexKucera ae575f413c Handles file locking issues on Windows
Addresses potential test failures on Windows due to locked files during temporary directory cleanup.

Implements `ignore_errors=True` when removing temporary directories to prevent `shutil.rmtree` from failing when files are still locked by the process.
2025-11-02 19:53:46 +01:00
AlexKucera 9f31b7f768 Updates CI matrix and Codecov configuration
Removes Python 3.7 from the general test matrix as it's no longer widely available.

Adds a specific job to test with Python 3.7 on ubuntu-20.04.

Updates the Codecov upload condition to include ubuntu-20.04, ensuring coverage reports are generated and uploaded for the Python 3.7 test run.
Adds Codecov token for secure uploads.
2025-11-02 19:53:23 +01:00
AlexKucera 3fd10f8530 Enhances individual filename generation
Improves the individual filename generation logic to include the birth year if available, providing more informative filenames.

Also updates the logging setup to use WARNING level for the root logger and INFO for the main module, and modifies the markdown generator to use YAML frontmatter for metadata.
2025-11-02 19:51:08 +01:00
AlexKucera aee0cbec4a Prepare v1.0.0 release
- Add version number and --version flag
  - Add GitHub Actions CI workflow
  - Update README with CI badges
  - Add CHANGELOG for v1.0.0
  - Enhance README with header image and better formatting
2025-11-02 19:33:14 +01:00
AlexKucera 3ea9338f47 Enhances README for improved clarity and presentation
Overhauls the README file to provide a clearer, more visually appealing, and comprehensive overview of the project.

This includes:
- Adding a header image
- Incorporating badges for Python version, license, tests, and code coverage
- Restructuring the features section for better readability
- Providing quick start examples
- Adding sections for contributing, license information, and acknowledgments
- Improving the overall formatting and adding a table of contents

The goal is to make the project more accessible and informative for potential users and contributors.
2025-11-02 19:25:38 +01:00
AlexKucera 81b0159060 Adds initial changelog file
Adds a comprehensive changelog file to document notable changes, adhering to Keep a Changelog format and Semantic Versioning.
This provides a clear and structured history of project updates.
2025-11-02 19:12:33 +01:00
AlexKucera 17d9490d03 Adds comprehensive documentation for Claude
Adds a detailed `CLAUDE.md` file to guide Claude Code in understanding and working with the project.
This file provides an overview of the project, its architecture, key features, implementation details,
usage instructions, and development environment setup.

Updates `README.md` to reflect recent changes and new features.
2025-11-02 19:10:17 +01:00
AlexKucera f571727946 Fixes duplicate filename generation
Addresses an issue where duplicate filenames could be generated
for individuals with the same name, especially in large datasets.

This change introduces a mechanism to ensure unique filenames by
appending a counter to duplicate names. It updates the index
generator and markdown generator to use this mechanism, ensuring
that links between individuals are correctly resolved.
2025-11-02 19:05:51 +01:00
AlexKucera 5852cd9a40 Renames license file
Renames the license file to adhere to standard naming conventions.
2025-11-02 18:45:23 +01:00
AlexKucera e81c0dbfa2 Merge branch 'main' into formatting 2025-11-02 18:33:09 +01:00
AlexKucera 1eb54bf030 Merge pull request #4 from AlexKucera/formatting
Formats individual notes with YAML frontmatter
2025-11-02 18:32:45 +01:00
AlexKucera 2b3e6a465b Renames README.md to README
Updates the README filename to align with conventional formatting preferences.

This change simplifies the project structure and ensures consistency with standard practices for README files.
2025-11-02 18:02:27 +01:00
AlexKucera 361435a3bc Merge pull request #3 from AlexKucera/canvas
Adds Obsidian Canvas family tree generation
2025-11-02 17:58:06 +01:00
AlexKucera 79d7f281b8 Restructures note generation with YAML frontmatter
Refactors the markdown note generation to include YAML
frontmatter for individual attributes. This enhances the
structure and organization of the generated notes.
It replaces the previous "Attributes" section with a
YAML frontmatter block, improving data accessibility
and interoperability.
2025-11-02 17:57:55 +01:00
AlexKucera 5fd41a8e06 Merge branch 'main' into canvas 2025-11-02 17:49:36 +01:00
AlexKucera 68054dd0af Merge pull request #1 from AlexKucera/initial_features
Initializes GEDCOM to Markdown converter project
2025-11-02 17:47:20 +01:00
AlexKucera 85c67e8190 Handles missing birth/death years
Ensures that the "Lived" metadata field is only written if both
birth and death years are available to prevent generating
incomplete entries.

Also, simplifies exception handling during note generation by
removing the unused exception variable.
2025-11-02 17:45:15 +01:00
AlexKucera 3b5991c81c Simplifies exception handling
Removes unnecessary variable assignments in exception handlers.

This improves code readability and maintainability by reducing
redundancy without impacting functionality.
2025-11-02 17:44:50 +01:00
AlexKucera c177211359 Renames unused parser variable
The 'parser' variable was assigned but not used. This commit
renames it to '_parser' to indicate that it is intentionally
unused.
2025-11-02 17:44:27 +01:00
AlexKucera 17c97b5188 Refactors marriage header formatting.
Updates marriage header generation to use f-string formatting consistently, improving readability and maintainability.
2025-11-02 17:38:56 +01:00
AlexKucera d6dc645de1 Improves error logging in file operations
Updates error handling to log full exception details
instead of just the error message, providing more context
for debugging file-related issues.
2025-11-02 17:38:29 +01:00
AlexKucera 6d7a41fc88 Simplifies code and improves error handling
Refactors code for clarity and conciseness by removing unused variables.

Improves error handling by logging only the necessary information,
making debugging easier.
2025-11-02 17:38:00 +01:00
AlexKucera b335a137d3 Enhances individual death info and note generation
Extracts and includes the death year from the death date in individual data.

Adds a flag to control subdirectory usage for generated files.
This ensures correct linking and image paths in notes when using a
subdirectory structure (people/, stories/, media/).

Also, improves error logging during note generation.
2025-11-02 17:29:49 +01:00
AlexKucera 759b966598 Refactors Individual class for parser access
Simplifies Individual class initialization by directly passing the parser instance instead of the GedcomParser object.
This change streamlines the code and avoids unnecessary object attribute access.
Also, it ensures name formatting preserves the original capitalization.
2025-11-02 17:25:06 +01:00
AlexKucera 46502f7d66 Ignores unused variable in test
Updates test to ignore the unused `media_dir` variable
returned by `extract_gedzip`. This prevents linting warnings
without changing the functionality of the test.
2025-11-02 16:03:24 +01:00
AlexKucera 449439225e Refactors family metadata generation in markdown writer
Improves family section generation logic to:
- Always write Marriage header
- Conditionally write partner metadata
- Simplify metadata and children writing process

Ensures more consistent markdown generation for family records
2025-11-02 16:02:45 +01:00
AlexKucera 2cd47a70b1 Enhances media file copying with robust handling
Improves media file import process with:
- Recursive directory structure preservation
- Case-insensitive extension filtering
- Collision handling with unique filename generation
- Error logging for copy failures

Adds comprehensive test cases to validate new media file copying behavior
2025-11-02 16:01:29 +01:00
AlexKucera 7c3eb1dde0 Enhances media file discovery in GEDCOM extraction
Improves media file search across nested directories by:
- Using rglob for recursive media file discovery
- Supporting more file extensions (including uppercase variants)
- Logging media file locations with greater detail

Enables finding media files in complex directory structures with multiple subdirectories
2025-11-02 14:37:18 +01:00
AlexKucera 64f42deb29 Improves death year extraction and pytest configuration
Fixes death year extraction using regex to correctly parse years
Removes manual sys.path modifications in test files
Adds pythonpath configuration to pytest.ini for simpler imports

Enhances test coverage for life span formatting
2025-11-02 14:35:23 +01:00
AlexKucera c072ebb2cd Updates documentation and gitignore configuration
Improves README formatting and readability
Adds output and test_output directories to gitignore
Adjusts code block formatting and syntax highlighting
2025-11-02 14:30:54 +01:00
AlexKucera e0ea4a3cc4 Adds Obsidian canvas generation with root person selection
Enhances GEDCOM to Markdown conversion by introducing canvas generation feature

Implements flexible root person selection for canvas via:
- Command-line argument (`--root`)
- Numeric index selection
- Direct GEDCOM ID input
- Interactive fallback selection

Improves logging configuration to provide more granular control over output verbosity
2025-11-02 14:29:22 +01:00
AlexKucera 5a73b3ceeb Improves ancestor layout with overlap prevention
Enhances family tree positioning algorithm to prevent vertical overlaps by:
- Introducing shared tracking of minimum y-coordinates for each x-position
- Supporting separate tracking for upward and downward growth directions
- Adding more detailed logging for positioning decisions
- Preventing ancestor and sibling positions from overlapping

Resolves potential visual conflicts in complex multi-generational family tree layouts
2025-11-02 14:22:13 +01:00
AlexKucera 18fd58972f Enhance canvas generator with advanced tree layout
Refactors canvas generation to support more complex family tree visualization

Introduces sophisticated layout algorithms for:
- Generational positioning of individuals
- Handling spouse and children relationships
- Vertical and horizontal spacing strategies
- Support for disconnected family trees

Improves visual representation of genealogical data with more nuanced node placement and connection logic
2025-11-02 14:08:23 +01:00
AlexKucera 635adb09ae Updates .gitignore to track test output
Adds test_output/ directory to ignored files list

Ensures local test output remains untracked in version control
2025-11-01 18:16:36 +01:00
AlexKucera cb960c41fc Adds Obsidian Canvas family tree generator
Introduces new functionality to create interactive family tree visualizations for Obsidian

Adds:
- CanvasGenerator class to generate JSON Canvas files
- Interactive root person selection for canvas creation
- Support for generational tree layout with nodes and edges
- Handling of disconnected family trees

Enhances family tree visualization by allowing users to generate an Obsidian-compatible canvas with person relationships
2025-11-01 17:14:43 +01:00
AlexKucera ecd9889e21 Merge remote-tracking branch 'origin/initial_features' into initial_features 2025-11-01 14:22:11 +01:00
AlexKucera 3e7dc7e916 Initializes project with GEDCOM to Markdown converter
Sets up core functionality for converting genealogy GEDCOM files to Obsidian markdown notes

Implements key components:
- GEDCOM parsing and individual data extraction
- Markdown note generation with rich metadata
- Index file creation
- Comprehensive test suite for robust functionality

Adds initial project structure, configuration, and essential modules for genealogy data conversion
2025-11-01 14:20:53 +01:00
AlexKucera b073ec1f1a Merge pull request #2 from AlexKucera/coderabbitai/docstrings/24ebaea
📝 Add docstrings to `initial_features`
2025-11-01 14:16:21 +01:00
coderabbitai[bot] 2190dc214e 📝 Add docstrings to initial_features
Docstrings generation was requested by @AlexKucera.

* https://github.com/AlexKucera/gedcom-to-markdown/pull/1#issuecomment-3476366503

The following files were modified:

* `src/gedcom_parser.py`
* `src/index_generator.py`
* `src/individual.py`
* `src/main.py`
* `src/markdown_generator.py`
2025-11-01 13:14:59 +00:00
AlexKucera 24ebaea8d9 Adds CodeRabbit PR review badge to README
Enhances project documentation with a visual indicator of CodeRabbit PR review status

Improves README by adding a GitHub-hosted badge that provides insights into the project's pull request review process
2025-11-01 14:13:21 +01:00
AlexKucera 939196329d Updates README with comprehensive project documentation
Enhances project description with detailed usage instructions, features, and best practices

Adds sections on:
- Expanded feature list
- Detailed installation and usage guidelines
- Directory structure explanation
- Output format description
- Common issues and compatibility notes

Improves overall documentation clarity and user onboarding experience
2025-11-01 14:08:45 +01:00