mirror of https://github.com/Nonannet/copapy.git
Docs: stencil selection updated
This commit is contained in:
parent
72b05bd05a
commit
348dad27bb
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ if __name__ == "__main__":
|
|||
md_code: str = ''
|
||||
|
||||
for function_name, code in functions.items():
|
||||
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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue