Skip to content

Commit

Permalink
Add GDPR info to footer
Browse files Browse the repository at this point in the history
Signed-off-by: Mike McKiernan <[email protected]>
  • Loading branch information
mikemckiernan committed Apr 16, 2024
1 parent d0cce61 commit b7b981f
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 12 deletions.
14 changes: 13 additions & 1 deletion docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,16 @@ p.banner {
border-radius: 4px;
color: #004831;
background: #76b900;
}
}

footer div p {
font-size: 80%;
}

footer div p a {
color: var(--small-font-color);
}

footer div p a:hover {
color: var(--small-font-color);
}
14 changes: 14 additions & 0 deletions docs/source/_templates/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends '!footer.html' %}
{% block contentinfo %}
{{ super() }}
<p>
<a href="https://www.nvidia.com/en-us/about-nvidia/privacy-policy/" target="_blank">Privacy Policy</a> |
<a href="https://www.nvidia.com/en-us/about-nvidia/privacy-center/" target="_blank">Manage My Privacy</a> |
<a href="https://www.nvidia.com/en-us/preferences/start/" target="_blank">Do Not Sell or Share My Data</a> |
<a href="https://www.nvidia.com/en-us/about-nvidia/terms-of-service/" target="_blank">Terms of Service</a> |
<a href="https://www.nvidia.com/en-us/about-nvidia/accessibility/" target="_blank">Accessibility</a> |
<a href="https://www.nvidia.com/en-us/about-nvidia/company-policies/" target="_blank">Corporate Policies</a> |
<a href="https://www.nvidia.com/en-us/product-security/" target="_blank">Product Security</a> |
<a href="https://www.nvidia.com/en-us/contact/" target="_blank">Contact</a>
</p>
{% endblock %}
9 changes: 0 additions & 9 deletions docs/source/_templates/layout.html

This file was deleted.

9 changes: 8 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import re
import subprocess
import sys
from datetime import datetime
from typing import List, cast

from natsort import natsorted
Expand All @@ -42,8 +43,13 @@

# -- Project information -----------------------------------------------------

year_range = "2021"
year_now = str(datetime.now().year)
if year_range != year_now:
year_range = year_range + chr(8211) + year_now

project = "Transformers4Rec"
copyright = "2021, NVIDIA"
copyright = year_range + ", NVIDIA"
author = "NVIDIA"


Expand Down Expand Up @@ -108,6 +114,7 @@
}
html_copy_source = False
html_show_sourcelink = False
html_show_sphinx = False

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
3 changes: 2 additions & 1 deletion requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sphinx<3.6
Sphinx==3.5.4
sphinx_rtd_theme==1.0.0
sphinx-multiversion@git+https://github.com/mikemckiernan/sphinx-multiversion.git
sphinxcontrib-copydirs@git+https://github.com/mikemckiernan/sphinxcontrib-copydirs.git
Expand All @@ -8,4 +8,5 @@ jinja2<3.1
markupsafe==2.0.1
natsort==8.0.1
myst-nb<0.14
lxml<5.1
linkify-it-py<1.1

0 comments on commit b7b981f

Please sign in to comment.