-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathconf.py
More file actions
138 lines (122 loc) · 4.36 KB
/
conf.py
File metadata and controls
138 lines (122 loc) · 4.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
import sys
from pathlib import Path
sys.path.append(str(Path("../../examples").resolve()))
project = "NeMo-Run"
copyright = "2026, NVIDIA"
author = "NVIDIA"
release = "nightly"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"myst_parser",
"autoapi.extension",
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.coverage",
"sphinx.ext.mathjax",
"sphinx.ext.ifconfig",
"sphinx.ext.viewcode",
"sphinx.ext.githubpages",
"sphinx.ext.napoleon",
"sphinxcontrib.mermaid",
"sphinx_copybutton",
"sphinx_new_tab_link",
]
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "documentation.md"]
# -- Options for MyST Parser (Markdown) --------------------------------------
# MyST Parser settings
myst_enable_extensions = [
"dollarmath", # Enables dollar math for inline math
"amsmath", # Enables LaTeX math for display mode
"colon_fence", # Enables code blocks using ::: delimiters instead of ```
"deflist", # Supports definition lists with term: definition format
"fieldlist", # Enables field lists for metadata like :author: Name
"tasklist", # Adds support for GitHub-style task lists with [ ] and [x]
]
myst_heading_anchors = 5 # Generates anchor links for headings up to level 5
myst_fence_as_directive = ["mermaid"]
python_maximum_signature_line_length = 88
# Autoapi settings
autoapi_generate_api_docs = True
autoapi_keep_files = False
autoapi_add_toctree_entry = False
autoapi_type = "python"
autoapi_dirs = ["../nemo_run"]
autoapi_file_pattern = "*.py"
autoapi_root = "api"
autoapi_options = [
"members",
"show-inheritance",
"show-module-summary",
"special-members",
"imported-members",
]
# Autodoc settings
autodoc_typehints = "signature"
# Napoleon settings
napoleon_google_docstring = True
napoleon_numpy_docstring = True
napoleon_include_init_with_doc = True
napoleon_include_private_with_doc = True
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = False
napoleon_use_admonition_for_notes = False
napoleon_use_admonition_for_references = False
napoleon_use_ivar = False
napoleon_use_param = True
napoleon_use_rtype = True
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "nvidia_sphinx_theme"
html_theme_options = {
"switcher": {
"json_url": "../versions1.json",
"version_match": release,
},
"extra_head": {
"""
<script src="https://assets.adobedtm.com/5d4962a43b79/c1061d2c5e7b/launch-191c2462b890.min.js" ></script>
"""
},
"extra_footer": {
"""
<script type="text/javascript">if (typeof _satellite !== "undefined") {_satellite.pageBottom();}</script>
"""
},
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/NVIDIA-NeMo/Run",
"icon": "fa-brands fa-github",
}
],
}
html_extra_path = ["project.json", "versions1.json"]
# Github links are now getting rate limited from the Github Actions
linkcheck_ignore = [
".*github\\.com.*",
".*githubusercontent\\.com.*",
]