Skip to content

Commit fa3b233

Browse files
naorpeledclaude
andauthored
docs: add dismissible announcement banner (#2243)
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>
1 parent a76a1a6 commit fa3b233

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/docs/css/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
.md-header__title {
8686
font-size: 20px;
87-
margin-left: 0px !important;
87+
margin-left: 12px !important;
8888
}
8989

9090
.md-header__button.md-logo,

docs/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ theme:
6161
- content.tabs.link
6262
- content.code.annotation
6363
- content.code.copy
64+
- announce.dismiss
6465
language: en
6566
custom_dir: overrides
6667

@@ -90,7 +91,6 @@ plugins:
9091
- glightbox
9192

9293
extra:
93-
announcement: "Open-source PR Agent documentation. For the Qodo free version, [Get Started](https://www.qodo.ai/get-started/)."
9494
generator: false
9595
social:
9696
- icon: fontawesome/brands/github

docs/overrides/main.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{% extends "base.html" %}
22

3+
{% block announce %}
4+
Open source PR Agent documentation. For the Qodo free version, Get Started: <a href="https://www.qodo.ai/get-started/">https://www.qodo.ai/get-started/</a>
5+
{% endblock %}
6+
37
{% block scripts %}
48
{{ super() }}
59

0 commit comments

Comments
 (0)