NVIDIA Sphinx Theme

0.0.9.post1 · active · verified Thu Apr 16

The `nvidia-sphinx-theme` provides a modern, opinionated Sphinx theme specifically designed for NVIDIA projects, focusing on clean aesthetics and user experience. It is currently at version 0.0.9.post1 and follows an irregular release cadence, with updates typically coinciding with feature additions or Sphinx compatibility requirements.

Common errors

Warnings

Install

Imports

Quickstart

To quickly start a project with the NVIDIA Sphinx theme: 1. Create a new Sphinx project using `sphinx-quickstart`. 2. Install the theme: `pip install nvidia-sphinx-theme`. 3. Replace the content of your generated `conf.py` with the example above, or modify `html_theme` to `'nvidia_sphinx_theme'`. 4. Build your documentation: `make html` (or `sphinx-build -b html . _build` on Windows or if `make` isn't available).

# conf.py

import os
import sys

# -- Project information -----------------------------------------------------
project = 'My NVIDIA Docs'
copyright = '2023, NVIDIA'
author = 'NVIDIA'

# -- General configuration ---------------------------------------------------
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.napoleon',
    'sphinx.ext.viewcode'
]

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

# -- Options for HTML output -------------------------------------------------
html_theme = 'nvidia_sphinx_theme'
html_static_path = ['_static']

# Theme options are specific to the theme. Consult the theme's documentation
# for options available. For example:
# html_theme_options = {
#     "navbar_left_text": "NVIDIA",
#     "logo_link": "https://www.nvidia.com",
# }

view raw JSON →