Skip to content

Commit c0f43d6

Browse files
Add GDPR info into footer (#1096)
Signed-off-by: Mike McKiernan <[email protected]>
1 parent d0e6311 commit c0f43d6

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

docs/source/_static/css/custom.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,3 +470,16 @@ dd p:first-child
470470
{
471471
margin-top: 0px;
472472
}
473+
474+
footer div p {
475+
font-size: 80%;
476+
padding-top: 1em;
477+
}
478+
479+
footer div p a {
480+
color: var(--small-font-color);
481+
}
482+
483+
footer div p a:hover {
484+
color: var(--small-font-color);
485+
}

docs/source/_templates/footer.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<p>
2+
<a href="https://www.nvidia.com/en-us/about-nvidia/privacy-policy/" target="_blank">Privacy Policy</a> |
3+
<a href="https://www.nvidia.com/en-us/about-nvidia/privacy-center/" target="_blank">Manage My Privacy</a> |
4+
<a href="https://www.nvidia.com/en-us/preferences/start/" target="_blank">Do Not Sell or Share My Data</a> |
5+
<a href="https://www.nvidia.com/en-us/about-nvidia/terms-of-service/" target="_blank">Terms of Service</a> |
6+
<a href="https://www.nvidia.com/en-us/about-nvidia/accessibility/" target="_blank">Accessibility</a> |
7+
<a href="https://www.nvidia.com/en-us/about-nvidia/company-policies/" target="_blank">Corporate Policies</a> |
8+
<a href="https://www.nvidia.com/en-us/product-security/" target="_blank">Product Security</a> |
9+
<a href="https://www.nvidia.com/en-us/contact/" target="_blank">Contact</a>
10+
</p>

docs/source/conf.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import re
44
import subprocess
55
import sys
6+
from datetime import datetime
67

78
from natsort import natsorted
89

@@ -12,8 +13,13 @@
1213

1314
# -- Project information -----------------------------------------------------
1415

16+
year_range = "2023"
17+
year_now = str(datetime.now().year)
18+
if year_range != year_now:
19+
year_range = year_range + chr(8211) + year_now
20+
1521
project = "Merlin"
16-
copyright = "2023, NVIDIA" # pylint: disable=redefined-builtin
22+
copyright = year_range + ", NVIDIA" # pylint: disable=redefined-builtin
1723
author = "NVIDIA"
1824

1925
# -- General configuration ---------------------------------------------------
@@ -75,8 +81,7 @@
7581
html_theme_options = {
7682
"repository_url": "https://github.com/NVIDIA-Merlin/Merlin",
7783
"use_repository_button": True,
78-
"footer_content_items": ["copyright.html", "last-updated.html"],
79-
"extra_footer": "",
84+
"footer_content_items": ["copyright.html", "footer.html"],
8085
"logo": {"text": "NVIDIA Merlin", "alt_text": "NVIDIA Merlin"},
8186
}
8287
html_sidebars = {
@@ -100,7 +105,9 @@
100105
# repo (a Git repo) vs SMV reading conf.py from an archive of the repo
101106
# at a commit (not a Git repo).
102107
if os.path.exists(gitdir):
103-
tag_refs = subprocess.check_output(["git", "tag", "-l", "v*"]).decode("utf-8").split()
108+
tag_refs = (
109+
subprocess.check_output(["git", "tag", "-l", "v*"]).decode("utf-8").split()
110+
)
104111
tag_refs = [tag for tag in tag_refs if re.match(r"^v[0-9]+.[0-9]+.[0-9]+$", tag)]
105112
tag_refs = natsorted(tag_refs)[-6:]
106113
smv_tag_whitelist = r"^(" + r"|".join(tag_refs) + r")$"

0 commit comments

Comments
 (0)