diff --git a/src/appendices/entity-table.md b/src/appendices/entity-table.md index 549b0685fb..bf69bdc863 100644 --- a/src/appendices/entity-table.md +++ b/src/appendices/entity-table.md @@ -61,7 +61,3 @@ while entity definitions are in the [Entities Appendix](entities.md). ## Motion {{ MACROS___make_entity_table(datatypes=["motion"]) }} - -## Stimulus Files - -{{ MACROS___make_entity_table(datatypes=["stimuli"]) }} diff --git a/tools/mkdocs_macros_bids/macros.py b/tools/mkdocs_macros_bids/macros.py index 03d0ddc57b..6395ca9641 100644 --- a/tools/mkdocs_macros_bids/macros.py +++ b/tools/mkdocs_macros_bids/macros.py @@ -112,7 +112,18 @@ def make_root_filename_template( if src_path is None: src_path = _get_source_path() - schema_obj = schema.load_schema() + # Load schema with explicit path to avoid caching issues + import os + + schema_path = os.path.join( + os.path.dirname(os.path.dirname(os.path.dirname(__file__))), + "src", + "schema.json", + ) + if os.path.exists(schema_path): + schema_obj = schema.load_schema(schema_path) + else: + schema_obj = schema.load_schema() # Look for rules that have a specific path (root-level organization) target_path = kwargs.get("path", "stimuli") # Default to stimuli @@ -147,17 +158,30 @@ def make_root_filename_template( template_lines.append(f" {rule.stem}{ext}") elif hasattr(rule, "suffixes"): - # Handle entity-based files (like stim-