Skip to content

Commit

Permalink
Fix docs warning (#1706)
Browse files Browse the repository at this point in the history
Closes #1705.

Authors:
  - Bradley Dice (https://github.com/bdice)

Approvers:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

URL: #1706
  • Loading branch information
bdice authored Oct 16, 2024
1 parent de42f57 commit 50e60a8
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions python/rmm/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import datetime
import os
import re

Expand All @@ -22,8 +23,8 @@
# -- Project information -----------------------------------------------------

project = "rmm"
copyright = "2020-2023, NVIDIA"
author = "NVIDIA"
copyright = f"2018-{datetime.datetime.today().year}, NVIDIA Corporation"
author = "NVIDIA Corporation"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -118,19 +119,6 @@

html_theme = "sphinx_rtd_theme"

# on_rtd is whether we are on readthedocs.org
on_rtd = os.environ.get("READTHEDOCS", None) == "True"

if not on_rtd:
# only import and set the theme if we're building docs locally
# otherwise, readthedocs.org uses their theme by default,
# so no need to specify it
import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]


# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
Expand Down

0 comments on commit 50e60a8

Please sign in to comment.