Is there any method to go through all @example
blocks in the documentation of a package, extract self-contained scripts that were written by the author, and then use these scripts for precompilation of the package?
I am trying to avoid code repetition, and since I am already writing docs for the most common use cases of the package, I would like to take these use cases and precompile during package installation.
Anyone has thoughts or a proof of concept for this?