Generates the tutorial for the VGF minimal example.
()
| 248 | |
| 249 | |
| 250 | def generate_vgf_tutorial(): |
| 251 | """Generates the tutorial for the VGF minimal example.""" |
| 252 | vgf_example = get_jupyter_code( |
| 253 | "./examples/arm/vgf_minimal_example.ipynb", |
| 254 | get_bash=False, |
| 255 | which_cells=[0, 2, 3], |
| 256 | ) |
| 257 | |
| 258 | doc = "tutorial-arm-vgf.md" |
| 259 | with open(f"backends/arm/scripts/docgen/{doc}.in", "r") as f: |
| 260 | content = f.read() |
| 261 | content = content.replace("$MINIMAL_EXAMPLE", vgf_example) |
| 262 | |
| 263 | with open(f"docs/source/{doc}", "w") as f: |
| 264 | f.write(content) |
| 265 | |
| 266 | |
| 267 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected