docs: add dismissible announcement banner#2243
Conversation
Add an announcement banner to the docs site using MkDocs Material announce block and announce.dismiss feature. The banner displays open source PR Agent documentation with a link to Qodo free version, and can be dismissed by the user. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Review Summary by QodoAdd dismissible announcement banner to documentation site
WalkthroughsDescription• Add dismissible announcement banner to docs site • Move announcement from config to template override • Enable announce.dismiss feature for user dismissal • Adjust header title margin for layout improvement Diagramflowchart LR
A["mkdocs.yml config"] -- "enable announce.dismiss" --> B["Announcement feature"]
C["main.html template"] -- "define announce block" --> B
B -- "displays banner" --> D["User sees dismissible banner"]
D -- "can dismiss" --> E["Banner hidden"]
F["custom.css"] -- "adjust margin" --> G["Header layout"]
File Changes1. docs/mkdocs.yml
|
Code Review by Qodo
1. Unpinned mkdocs-material dependency
|
There was a problem hiding this comment.
Pull request overview
Adds a dismissible announcement banner to the MkDocs Material documentation site to promote the Qodo free version “Get Started” page.
Changes:
- Adds an
announceblock override to display a site-wide announcement banner. - Enables the Material feature
announce.dismissto allow users to dismiss the banner. - Tweaks header title spacing in custom CSS.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/overrides/main.html | Defines the announcement banner content via the announce block override. |
| docs/mkdocs.yml | Enables announce.dismiss and removes the prior extra.announcement config entry. |
| docs/docs/css/custom.css | Adjusts header title margin to improve layout spacing. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.