Improve directive documentation rendering.

Do not use `shortName` in the example but the last part of the `id`.
This allows human-readable names in the directives list (left column) while still having correct examples.