You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move older presets to a history page and update the site description - #7300
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
Walkthrough
The Presets documentation now separates the newest presets from older preset history. The documentation builder generates the history page, and the site navigation and llms.txt classification include it.
Changes: Preset history documentation
Layer / File(s)
Summary
Render current presets and history src/datamodel_code_generator/preset.py, tests/test_build_preset_docs_script.py, tests/test_build_preset_docs_script.refs
The Presets page limits its reference sections to presets from the newest date. A new renderer produces history content for older presets. The renderer test checks its output against a reference snapshot.
Generate and expose the history page scripts/build_preset_docs.py, scripts/build_llms_txt.py, zensical.toml
The documentation builder generates docs/preset-history.md and lists it in the --check help text. Site navigation links to the page, and the llms.txt builder classifies it as optional. The site description now specifies outputs, supported formats, experimental status, deterministic generation, and drift checking.
Issue 5096: This PR adds a page for older dated presets and their additions. It does not add per-release output diffs or a corpus summary.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names two changes: moving older presets to a history page and updating the site description. The raw summary confirms both: preset-history.md is added and linked, the Presets page is trimmed…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names two changes: moving older presets to a history page and updating the site description. The raw summary confirms both: preset-history.md is added and linked, the Presets page is trimmed, and zensical.toml's description is revised. The title is specific and matches the main change, with the site description as the secondary change.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Review coverage is incomplete: 1 file could not be fully reviewed. Findings from completed review steps are included; see review info for details.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 3a445de and 5398e73.
Files ignored due to path filters: 4
docs/llms.txt is excluded by none and included by none
tests/data/expected/build_preset_docs_script/build_preset_docs_check_help_mentions_all_generated_targets.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/build_preset_docs_script/preset_metadata_renderers.preset_history_markdown.txt is excluded by !tests/data/**/*.txt and included by none
tests/data/expected/build_preset_docs_script/preset_metadata_renderers.presets_markdown.txt is excluded by !tests/data/**/*.txt and included by none
Files selected for processing: 8
docs/preset-history.md
docs/presets.md
scripts/build_llms_txt.py
scripts/build_preset_docs.py
src/datamodel_code_generator/preset.py
tests/test_build_preset_docs_script.py
tests/test_build_preset_docs_script.refs
zensical.toml
Files not reviewed because the changes were too large to process: 1
docs/preset-history.md
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.
⚠️49 benchmarks with a significant change ran on different hardware
Their base and head results were measured on machines with a different CPU, core count or memory, so the changes might not come from the code. Run base and head on the same runner type.
Reasoning: This PR changes documentation only. It splits the presets docs page so that docs/presets.md keeps the newest dated presets and the older dated presets move to a new docs/preset-history.md page. It also updates the docs build scripts, the zensical nav and site description, and the llms.txt optional patterns. In preset.py it adds two Python functions, render_preset_history and render_preset_history_markdown, and adds private helpers that filter the markdown reference to the newest preset date. The markdown that render_presets returns now leaves out the reference sections for older presets and links to the history page instead. That output is documentation text, which the PR's own migration record labels docs-text, and the JSON output of render_presets is unchanged. No public function, CLI option, enum value or template is removed or changed. Nothing touches code generation, parsing, default option values or error handling. The behaviour diff gate lists only both-fail cells, so no default generated output changes.
This analysis was produced by the release draft workflow
This PR is now available in the latest release. See the release notes for details.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit