render directory inside a code block
minor #3933 render directory inside a code block (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

render directory inside a code block

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #3932

Commits
-------

6386f9c render directory inside a code block
Backporting #3935
Merge branch '2.3' into 2.4