Skip to content

Commit 23d5e3b

Browse files
Add GDPR info to footer (#774)
* Add GDPR info to footer Signed-off-by: Mike McKiernan <[email protected]> * Update docs dependencies Signed-off-by: Mike McKiernan <[email protected]> --------- Signed-off-by: Mike McKiernan <[email protected]>
1 parent d0cce61 commit 23d5e3b

File tree

5 files changed

+42
-12
lines changed

5 files changed

+42
-12
lines changed

docs/source/_static/css/custom.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,16 @@ p.banner {
3131
border-radius: 4px;
3232
color: #004831;
3333
background: #76b900;
34-
}
34+
}
35+
36+
footer div p {
37+
font-size: 80%;
38+
}
39+
40+
footer div p a {
41+
color: var(--small-font-color);
42+
}
43+
44+
footer div p a:hover {
45+
color: var(--small-font-color);
46+
}

docs/source/_templates/footer.html

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

docs/source/_templates/layout.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import re
3131
import subprocess
3232
import sys
33+
from datetime import datetime
3334
from typing import List, cast
3435

3536
from natsort import natsorted
@@ -42,8 +43,13 @@
4243

4344
# -- Project information -----------------------------------------------------
4445

46+
year_range = "2021"
47+
year_now = str(datetime.now().year)
48+
if year_range != year_now:
49+
year_range = year_range + chr(8211) + year_now
50+
4551
project = "Transformers4Rec"
46-
copyright = "2021, NVIDIA"
52+
copyright = year_range + ", NVIDIA"
4753
author = "NVIDIA"
4854

4955

@@ -108,6 +114,7 @@
108114
}
109115
html_copy_source = False
110116
html_show_sourcelink = False
117+
html_show_sphinx = False
111118

112119
# Add any paths that contain custom static files (such as style sheets) here,
113120
# relative to this directory. They are copied after the builtin static files,

requirements/docs.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
Sphinx<3.6
1+
Sphinx==3.5.4
2+
sphinxcontrib-applehelp==1.0.4
3+
sphinxcontrib-devhelp==1.0.2
4+
sphinxcontrib-htmlhelp==2.0.1
5+
sphinxcontrib-qthelp==1.0.3
6+
sphinxcontrib-serializinghtml==1.1.5
27
sphinx_rtd_theme==1.0.0
38
sphinx-multiversion@git+https://github.com/mikemckiernan/sphinx-multiversion.git
49
sphinxcontrib-copydirs@git+https://github.com/mikemckiernan/sphinxcontrib-copydirs.git
@@ -8,4 +13,5 @@ jinja2<3.1
813
markupsafe==2.0.1
914
natsort==8.0.1
1015
myst-nb<0.14
16+
lxml<5.1
1117
linkify-it-py<1.1

0 commit comments

Comments
 (0)