Skip to content

Add dismissible announce bar to docs site#3004

Merged
koxudaxi merged 3 commits intomainfrom
feature/add-announce-bar
Feb 23, 2026
Merged

Add dismissible announce bar to docs site#3004
koxudaxi merged 3 commits intomainfrom
feature/add-announce-bar

Conversation

@koxudaxi
Copy link
Copy Markdown
Owner

@koxudaxi koxudaxi commented Feb 23, 2026

Summary by CodeRabbit

  • New Features

    • Added ability to dismiss announcements.
  • Chores

    • Updated theme configuration settings.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 23, 2026

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • overrides/main.html is excluded by none and included by none

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

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

Walkthrough

The configuration file zensical.toml was modified to add a custom theme directory override and enable the "announce.dismiss" feature in the theme's feature set, adding two configuration entries with minimal line adjustments.

Changes

Cohort / File(s) Summary
Configuration Update
zensical.toml
Added project.theme.custom_dir = "overrides" to specify a custom theme directory and added "announce.dismiss" to the project.theme.features array to enable announcement dismissal functionality.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A config so fine, with overrides new,
Announcements dismissed, the features grew,
Three lines added, one removed with care,
The theme now blooms beyond compare!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'Add dismissible announce bar to docs site' directly and clearly summarizes the main changes: adding an announce bar feature with dismiss capability to the documentation site configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/add-announce-bar

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 23, 2026

📚 Docs Preview: https://pr-3004.datamodel-code-generator.pages.dev

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Feb 23, 2026

Merging this PR will not alter performance

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

✅ 11 untouched benchmarks
⏩ 98 skipped benchmarks1


Comparing feature/add-announce-bar (0ec7b05) with main (39da9dd)

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
Copy link
Copy Markdown

codecov Bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (39da9dd) to head (0ec7b05).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #3004   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           94        94           
  Lines        18130     18130           
  Branches      2099      2099           
=========================================
  Hits         18130     18130           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@koxudaxi koxudaxi merged commit a40fa35 into main Feb 23, 2026
37 checks passed
@koxudaxi koxudaxi deleted the feature/add-announce-bar branch February 23, 2026 05:48
@github-actions
Copy link
Copy Markdown
Contributor

Breaking Change Analysis

Result: No breaking changes detected

Reasoning: This PR only adds a dismissible announcement bar to the documentation website. The changes are limited to overrides/main.html (a new HTML template for docs) and zensical.toml (documentation theme configuration). These modifications have no impact on the datamodel-code-generator library itself - they don't affect code generation output, custom Jinja2 templates, CLI/API, default behavior, Python version support, or error handling.


This analysis was performed by Claude Code Action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 4, 2026

🎉 Released in 0.54.1

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