From 7d03922a0bee49277e7f6d57c6b2bcd895ad5124 Mon Sep 17 00:00:00 2001 From: Mike McKiernan Date: Thu, 25 Apr 2024 10:16:46 -0400 Subject: [PATCH] Add GDPR info to footer (#390) * Add GDPR info to footer Signed-off-by: Mike McKiernan * match changes from core/models --------- Signed-off-by: Mike McKiernan Co-authored-by: Oliver Holworthy <1216955+oliverholworthy@users.noreply.github.com> --- docs/source/_static/css/custom.css | 13 +++++++++++++ docs/source/_templates/footer.html | 10 ++++++++++ docs/source/conf.py | 12 +++++++++--- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 docs/source/_templates/footer.html diff --git a/docs/source/_static/css/custom.css b/docs/source/_static/css/custom.css index 7287e492..11179bfd 100644 --- a/docs/source/_static/css/custom.css +++ b/docs/source/_static/css/custom.css @@ -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); +} diff --git a/docs/source/_templates/footer.html b/docs/source/_templates/footer.html new file mode 100644 index 00000000..7d362978 --- /dev/null +++ b/docs/source/_templates/footer.html @@ -0,0 +1,10 @@ +

+Privacy Policy | +Manage My Privacy | +Do Not Sell or Share My Data | +Terms of Service | +Accessibility | +Corporate Policies | +Product Security | +Contact +

diff --git a/docs/source/conf.py b/docs/source/conf.py index ec358118..128fc8ae 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -14,6 +14,7 @@ import re import subprocess import sys +from datetime import datetime from natsort import natsorted @@ -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 = "2024, NVIDIA" # pylint: disable=W0622 +copyright = year_range + ", NVIDIA" # pylint: disable=W0622 author = "NVIDIA" @@ -84,8 +90,7 @@ html_theme_options = { "repository_url": "https://github.com/NVIDIA-Merlin/systems", "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 Systems", "alt_text": "NVIDIA Merlin Systems"}, } html_sidebars = { @@ -101,6 +106,7 @@ html_favicon = "_static/favicon.png" html_copy_source = True 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,