forked from NVIDIA/physicsnemo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
131 lines (111 loc) · 3.61 KB
/
conf.py
File metadata and controls
131 lines (111 loc) · 3.61 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
# SPDX-FileCopyrightText: Copyright (c) 2023 - 2026 NVIDIA CORPORATION & AFFILIATES.
# SPDX-FileCopyrightText: 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 os
from physicsnemo import __version__ as version
project = "NVIDIA PhysicsNeMo"
copyright = "2023, NVIDIA PhysicsNeMo Team"
author = "NVIDIA PhysicsNeMo Team"
release = version
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"recommonmark",
"sphinx.ext.mathjax",
"sphinx.ext.todo",
"sphinx.ext.autosectionlabel",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx.ext.autosummary",
"nbsphinx",
]
source_suffix = {".rst": "restructuredtext", ".md": "markdown"}
pdf_documents = [
("index", "rst2pdf", "Sample rst2pdf doc", "Your Name"),
]
napoleon_custom_sections = [("Variable Shape", "notes"), ("Forward", "params_style"), ("Outputs", "returns_style")]
# -- Options for HTML output -------------------------------------------------
# HTML theme options
html_theme = "nvidia_sphinx_theme"
html_theme_options = {
"logo_only": True,
"display_version": True,
"prev_next_buttons_location": "bottom",
"style_external_links": False,
"style_nav_header_background": "#000000",
# Toc options
"collapse_navigation": False,
"sticky_navigation": False,
# 'navigation_depth': 10,
"sidebarwidth": 12,
"includehidden": True,
"titles_only": False,
}
# Additional html options
html_static_path = ["_static"]
html_css_files = [
"css/nvidia_styles.css",
]
html_js_files = ["js/pk_scripts.js"]
# html_last_updated_fmt = ''
# Additional sphinx switches
math_number_all = False
todo_include_todos = True
numfig = True
_PREAMBLE = r"""
\usepackage{amsmath}
\usepackage{esint}
\usepackage{mathtools}
\usepackage{stmaryrd}
"""
latex_elements = {
"preamble": _PREAMBLE,
# other settings go here
}
latex_preamble = [
(
"\\usepackage{amssymb}",
"\\usepackage{amsmath}",
"\\usepackage{amsxtra}",
"\\usepackage{bm}",
"\\usepackage{esint}",
"\\usepackage{mathtools}",
"\\usepackage{stmaryrd}",
),
]
autosectionlabel_maxdepth = 1
templates_path = ["_templates"]
exclude_patterns = [
"_build",
"Thumbs.db",
".DS_Store",
"README.md",
"CONTRIBUTING.md",
"LICENSE.txt",
]
# Fake imports
autodoc_mock_imports = ["torch_scatter", "torch_cluster"] # install of these packages takes very long
source_suffix = {".rst": "restructuredtext", ".md": "markdown"}
pdf_documents = [
("index", "rst2pdf", "Sample rst2pdf doc", "Your Name"),
]
# napoleon_custom_sections = ["Variable Shape"]