Skip to content

v0.2.33

Choose a tag to compare

@zzstoatzz zzstoatzz released this 16 Sep 16:54
· 5 commits to main since this release
e7775e1
Fix: Prevent deletion of docs when modules can't be found (#28)

* fix: prevent deletion of docs when modules can't be found

- Add safety check to only clean up stale files when modules are successfully discovered
- Add warning message when no modules are found with helpful troubleshooting tips
- Add comprehensive integration tests for Prefect and FastMCP doc generation
- Add GitHub Actions workflow to test on both Linux and macOS
- Fixes issue where running mdxify as a tool without target package would delete all docs

This addresses the issue reported where Prefect's CI was deleting all docs when
mdxify was installed as a tool without access to the Prefect package.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: CI workflow for integration tests

- Run test projects in /tmp to avoid package discovery from workspace
- Use mdxify directly (not uvx) when testing tool installation
- Check for both regular and __init__ file naming patterns
- Add debug output and success messages for clarity

* fix: CI test should install package before running mdxify

- Use --force when installing mdxify tool to ensure using current source
- Install test package with uv pip install -e before running mdxify
- Check for both regular and __init__ naming patterns
- Add directory listing for debugging

* simplify: CI test to focus on error message verification

- Remove complex tool installation test that was failing
- Simply verify mdxify shows helpful error when module not found
- This is the core fix we're testing - preventing deletion

* fix: add --system flag to uv pip install in CI

* test: focus CI on the critical deletion prevention fix

- Test that existing docs are NOT deleted when modules can't be found
- This is the core issue reported in Prefect's CI
- Simplify test to avoid complex environment setup issues

---------

Co-authored-by: Claude <noreply@anthropic.com>