From c7c83b1d51c03ad5a3fd0420c83c9bf05657f764 Mon Sep 17 00:00:00 2001 From: Mike McKiernan Date: Thu, 25 Apr 2024 07:36:21 -0400 Subject: [PATCH] Add GDPR info into footer (#365) * Add GDPR info into footer Signed-off-by: Mike McKiernan * docs: Fix dependencies Signed-off-by: Mike McKiernan --------- Signed-off-by: Mike McKiernan Co-authored-by: Oliver Holworthy --- docs/source/_static/css/custom.css | 13 +++++++++++++ docs/source/_templates/footer.html | 10 ++++++++++ docs/source/conf.py | 12 +++++++++--- requirements-docs.txt | 5 +++++ 4 files changed, 37 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 7287e4921..11179bfd2 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 000000000..67c31217d --- /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 +

\ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index b79de177e..5aa2b7a04 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 @@ -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" @@ -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 = { diff --git a/requirements-docs.txt b/requirements-docs.txt index 033c1ddaa..c615bb670 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -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