All.reference template
<title>Reference Guide: <FileName></title>
<description>
TODO: Write a short paragraph describing what the script does and its key use cases.
</description>
<section name="WhatItDoes">
What It Does#
<objective>
<bullet>TODO: Explain core objective #1</bullet>
<bullet>TODO: Explain core objective #2</bullet>
<bullet>TODO: Explain core objective #3</bullet>
</objective>
<sample_behavior>
This script performs the following:
<bullet>Detects fenced code blocks (e.g., PlantUML, Mermaid, TikZ)</bullet>
<bullet>Renders them using the appropriate tool</bullet>
<bullet>Comments out the original code block</bullet>
<bullet>Inserts an image reference like <code></code></bullet>
</sample_behavior>
</section>
<section name="InputAndOutput">
Input And Output#
<inputs>
TODO: List accepted input formats (e.g., .md, .tex)
</inputs>
<outputs>
TODO: Describe the output file format and its expected content
</outputs>
</section>
<section name="SupportedFileTypes">
Supported File Types#
<sample_behavior>
<filetype name=".md">TODO: Markdown processing logic</filetype>
<filetype name=".tex">TODO: LaTeX file processing logic</filetype>
<use_cases>
<case description="Render Markdown to a new file">
<code_block language="bash">
render_images.py -i ABC.md -o XYZ.md --action render --run_dockerized
</section>
<section name="FlagOptions">
Flag Options#
<sample_behavior>
<code_block language="bash">
<flag name="-h, --help">Show help message and exit</flag>
<flag name="-i, --in_file_name">Input file path</flag>
<flag name="-o, --out_file_name">Output file path</flag>
<flag name="--action {open,render}">Action to execute</flag>
<flag name="--skip_action {open,render}">Action to skip</flag>
<flag name="--all">Run all available actions</flag>
<flag name="--dry_run">Simulate run (update files but don't render images)</flag>
<flag name="--dockerized_force_rebuild">Force Docker container rebuild</flag>
<flag name="--dockerized_use_sudo">Use sudo inside Docker container</flag>
<flag name="-v {TRACE,DEBUG,INFO,WARNING,ERROR,CRITICAL}">Set logging level</flag>
</code_block>
</sample_behavior>
</section>
<section name="Examples">
Examples#
<example title="Render to a new Markdown file">
<code_block language="bash">
render_images.py -i lesson.md -o lesson.rendered.md --action render
--run_dockerized
</section>
<section name="ErrorsAndFixes">
Errors And Fixes#
<error>
<issue>TODO: Describe a common error</issue>
<cause>TODO: Likely cause</cause>
<solution>TODO: Suggested fix or workaround</solution>
</error>
</section>
<section name="Dependencies">
Dependencies#
<dependency>
<bullet>TODO: Docker (for --run_dockerized support)</bullet>
<bullet>TODO: Graphviz, PlantUML, or other rendering tools depending on code block types</bullet>
<bullet>TODO: Any other external CLI utilities used in subprocess calls</bullet>
</dependency>