Skip to content

Commit

Permalink
Extend the documentation footer (#5454)
Browse files Browse the repository at this point in the history
- makes the documentation footer aligned with the latest recommendations
- adds links with links related to privacy and terms of use in
  the documentation footer

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
  • Loading branch information
JanuszL authored May 8, 2024
1 parent 4a2e4a7 commit 2a1e895
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions docs/_templates/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{%- set show_copyright_backup = show_copyright -%}
{%- set show_copyright = false -%}
{% extends "!footer.html" %}
{%- block extrafooter %}

<style>
.footer-notice {
font-size: 85%;
}
</style>

<p class="footer-notice">
<a href="https://www.nvidia.com/en-us/about-nvidia/privacy-policy/" target="_blank">Privacy Policy</a>
|
<a href="https://www.nvidia.com/en-us/about-nvidia/privacy-center/" target="_blank">Manage My Privacy</a>
|
<a href="https://www.nvidia.com/en-us/preferences/start/" target="_blank">Do Not Sell or Share My Data</a>
|
<a href="https://www.nvidia.com/en-us/about-nvidia/terms-of-service/" target="_blank">Terms of Service</a>
|
<a href="https://www.nvidia.com/en-us/about-nvidia/accessibility/" target="_blank">Accessibility</a>
|
<a href="https://www.nvidia.com/en-us/about-nvidia/company-policies/" target="_blank">Corporate Policies</a>
|
<a href="https://www.nvidia.com/en-us/product-security/" target="_blank">Product Security</a>
|
<a href="https://www.nvidia.com/en-us/contact/" target="_blank">Contact</a>
</p>

{%- if show_copyright_backup %}
<p class="footer-notice">
{# from https://github.com/readthedocs/sphinx_rtd_theme/blob/1.0.0/sphinx_rtd_theme/footer.html#L20 #}
{%- if hasdoc('copyright') %}
{%- trans path=pathto('copyright'), copyright=copyright|e %}&#169; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
{%- else %}
{%- trans copyright=copyright|e %}Copyright &#169; {{ copyright }}.{% endtrans %}
{%- endif %}
</p>
{%- endif %}
{{ super() }}

{% endblock %}
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

# -- Project information -----------------------------------------------------

# remove sphinx footer
html_show_sphinx = False
project = "NVIDIA DALI"
copyright = "2018-{}, NVIDIA Corporation".format(date.today().year)
author = "NVIDIA Corporation"
Expand Down

0 comments on commit 2a1e895

Please sign in to comment.