28
28
load_ansible_config ,
29
29
)
30
30
from ...extra_docs import load_collections_extra_docs
31
+ from ...jinja2 .environment import OutputFormat
31
32
from ...process_docs import (
32
33
get_callback_plugin_contents ,
33
34
get_collection_contents ,
@@ -56,6 +57,8 @@ def generate_docs_for_all_collections(
56
57
venv : VenvRunner | FakeVenvRunner ,
57
58
collection_dir : str | None ,
58
59
dest_dir : str ,
60
+ output_format : OutputFormat ,
61
+ * ,
59
62
collection_names : list [str ] | None = None ,
60
63
create_indexes : bool = True ,
61
64
squash_hierarchy : bool = False ,
@@ -72,6 +75,7 @@ def generate_docs_for_all_collections(
72
75
If ``None``, the collections are assumed to be in the current
73
76
search path for Ansible.
74
77
:arg dest_dir: The directory into which the documentation is written.
78
+ :arg output_format: The output format.
75
79
:kwarg collection_names: Optional list of collection names. If specified, only documentation
76
80
for these collections will be collected and generated.
77
81
:kwarg create_indexes: Whether to create the collection, namespace, and plugin indexes. By
@@ -187,6 +191,7 @@ def generate_docs_for_all_collections(
187
191
dest_dir ,
188
192
collection_url = collection_url ,
189
193
collection_install = collection_install ,
194
+ output_format = output_format ,
190
195
breadcrumbs = breadcrumbs ,
191
196
for_official_docsite = for_official_docsite ,
192
197
referable_envvars = referable_envvars ,
@@ -199,6 +204,7 @@ def generate_docs_for_all_collections(
199
204
dest_dir ,
200
205
collection_url = collection_url ,
201
206
collection_install = collection_install ,
207
+ output_format = output_format ,
202
208
breadcrumbs = breadcrumbs ,
203
209
for_official_docsite = for_official_docsite ,
204
210
referable_envvars = referable_envvars ,
@@ -212,6 +218,7 @@ def generate_docs_for_all_collections(
212
218
dest_dir ,
213
219
collection_url = collection_url ,
214
220
collection_install = collection_install ,
221
+ output_format = output_format ,
215
222
for_official_docsite = for_official_docsite ,
216
223
referable_envvars = referable_envvars ,
217
224
)
@@ -223,6 +230,7 @@ def generate_docs_for_all_collections(
223
230
dest_dir ,
224
231
collection_url = collection_url ,
225
232
collection_install = collection_install ,
233
+ output_format = output_format ,
226
234
for_official_docsite = for_official_docsite ,
227
235
referable_envvars = referable_envvars ,
228
236
)
@@ -239,6 +247,7 @@ def generate_docs_for_all_collections(
239
247
squash_hierarchy = squash_hierarchy ,
240
248
extra_docs_data = extra_docs_data ,
241
249
link_data = link_data ,
250
+ output_format = output_format ,
242
251
breadcrumbs = breadcrumbs ,
243
252
for_official_docsite = for_official_docsite ,
244
253
referable_envvars = referable_envvars ,
@@ -254,6 +263,7 @@ def generate_docs_for_all_collections(
254
263
collection_install = collection_install ,
255
264
collection_metadata = collection_metadata ,
256
265
link_data = link_data ,
266
+ output_format = output_format ,
257
267
squash_hierarchy = squash_hierarchy ,
258
268
for_official_docsite = for_official_docsite ,
259
269
referable_envvars = referable_envvars ,
@@ -271,6 +281,7 @@ def generate_docs_for_all_collections(
271
281
collection_install = collection_install ,
272
282
collection_metadata = collection_metadata ,
273
283
link_data = link_data ,
284
+ output_format = output_format ,
274
285
squash_hierarchy = squash_hierarchy ,
275
286
use_html_blobs = use_html_blobs ,
276
287
for_official_docsite = for_official_docsite ,
@@ -288,6 +299,7 @@ def generate_docs_for_all_collections(
288
299
output_environment_variables (
289
300
dest_dir ,
290
301
referenced_env_vars ,
302
+ output_format = output_format ,
291
303
squash_hierarchy = squash_hierarchy ,
292
304
referable_envvars = referable_envvars ,
293
305
)
0 commit comments