You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add mechanism to verify that source code in documentation is valid #7951
Is your feature request related to a problem or challenge?
Our user guide and library guide contain code samples, but these can quickly become outdated and stop compiling and we have to automated way to check if they still compile.
Describe the solution you'd like
I propose that code samples be written as unit tests and that we then use a script to insert these code samples into the documentation when we publish the docs.
changed the title [-]Make sure that all code samples in the documentation are tested automatically[/-][+]Add mechanism to verify that source code in documentation is valid[/+]on Oct 28, 2023
Activity
[-]Make sure that all code samples in the documentation are tested automatically[/-][+]Add mechanism to verify that source code in documentation is valid[/+]alamb commentedon Aug 20, 2024
I believe this is now handled via the
doctestmacro, for example:datafusion/datafusion/core/src/lib.rs
Lines 618 to 643 in 37e54ee