|
83 | 83 | "ansys_sphinx_theme.extension.autoapi", |
84 | 84 | "sphinx_click", # Required by local-product-launcher |
85 | 85 | "sphinx_gallery.gen_gallery", |
| 86 | + "sphinx_jinja", |
86 | 87 | ] |
87 | 88 |
|
| 89 | +# sphinx gallery options |
| 90 | +sphinx_gallery_conf = { |
| 91 | + |
| 92 | + # path to your examples scripts |
| 93 | + "examples_dirs": ["../../examples"], |
| 94 | + # path where to save gallery generated examples |
| 95 | + "gallery_dirs": ["examples"], |
| 96 | + # Pattern to search for example files |
| 97 | + "filename_pattern": r"\.py", |
| 98 | + # Remove the "Download all examples" button from the top level gallery |
| 99 | + "download_all_examples": False, |
| 100 | + # Sort gallery example by file name instead of number of lines (default) |
| 101 | + "within_subsection_order": "FileNameSortKey", |
| 102 | + # directory where function granular galleries are stored |
| 103 | + "backreferences_dir": None, |
| 104 | + # Modules for which function level galleries are created. In |
| 105 | + "doc_module": "ansys-tools-common", |
| 106 | + "image_scrapers": ("matplotlib",), |
| 107 | + "ignore_pattern": r"__init__\.py", |
| 108 | + "thumbnail_size": (350, 350), |
| 109 | + "copyfile_regex": r".*\.rst", |
| 110 | +} |
| 111 | + |
| 112 | + |
88 | 113 | # numpydoc configuration |
89 | 114 | numpydoc_show_class_members = False |
90 | 115 | numpydoc_xref_param_type = True |
|
125 | 150 | # Ignore files |
126 | 151 | exclude_patterns = ["changelog/*.md"] |
127 | 152 |
|
128 | | -# sphinx gallery options |
129 | | -sphinx_gallery_conf = { |
130 | | - # convert rst to md for ipynb |
131 | | - "pypandoc": False, |
132 | | - # path to your examples scripts |
133 | | - "examples_dirs": ["../../examples"], |
134 | | - # path where to save gallery generated examples |
135 | | - "gallery_dirs": ["examples"], |
136 | | - # Pattern to search for example files |
137 | | - "filename_pattern": r"\.py", |
138 | | - # Remove the "Download all examples" button from the top level gallery |
139 | | - "download_all_examples": False, |
140 | | - # Sort gallery example by file name instead of number of lines (default) |
141 | | - "within_subsection_order": "FileNameSortKey", |
142 | | - # directory where function granular galleries are stored |
143 | | - "backreferences_dir": None, |
144 | | - # Modules for which function level galleries are created. In |
145 | | - "doc_module": "ansys-tools-common", |
146 | | - "promote_jupyter_magic": True, |
147 | | - "image_scrapers": ("matplotlib",), |
148 | | - "ignore_pattern": r"__init__\.py", |
149 | | - "thumbnail_size": (350, 350), |
150 | | - "copyfile_regex": r".*\.rst", |
151 | | -} |
|
0 commit comments