Closed jonrkarr closed 3 years ago
The examples are already valid Python, C or C++ programs that are all executed prior to building the documentation. The source code for the programs themselves are used as each example and the output of each program is collected and used as the output that you see in the documentation.
See run_docs_examples.
Given issues with the examples such as reported in #107, it would be helpful to add tests for the examples to avoid accumulating broken examples.