When the documentation is generated by GitHub Actions and the result is published on GitHub the warnings are not well / not easy readable. Placing them in a "fenced code" will improve this. (see e.g. https://github.com/CGAL/cgal/pull/7445#issuecomment-1549305160)