|
15 | 15 | from ansys.rocky.core import __version__ |
16 | 16 |
|
17 | 17 | # Project information |
18 | | -project = "pyrocky" |
| 18 | +project = "ansys-rocky-core" |
19 | 19 | copyright = f"(c) {datetime.now().year} ANSYS, Inc. All rights reserved" |
20 | 20 | author = "ANSYS, Inc." |
21 | 21 | release = version = __version__ |
|
26 | 26 | html_theme = "ansys_sphinx_theme" |
27 | 27 | html_short_title = html_title = "pyrocky" |
28 | 28 |
|
| 29 | +# The name of the Pygments (syntax highlighting) style to use. |
| 30 | +pygments_style = "sphinx" |
| 31 | + |
29 | 32 | # specify the location of your github repo |
30 | 33 | html_theme_options = { |
31 | 34 | "github_url": "https://github.com/ansys/pyrocky", |
|
39 | 42 | "version_match": get_version_match(version), |
40 | 43 | }, |
41 | 44 | "check_switcher": False, |
| 45 | + "ansys_sphinx_theme_autoapi": {"project": project}, |
42 | 46 | } |
43 | 47 |
|
44 | 48 | # Sphinx extensions |
45 | 49 | extensions = [ |
| 50 | + "ansys_sphinx_theme.extension.autoapi", |
46 | 51 | "sphinx.ext.autodoc", |
47 | 52 | "sphinx.ext.autosummary", |
48 | 53 | "numpydoc", |
|
128 | 133 | "show-module-summary", |
129 | 134 | "special-members", |
130 | 135 | ] |
131 | | -autoapi_template_dir = get_autoapi_templates_dir_relative_path(Path(__file__)) |
| 136 | +autoapi_template_dir = get_autoapi_templates_dir_relative_path(Path(__file__).parent) |
132 | 137 | suppress_warnings = ["autoapi.python_import_resolution"] |
133 | 138 | autoapi_python_use_implicit_namespaces = True |
134 | 139 | autoapi_keep_files = True |
135 | 140 | autoapi_render_in_single_page = ["class", "enum", "exception"] |
136 | 141 |
|
137 | 142 | # PyAnsys tags configuration |
138 | | -html_context = { |
139 | | - "pyansys_tags": ['Fluids'] |
140 | | -} |
| 143 | +html_context = {"pyansys_tags": ["Fluids"]} |
0 commit comments