Skip to content

Commit fda5c79

Browse files
authored
Merge pull request #54 from pharmaverse/announcement-bar
Add announcement bar to documentation site
2 parents ca2a5fb + 32124c2 commit fda5c79

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

docs/overrides/main.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "base.html" %}
2+
3+
{% block announce %}
4+
Learn how to create clinical study reports and eCTD submissions with Python at
5+
<a href="https://pycsr.org">
6+
<strong>pycsr.org</strong>
7+
</a>
8+
{% endblock %}

docs/stylesheets/extra.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,9 @@ code {
6767
.md-typeset .admonition,
6868
.md-typeset details {
6969
font-size: 0.85rem;
70+
}
71+
72+
.md-banner {
73+
color: var(--md-typeset-color);
74+
background-color: oklch(96.2% 0.059 95.617);
7075
}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ markdown_extensions:
4242

4343
theme:
4444
name: material
45+
custom_dir: docs/overrides
4546
font:
4647
text: Lato
4748
logo: assets/logo.png

0 commit comments

Comments
 (0)