44from jinja2 import Template
55
66from ansys .dpf import core as dpf
7+ from ansys .dpf .core .changelog import Changelog
78from ansys .dpf .core .core import load_library
89from ansys .dpf .core .dpf_operator import available_operator_names
9- from ansys .dpf .core .changelog import Changelog
1010
1111
1212def initialize_server (ansys_path = None , include_composites = False , include_sound = False ):
@@ -87,23 +87,18 @@ def fetch_doc_info(server, operator_name):
8787 changelog = Changelog (gdc = changelog_gdc , server = server )
8888 last_version = changelog .last_version
8989 changelog_entries = [
90- f"Version { str (version )} : { changelog [version ]} "
91- for version in changelog .versions
90+ f"Version { str (version )} : { changelog [version ]} " for version in changelog .versions
9291 ]
9392 else :
9493 last_version = "0.0.0"
95- changelog_entries = [
96- f"Version { last_version } : Initial release."
97- ]
98-
94+ changelog_entries = [f"Version { last_version } : Initial release." ]
9995
10096 op_friendly_name = user_name
10197 if category :
10298 op_friendly_name = category + ":" + op_friendly_name
10399
104100 license = properties .pop ("license" , "None" )
105101
106-
107102 exposure = properties .pop ("exposure" , "private" )
108103 scripting_info = {
109104 "category" : category ,
@@ -113,10 +108,9 @@ def fetch_doc_info(server, operator_name):
113108 "internal_name" : operator_name ,
114109 "license" : license ,
115110 "version" : str (last_version ), # Include last version in scripting_info
116- "changelog" : changelog_entries , # Include all changelog entries
111+ "changelog" : changelog_entries , # Include all changelog entries
117112 }
118113
119-
120114 return {
121115 "operator_name" : op_friendly_name ,
122116 "operator_description" : spec .description ,
@@ -220,7 +214,13 @@ def main():
220214 for operator_name in operators :
221215 generate_operator_doc (server , operator_name , args .include_private )
222216
223- docs_path = Path (__file__ ).parent .parent / "doc" / "source" / "operators_doc" / "operator-specifications"
217+ docs_path = (
218+ Path (__file__ ).parent .parent
219+ / "doc"
220+ / "source"
221+ / "operators_doc"
222+ / "operator-specifications"
223+ )
224224 print (docs_path )
225225 generate_toc_tree (docs_path )
226226
0 commit comments