Unverified Commit a2c9c635 authored by Przemyslaw Tredak's avatar Przemyslaw Tredak Committed by GitHub
Browse files

Use NVIDIA Sans font in Transformer Engine documentation (#179)



* Use NVIDIA Sans font in Transformer Engine documentation
Signed-off-by: default avatarPrzemek Tredak <ptredak@nvidia.com>

* Use NV font for the names in the API
Signed-off-by: default avatarPrzemek Tredak <ptredak@nvidia.com>

---------
Signed-off-by: default avatarPrzemek Tredak <ptredak@nvidia.com>
parent 49a161e4
@font-face {
font-family: NVIDIA;
font-style: normal;
font-weight: 300;
src: url(https://images.nvidia.com/etc/designs/nvidiaGDC/clientlibs_base/fonts/nvidia-sans/GLOBAL/NVIDIASans_W_Lt.woff) format("woff"),url(https://images.nvidia.com/etc/designs/nvidiaGDC/clientlibs_base/fonts/nvidia-sans/GLOBAL/NVIDIASans_W_Lt.woff2) format("woff2")
}
@font-face {
font-family: NVIDIA;
font-style: normal;
font-weight: 400;
src: url(https://images.nvidia.com/etc/designs/nvidiaGDC/clientlibs_base/fonts/nvidia-sans/GLOBAL/NVIDIASans_W_Rg.woff) format("woff"),url(https://images.nvidia.com/etc/designs/nvidiaGDC/clientlibs_base/fonts/nvidia-sans/GLOBAL/NVIDIASans_W_Rg.woff2) format("woff2")
}
@font-face {
font-family: NVIDIA;
font-style: normal;
font-weight: 500;
src: url(https://images.nvidia.com/etc/designs/nvidiaGDC/clientlibs_base/fonts/nvidia-sans/GLOBAL/NVIDIASans_W_Md.woff) format("woff"),url(https://images.nvidia.com/etc/designs/nvidiaGDC/clientlibs_base/fonts/nvidia-sans/GLOBAL/NVIDIASans_W_Md.woff2) format("woff2")
}
@font-face {
font-family: NVIDIA;
font-style: normal;
font-weight: 700;
src: url(https://images.nvidia.com/etc/designs/nvidiaGDC/clientlibs_base/fonts/nvidia-sans/GLOBAL/NVIDIASans_W_Bd.woff) format("woff"),url(https://images.nvidia.com/etc/designs/nvidiaGDC/clientlibs_base/fonts/nvidia-sans/GLOBAL/NVIDIASans_W_Bd.woff2) format("woff2")
}
body {
font-family: NVIDIA,Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;
}
.rst-content .toctree-wrapper>p.caption,h1,h2,h3,h4,h5,h6,legend {
margin-top: 0;
font-weight: 700;
font-family: NVIDIA,Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif
}
input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week] {
font-family: NVIDIA,Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;
}
select {
font-family: NVIDIA,Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;
}
.btn {
font-family: NVIDIA,Lato,proxima-nova,Helvetica Neue,Arial,sans-serif;
}
html.writer-html4 .rst-content dl:not(.docutils) .descclassname,html.writer-html4 .rst-content dl:not(.docutils) .descname,html.writer-html4 .rst-content dl:not(.docutils) .sig-name,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .sig-name {
font-family: NVIDIA,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;
}
...@@ -18,7 +18,7 @@ from datetime import date ...@@ -18,7 +18,7 @@ from datetime import date
te_path = os.path.dirname(os.path.realpath(__file__)) te_path = os.path.dirname(os.path.realpath(__file__))
with open(te_path + "/../VERSION", "r") as f: with open(te_path + "/../VERSION", "r") as f:
te_version = f.readline() te_version = f.readline().strip()
release_year = 2022 release_year = 2022
...@@ -67,7 +67,8 @@ extensions = [ ...@@ -67,7 +67,8 @@ extensions = [
'sphinx.ext.ifconfig', 'sphinx.ext.ifconfig',
'nbsphinx', 'nbsphinx',
'breathe', 'breathe',
'autoapi.extension'] 'autoapi.extension',
]
templates_path = ['_templates'] templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
...@@ -85,7 +86,11 @@ pygments_style = 'sphinx' ...@@ -85,7 +86,11 @@ pygments_style = 'sphinx'
html_theme = 'sphinx_rtd_theme' html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_static_path = [] html_static_path = ['_static']
html_css_files = [
'css/nvidia_font.css',
]
html_theme_options = { html_theme_options = {
'display_version': True, 'display_version': True,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment