alamb commented on issue #11388: URL: https://github.com/apache/datafusion/issues/11388#issuecomment-3998157408
> Sphinx offers a great way to highlight specific lines in code blocks using emphasize-lines (see [Sphinx docs](https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-option-code-block-emphasize-lines)). However, cargo test --doc doesn't seem to parse Sphinx's directives for testing, as it strictly expects standard markdown ```rust blocks. I think we use doc-comment to run the tests via the rust `cargo test --doc` https://github.com/apache/datafusion/blob/92d0a5c527ed38b6ce3bad673f6cf5a372c71b0c/Cargo.toml#L153 And https://github.com/apache/datafusion/blob/92d0a5c527ed38b6ce3bad673f6cf5a372c71b0c/datafusion/core/src/lib.rs#L933-L936 Maybe there is some setting there we could use (we are on the 0.3 release of doc-comment and there is a 0.4 release...) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
