Skip to content

Commit 61ffb58

Browse files
committed
New NVIDIA footer in documentation (#876)
* Change the documentation footer Signed-off-by: Przemek Tredak <[email protected]> * Update docs toolchain versions Signed-off-by: Przemek Tredak <[email protected]> --------- Signed-off-by: Przemek Tredak <[email protected]>
1 parent 4e4aecb commit 61ffb58

File tree

6 files changed

+57
-6
lines changed

6 files changed

+57
-6
lines changed

.github/workflows/docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
uses: actions/checkout@v3
1818
- name: 'Install dependencies'
1919
run: |
20-
pip install sphinx==5.1.1 sphinx_rtd_theme==1.0.0 nbsphinx==0.8.10 IPython ipython_genutils==0.2.0 ipywidgets==8.0.2 astroid==2.15.7
21-
pip install breathe==4.34.0 sphinx-autoapi==2.0.1
20+
pip install sphinx==7.1.2 sphinx_rtd_theme==2.0.0 nbsphinx==0.9.4 IPython ipython_genutils==0.2.0 ipywidgets==8.1.3 astroid==3.2.2
21+
pip install breathe==4.35.0 sphinx-autoapi==3.1.1
2222
sudo apt-get install -y pandoc graphviz doxygen
2323
export GIT_SHA=$(git show-ref --hash HEAD)
2424
- name: 'Build docs'

docs/_static/NVIDIA-LogoBlack.svg

+1
Loading

docs/_static/css/nvidia_footer.css

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
footer img {
2+
display: block;
3+
width: 137.5px;
4+
position: relative;
5+
left: -9px;
6+
margin: 0 0 15px 0;
7+
}
8+
9+
footer p {
10+
color: #666666;
11+
font-weight: normal;
12+
font-size: 12px;
13+
line-height: 1.25em;
14+
}
15+
16+
footer p:not(.notices) {
17+
display: inline;
18+
margin: 0;
19+
}
20+
21+
footer p a,
22+
footer p a:link,
23+
footer p a:visited {
24+
color: #666666;
25+
}
26+
27+
footer p a:hover {
28+
color: #666666;
29+
}

docs/_templates/footer.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% extends '!footer.html' %}
2+
3+
{% block contentinfo %}
4+
<img src="{{ pathto('_static/NVIDIA-LogoBlack.svg', 1) }}"/>
5+
<p class="notices">
6+
<a href="https://www.nvidia.com/en-us/about-nvidia/privacy-policy/" target="_blank">Privacy Policy</a>
7+
|
8+
<a href="https://www.nvidia.com/en-us/about-nvidia/privacy-center/" target="_blank">Manage My Privacy</a>
9+
|
10+
<a href="https://www.nvidia.com/en-us/preferences/start/" target="_blank">Do Not Sell or Share My Data</a>
11+
|
12+
<a href="https://www.nvidia.com/en-us/about-nvidia/terms-of-service/" target="_blank">Terms of Service</a>
13+
|
14+
<a href="https://www.nvidia.com/en-us/about-nvidia/accessibility/" target="_blank">Accessibility</a>
15+
|
16+
<a href="https://www.nvidia.com/en-us/about-nvidia/company-policies/" target="_blank">Corporate Policies</a>
17+
|
18+
<a href="https://www.nvidia.com/en-us/product-security/" target="_blank">Product Security</a>
19+
|
20+
<a href="https://www.nvidia.com/en-us/contact/" target="_blank">Contact</a>
21+
</p>
22+
{{ super() }}
23+
{% endblock %}

docs/_templates/layout.html

-4
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@
6161
}
6262

6363
</style>
64-
{% endblock %}
65-
66-
{% block footer %} {{ super() }}
67-
6864
<style>
6965
a:link, a:visited {
7066
color: #76b900;

docs/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@
8787
html_theme = 'sphinx_rtd_theme'
8888
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
8989
html_static_path = ['_static']
90+
html_show_sphinx = False
9091

9192
html_css_files = [
9293
'css/nvidia_font.css',
94+
'css/nvidia_footer.css',
9395
]
9496

9597
html_theme_options = {

0 commit comments

Comments
 (0)