diff --git a/docs/source/_static/css/custom.css b/docs/source/_static/css/custom.css index 7287e49212..11179bfd2b 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 0000000000..7d3629782a --- /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 4ddefa3e87..7f10142486 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 @@ -28,12 +29,16 @@ # -- 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 = "NVTabular" -copyright = "2024, NVIDIA" # pylint: disable=W0622 +copyright = year_range + ", NVIDIA" # pylint: disable=W0622 author = "NVIDIA" # The full version, including alpha/beta/rc tags -release = "2021" # -- General configuration --------------------------------------------------- @@ -91,8 +96,7 @@ html_theme_options = { "repository_url": "https://github.com/NVIDIA-Merlin/NVTabular", "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 NVTabular", "alt_text": "NVIDIA Merlin NVTabular"}, } html_sidebars = { @@ -108,6 +112,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,