@@ -270,6 +270,11 @@ def _manifest_formatted(
270
270
for pt in otio .plugins .manifest .OTIO_PLUGIN_TYPES :
271
271
pt_lines = []
272
272
273
+ if pt == "hooks" :
274
+ # hooks get handled differently by plugin_info_map() so we will skip them
275
+ display_map [pt ] = ""
276
+ continue
277
+
273
278
sorted_plugins = [
274
279
plugin_info_map [pt ][name ]
275
280
for name in sorted (plugin_info_map [pt ].keys ())
@@ -316,21 +321,26 @@ def generate_and_write_documentation_plugins(
316
321
manifest_path_list = plugin_info_map ['manifests' ][:]
317
322
318
323
if public_only :
319
- manifest_path_list = manifest_path_list [:2 ]
324
+ # keep only core manifests
325
+ manifest_path_list = [
326
+ p for p in manifest_path_list
327
+ if p .strip ('/' ).split (PATH_SEP )[- 3 ] == "opentimelineio"
328
+ ]
329
+
330
+ sanitized_path_list = manifest_path_list .copy ()
320
331
321
- sanitized_paths = manifest_path_list [:]
322
332
if sanitized_paths :
323
333
# conform all paths to unix-style path separators and leave relative
324
334
# paths (relative to root of OTIO directory)
325
- sanitized_paths = [
335
+ sanitized_path_list = [
326
336
PATH_SEP .join (p .replace ("\\ " , PATH_SEP ).split (PATH_SEP )[- 3 :])
327
- for p in manifest_path_list
337
+ for p in sanitized_path_list
328
338
]
329
339
330
- manifest_list = "\n " .join (f"- `{ mp } `" for mp in sanitized_paths )
340
+ manifest_list = "\n " .join (f"- `{ mp } `" for mp in sanitized_path_list )
331
341
332
342
core_manifest_path = manifest_path_list [0 ]
333
- core_manifest_path_sanitized = sanitized_paths [0 ]
343
+ core_manifest_path_sanitized = sanitized_path_list [0 ]
334
344
core_manifest_text = _manifest_formatted (
335
345
plugin_info_map ,
336
346
[core_manifest_path ],
@@ -340,7 +350,7 @@ def generate_and_write_documentation_plugins(
340
350
local_manifest_text = ""
341
351
if len (plugin_info_map ) > 2 and not public_only :
342
352
local_manifest_paths = manifest_path_list [2 :]
343
- local_manifest_paths_sanitized = sanitized_paths [2 :]
353
+ local_manifest_paths_sanitized = sanitized_path_list [2 :]
344
354
local_manifest_list = "\n " .join (
345
355
f"- `{ mp } `" for mp in local_manifest_paths_sanitized
346
356
)
0 commit comments