Skip to content

Commit

Permalink
Add GDPR info into footer (#365)
Browse files Browse the repository at this point in the history
* Add GDPR info into footer

Signed-off-by: Mike McKiernan <[email protected]>

* docs: Fix dependencies

Signed-off-by: Mike McKiernan <[email protected]>

---------

Signed-off-by: Mike McKiernan <[email protected]>
Co-authored-by: Oliver Holworthy <[email protected]>
  • Loading branch information
mikemckiernan and oliverholworthy authored Apr 25, 2024
1 parent 426e034 commit c7c83b1
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
13 changes: 13 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -470,3 +470,16 @@ dd p:first-child
{
margin-top: 0px;
}

footer div p {
font-size: 80%;
padding-top: 1em;
}

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

footer div p a:hover {
color: var(--small-font-color);
}
10 changes: 10 additions & 0 deletions docs/source/_templates/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<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>
12 changes: 9 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import re
import subprocess
import sys
from datetime import datetime

from natsort import natsorted

Expand All @@ -24,8 +25,14 @@

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

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


project = "Merlin Core"
copyright = "2023, NVIDIA" # pylint: disable=redefined-builtin
copyright = year_range + ", NVIDIA" # pylint: disable=redefined-builtin
author = "NVIDIA"


Expand Down Expand Up @@ -85,8 +92,7 @@
html_theme_options = {
"repository_url": "https://github.com/NVIDIA-Merlin/core",
"use_repository_button": True,
"footer_content_items": ["copyright.html", "last-updated.html"],
"extra_footer": "",
"footer_content_items": ["copyright.html", "footer.html"],
"logo": {"text": "NVIDIA Merlin Core", "alt_text": "NVIDIA Merlin Core"},
}
html_sidebars = {
Expand Down
5 changes: 5 additions & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
-r requirements.txt
-r requirements-dev.txt

sphinxcontrib-applehelp==1.0.4
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
sphinx-multiversion@git+https://github.com/mikemckiernan/sphinx-multiversion.git
sphinxcontrib-copydirs@git+https://github.com/mikemckiernan/sphinxcontrib-copydirs.git
recommonmark~=0.7.1
Expand Down

0 comments on commit c7c83b1

Please sign in to comment.