Expected to inject `readme` from the code and strip the prefix `//!` # Snipdoc: Code Documentation Made Simple readme after title Expected to inject `title` from the code and strip the prefix `//!` # Snipdoc: Code Documentation Made Simple Expected to inject `rust-print` from the code ```rust fn main() { println!("Welcome to Snipdoc") } ``` # Usage commands Expected to inject `create-db` from the code ```sh snipdoc create-db ``` Expected to skip injection as the content of the snippet is the same ```sh snipdoc run ``` Expected to ignore this section since the `not-found-snippet-to-inject` snippet id does not exist Expected to inject only `inject-from-yaml` snippet id from the YAML snippets configuration Inject from YAML file Expected to skip injections since `inject_from` is configured to inject from the code and not from the YAML Expected to inject only `inject-from-yaml` snippet id from the YAML. the `inject_from` value is `any` which means if snippet id found in one of the data source it injected Inject from YAML file Expected to skip inject, see in `snipdoc-config.yml` file that the path of this snippet is excluded from the run Expected to inject the content of the snippet with the given template ```yaml snippets: inject-from-yaml: content: |- Inject from YAML file path: main.rs ``` Expected to inject the content of the snippet with the pre-defined template ```yaml snippets: inject-from-yaml: content: |- Inject from YAML file path: main.rs ``` ```rust impl test { fn main() { println!("Welcome to Snipdoc") } } ``` Expected to inject the content of the snippet with the given template with a different comment tag # ```yaml snippets: inject-from-yaml: content: |- Inject from YAML file path: main.rs ``` #