mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-14 12:53:43 +01:00
91463ff03348af2d796fa76e7014bb113034ee7c
BREAKING CHANGE: HTML output format has been removed. The tool now generates MDX documentation for Astro Starlight exclusively. This commit removes the HTML generator and all associated code, simplifying the codebase to focus on MDX output only. Removed - `src/generator.rs` - HTML documentation generator (1827 lines) - `src/identifiers.rs` - CSS/HTML identifiers (371 lines) - `src/templates/base.html` - HTML base template - `src/templates/macros.html` - HTML macro templates - `src/templates/style.css` - CSS styles (1216 lines) - `src/templates/test_index.html` - Test HTML template - `build.rs` - CSS minification build script - `tests/json_schema_test_suite.rs` - JSON Schema test suite (501 lines) - `tests/fixtures/json-schema-test-suite/` - All draft2020-12 test fixtures Removed Dependencies - lightningcss (CSS minification) - rayon (parallel processing) - struct_iterable (struct iteration) - regex, chrono (dev dependencies) Added - `ENUMS.md` - Comprehensive documentation of all 11 Rust enum patterns and their JSONSchema representations - 12 unit tests covering all enum patterns to prevent Value duplication Changed CLI (src/main.rs) - Remove `--format` flag (was html/mdx, now mdx only) - Remove `Format` enum - Simplify to always output MDX Library (src/lib.rs) - Remove `Options` struct and `generate_html()` function - Remove `Generator`, `CSS`, `IDS`, `TYPE_CLASSES` exports - Update module docs to reflect MDX-only output - Update tests to use `generate_mdx()` Templates (src/templates/mdx_macros.md) - Add section headers organizing macros by function - Add comprehensive comments documenting all enum patterns - Fix duplicate Value rendering for const variants - Add Pattern 7 detection for externally tagged enums - Change `<details>` to `<details open>` for better visibility - Render required properties before optional ones - Move `$ref` handling after `type` in render_type_badge (Pattern 6 fix) Preparation (src/prepare.rs) - Minor formatting improvements