Skip to content

Commit

Permalink
Use conf.py to exclude deprecated page if it doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
harrism committed Apr 24, 2024
1 parent 68a7a02 commit 9237815
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/rmm/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = []

# List of warnings to suppress
suppress_warnings = []

# if the file deprecated.xml does not exist in the doxygen xml output, breathe
# will fail to build the docs, so we conditionally add "breathe.rst" to the
# exclude_patterns list
if not os.path.exists(breathe_projects["librmm"] + "/deprecated.xml"):
exclude_patterns.append("librmm_docs/deprecated.rst")
suppress_warnings = ['toc.excluded']

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "sphinx"

Expand Down

0 comments on commit 9237815

Please sign in to comment.