Tags: zzstoatzz/mdxify
Tags
feat: add Attributes section support and configurable docstring style (… …#33) Fixes #32: The `Attributes:` section in Google-style class docstrings is now properly rendered in the generated MDX output, matching the behavior of `Args:`, `Returns:`, and `Raises:` sections. Addresses #31: Added `--docstring-style` CLI option to configure the docstring parsing style. Supports "google" (default), "numpy", and "sphinx" styles. Changes: - Add handler for `attributes` section kind in `format_docstring_with_griffe()` - Add `style` parameter to `format_docstring_with_griffe()` (defaults to "google") - Add `docstring_style` parameter to `generate_mdx()` function - Add `--docstring-style` CLI argument with choices: google, numpy, sphinx - Add comprehensive unit tests for both features 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
fix: prevent unnecessary docs.json updates when content unchanged (#30) - Compare actual data structures instead of string representations - Preserve existing file's trailing newline convention - Show friendly '✨ No changes needed' message when content is already up to date - Fixes #29: avoids creating PRs that only add newlines
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>
PreviousNext