Skip to content

Move older presets to a history page and update the site description - #7300

Merged
Koudai Aono (koxudaxi) merged 6 commits into
docs-agent-discoveryfrom
docs-agent-codeowned
Nov 21, 2026
Merged

Koudai Aono (koxudaxi) merged 6 commits into
docs-agent-discoveryfrom
docs-agent-codeowned

Conversation

@koxudaxi

@koxudaxi Koudai Aono (koxudaxi) commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Documentation
    • Added a Preset History page documenting older preset additions, with reference sections for historical presets.
    • Updated the Presets page to focus on the newest presets and link to the history page.
    • Added Preset History to the site navigation and included the page in generated documentation and documentation checks.
    • Updated the site description to clarify supported outputs and inputs, experimental status, deterministic generation, and drift checking.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

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.

Run configuration

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.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

  • 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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

Commits

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T12:15:27.288502Z 5398e73 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5398e7373d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread scripts/build_preset_docs.py Resolved
@github-actions

Copy link
Copy Markdown
Contributor

@koxudaxi
Koudai Aono (koxudaxi) enabled stacked auto-merge (squash) November 21, 2026 12:17
@codspeed

codspeed Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 17.72%

2 warnings

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚠️ 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.

Learn more about Macro Runners

See affected benchmarks

❌ 49 regressed benchmarks
✅ 4 untouched benchmarks
⏩ 98 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_perf_simple_msgspec_unset_field_rendering 286.5 ms 392.8 ms -27.07%
❌ test_perf_duplicate_names 554.7 ms 756.5 ms -26.68%
❌ test_perf_multiple_files_input 2.3 s 3.1 s -24.09%
❌ test_perf_ordinary_array_constraint_generation 1.5 s 1.9 s -23.19%
❌ test_perf_unique_items_nested_model_validation 1.6 ms 2.1 ms -23.05%
❌ test_perf_all_options_enabled 3.4 s 4.4 s -22.75%
❌ test_perf_large_models_typed_dict[total-false-requiredness] 737.2 ms 949.2 ms -22.34%
❌ test_perf_large_models_single_module_stdout 1 s 1.3 s -22.27%
❌ test_perf_complex_refs 1.2 s 1.5 s -22.2%
❌ test_perf_client_calls[sync] 19 ms 24.2 ms -21.58%
❌ test_perf_large_models_pydantic_v2_builtin 858.8 ms 1,091.5 ms -21.32%
❌ test_perf_openapi_large_pydantic_v2_builtin 873.9 ms 1,102 ms -20.69%
❌ test_perf_kubernetes_style_pydantic_v2 1.5 s 1.9 s -20.65%
❌ test_perf_local_reference_file_resolution 78.8 ms 99.3 ms -20.64%
❌ test_perf_mapped_reference_users 425 ms 534.7 ms -20.51%
❌ test_perf_unique_items_collapsed_builtin 156.2 ms 195.3 ms -20%
❌ test_perf_inherited_required_fields[required-base-first] 440 ms 548.2 ms -19.73%
❌ test_perf_large_models_typed_dict[legacy-requiredness] 748.6 ms 930.9 ms -19.59%
❌ test_perf_openapi_large 1.8 s 2.2 s -19.17%
❌ test_perf_inherited_required_fields[partial-base-first] 771 ms 951.5 ms -18.96%
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing docs-agent-codeowned (fe1be42) with docs-agent-discovery (3a445de)

Open in CodSpeed

Footnotes

  1. 98 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@koxudaxi
Koudai Aono (koxudaxi) merged commit c3c4113 into main Nov 21, 2026
118 of 119 checks passed
@koxudaxi
Koudai Aono (koxudaxi) deleted the docs-agent-codeowned branch November 21, 2026 16:17
@github-actions

Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

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

@github-actions

Copy link
Copy Markdown
Contributor

🎉 Released in 0.100.0

This PR is now available in the latest release. See the release notes for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant