Skip to content

Commit

Permalink
Add announcement banner
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Jan 15, 2025
1 parent 98dda06 commit b0e4de3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ h2, h3, h4, h5, h6 {

/* Links */

a:link, a:visited {
/* Don't change the color of visited links. */
a:visited {
color: var(--color-link);
}

.announcement-content a {
color: var(--color-announcement-text);
}

/* Hide ToC caption text within the main body (but leave them in the side-bar). */
/* https://github.com/hynek/structlog/blob/b488a8bf589a01aabc41e3bf8df81a9848cd426c/docs/_static/custom.css#L17-L20 */
#furo-main-content span.caption-text {
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"light_logo": "marshmallow-logo-with-title.png",
"dark_logo": "marshmallow-logo-with-title-for-dark-theme.png",
"source_repository": "https://github.com/marshmallow-code/marshmallow",
"announcement": 'This is the documentation for the unreleased 4.0 version. The latest v3 docs are <a href="https://marshmallow.readthedocs.io/en/3.x-line/">here</a>.',
"source_branch": "dev",
"source_directory": "docs/",
"sidebar_hide_name": True,
Expand Down

0 comments on commit b0e4de3

Please sign in to comment.