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 23, 2024
1 parent 92340ba commit 71af9f1
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 6 deletions.
46 changes: 46 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.wy-nav-content {
margin: 0;
background: #fcfcfc;
padding-top: 40px;
}

.wy-side-nav-search {
display: block;
width: 300px;
padding: .809em;
padding-top: 0.809em;
margin-bottom: .809em;
z-index: 200;
background-color: #2980b9;
text-align: center;
color: #fcfcfc;
padding-top: 40px;
}

div.banner {
position: fixed;
top: 10px;
left: 20px;
margin: 0;
z-index: 1000;
width: 1050px;
text-align: center;
}

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 %}
<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>
{{ super() }}
{% endblock %}
10 changes: 9 additions & 1 deletion 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 @@ -25,8 +26,13 @@

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

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

project = "Merlin Systems"
copyright = "2022, NVIDIA" # pylint: disable=W0622
copyright = year_range + ", NVIDIA" # pylint: disable=W0622
author = "NVIDIA"


Expand Down Expand Up @@ -89,11 +95,13 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
html_css_files = ["css/custom.css"]

source_suffix = [".rst", ".md"]

html_copy_source = False
html_show_sourcelink = False
html_show_sphinx = False

if os.path.exists(gitdir):
tag_refs = subprocess.check_output(["git", "tag", "-l", "v*"]).decode("utf-8").split()
Expand Down
6 changes: 1 addition & 5 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
-r base.txt
-r dev.txt

tritonclient[all]
tensorflow<=2.9.0

Sphinx==3.5.4
sphinx_rtd_theme==1.0.0
Expand All @@ -12,9 +8,9 @@ recommonmark==0.7.1
Jinja2<3.1
natsort==8.0.1
myst-nb==0.13.2
lxml<5.1
linkify-it-py==1.0.3
sphinx-external-toc==0.2.4
attrs==21.4.0

# keep support for numpy builtin type aliases for previous tags
# numpy builtin aliases like np.str were removed in 1.24
Expand Down

0 comments on commit 71af9f1

Please sign in to comment.