Skip to content

Commit 0a5496e

Browse files
docs: Draft semver to calver banner (#715)
Use NVIDIA green for the bg and "nv-green-2" for the text. Co-authored-by: Karl Higley <[email protected]>
1 parent 3355291 commit 0a5496e

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

docs/source/_static/css/custom.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.wy-nav-content {
2+
margin: 0;
3+
background: #fcfcfc;
4+
padding-top: 40px;
5+
}
6+
7+
.wy-side-nav-search {
8+
display: block;
9+
width: 300px;
10+
padding: .809em;
11+
padding-top: 0.809em;
12+
margin-bottom: .809em;
13+
z-index: 200;
14+
background-color: #2980b9;
15+
text-align: center;
16+
color: #fcfcfc;
17+
padding-top: 40px;
18+
}
19+
20+
div.banner {
21+
position: fixed;
22+
top: 10px;
23+
left: 20px;
24+
margin: 0;
25+
z-index: 1000;
26+
width: 1050px;
27+
text-align: center;
28+
}
29+
30+
p.banner {
31+
border-radius: 4px;
32+
color: #004831;
33+
background: #76b900;
34+
}

docs/source/_templates/layout.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "!layout.html" %}
2+
{% block extrabody %}
3+
<div class="banner">
4+
<p class="banner">
5+
Beginning in January 2023, versions for all NVIDIA Merlin projects
6+
will change from semantic versioning like <code>4.0</code>
7+
to calendar versioning like <code>23.01</code>.</p>
8+
</div>
9+
{% endblock %}

docs/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
# Add any paths that contain custom static files (such as style sheets) here,
5454
# relative to this directory. They are copied after the builtin static files,
5555
# so a file named "default.css" will overwrite the builtin "default.css".
56-
html_static_path = []
56+
html_static_path = ["_static"]
57+
html_css_files = ["css/custom.css"]
5758

5859
# Add any paths that contain templates here, relative to this directory.
5960
templates_path = ["_templates"]

0 commit comments

Comments
 (0)