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..3ca50086ac --- /dev/null +++ b/docs/source/_templates/footer.html @@ -0,0 +1,14 @@ +{% extends '!footer.html' %} +{% block contentinfo %} +{{ super() }} +

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

+{% 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..ed6954f493 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -1,4 +1,4 @@ -Sphinx<3.6 +Sphinx==3.5.4 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 +8,5 @@ jinja2<3.1 markupsafe==2.0.1 natsort==8.0.1 myst-nb<0.14 +lxml<5.1 linkify-it-py<1.1