From 348dad27bbdb5108688cb1f1e885daa5daabfc78 Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Tue, 30 Dec 2025 18:53:37 +0100 Subject: [PATCH] Docs: stencil selection updated --- docs/source/example_asm.py | 2 +- docs/source/stencil_doc.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/source/example_asm.py b/docs/source/example_asm.py index 0533c56..86e7d1d 100644 --- a/docs/source/example_asm.py +++ b/docs/source/example_asm.py @@ -34,7 +34,7 @@ def build_asm_code_dict(asm_glob_pattern: str) -> dict[str, str]: # Example usage: if __name__ == "__main__": parser = argparse.ArgumentParser(description="Generate stencils documentation from C and assembly code") - parser.add_argument('--input', default='tools/make_example.py', help='Path to input C file') + parser.add_argument('--input', default='tools/make_example.py', help='Path to example script') parser.add_argument('--asm-pattern', default='build/tmp/runner-linux-*/example.asm', help='Glob pattern for assembly files') parser.add_argument('--output', default='docs/build/compiled_example.md', help='Output markdown file path') diff --git a/docs/source/stencil_doc.py b/docs/source/stencil_doc.py index 9f6008e..1563d48 100644 --- a/docs/source/stencil_doc.py +++ b/docs/source/stencil_doc.py @@ -134,7 +134,8 @@ if __name__ == "__main__": md_code: str = '' for function_name, code in functions.items(): - md_code += get_stencil_section(function_name) + if 'get_42' not in function_name and not function_name.startswith('cast_'): + md_code += get_stencil_section(function_name) with open(args.output, 'wt') as f: f.write(md_code)