From 23d5e3ba73b3d490400e45bf4feba94ed473432f Mon Sep 17 00:00:00 2001 From: Mike McKiernan Date: Thu, 25 Apr 2024 06:49:56 -0400 Subject: [PATCH] Add GDPR info to footer (#774) * Add GDPR info to footer Signed-off-by: Mike McKiernan * Update docs dependencies Signed-off-by: Mike McKiernan --------- Signed-off-by: Mike McKiernan --- docs/source/_static/css/custom.css | 14 +++++++++++++- docs/source/_templates/footer.html | 14 ++++++++++++++ docs/source/_templates/layout.html | 9 --------- docs/source/conf.py | 9 ++++++++- requirements/docs.txt | 8 +++++++- 5 files changed, 42 insertions(+), 12 deletions(-) create mode 100644 docs/source/_templates/footer.html delete mode 100644 docs/source/_templates/layout.html diff --git a/docs/source/_static/css/custom.css b/docs/source/_static/css/custom.css index 319ddff89a..8a5b94b381 100644 --- a/docs/source/_static/css/custom.css +++ b/docs/source/_static/css/custom.css @@ -31,4 +31,16 @@ p.banner { border-radius: 4px; color: #004831; background: #76b900; -} \ No newline at end of file +} + +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); +} diff --git a/docs/source/_templates/footer.html b/docs/source/_templates/footer.html new file mode 100644 index 0000000000..72cae10b79 --- /dev/null +++ b/docs/source/_templates/footer.html @@ -0,0 +1,14 @@ +{% extends '!footer.html' %} +{% block contentinfo %} +

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

+{{ super() }} +{% endblock %} \ No newline at end of file diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html deleted file mode 100644 index 76917f64c1..0000000000 --- a/docs/source/_templates/layout.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "!layout.html" %} -{% block extrabody %} - -{% endblock %} diff --git a/docs/source/conf.py b/docs/source/conf.py index 05b13b7948..598915e382 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -30,6 +30,7 @@ import re import subprocess import sys +from datetime import datetime from typing import List, cast from natsort import natsorted @@ -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" @@ -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, diff --git a/requirements/docs.txt b/requirements/docs.txt index a1efbbaaf2..7788b3bc26 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -1,4 +1,9 @@ -Sphinx<3.6 +Sphinx==3.5.4 +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_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 @@ -8,4 +13,5 @@ jinja2<3.1 markupsafe==2.0.1 natsort==8.0.1 myst-nb<0.14 +lxml<5.1 linkify-it-py<1.1