@@ -82,6 +82,7 @@ class GenerateGir(TypedDict):
8282
8383 build_by_default : bool
8484 dependencies : T .List [Dependency ]
85+ doc_format : T .Optional [str ]
8586 export_packages : T .List [str ]
8687 extra_args : T .List [str ]
8788 fatal_warnings : bool
@@ -1103,6 +1104,7 @@ def _get_scanner_ldflags(ldflags: T.Iterable[str]) -> T.Iterable[str]:
11031104 _EXTRA_ARGS_KW ,
11041105 ENV_KW .evolve (since = '1.2.0' ),
11051106 KwargInfo ('dependencies' , ContainerTypeInfo (list , Dependency ), default = [], listify = True ),
1107+ KwargInfo ('doc_format' , (str , NoneType ), since = '1.8.0' ),
11061108 KwargInfo ('export_packages' , ContainerTypeInfo (list , str ), default = [], listify = True ),
11071109 KwargInfo ('fatal_warnings' , bool , default = False , since = '0.55.0' ),
11081110 KwargInfo ('header' , ContainerTypeInfo (list , str ), default = [], listify = True ),
@@ -1208,6 +1210,9 @@ def generate_gir(self, state: 'ModuleState', args: T.Tuple[T.List[T.Union[Execut
12081210 scan_command += ['--sources-top-dirs' , os .path .join (state .environment .get_source_dir (), state .root_subdir )]
12091211 scan_command += ['--sources-top-dirs' , os .path .join (state .environment .get_build_dir (), state .root_subdir )]
12101212
1213+ if kwargs ['doc_format' ] is not None and self ._gir_has_option ('--doc-format' ):
1214+ scan_command += ['--doc-format' , kwargs ['doc_format' ]]
1215+
12111216 if '--warn-error' in scan_command :
12121217 FeatureDeprecated .single_use ('gnome.generate_gir argument --warn-error' , '0.55.0' ,
12131218 state .subproject , 'Use "fatal_warnings" keyword argument' , state .current_node )
0 commit comments