Skip to content

Utilities/Sphinx: Add 'cref' role

Matthew Woehlke requested to merge matthew-woehlke/cmake:sphinx-cref into master

Add a role that can be used to create local links (a la `LINK`_), but that also applies literal style. This is particularly useful for referring to subcommands within the command's documentation in a style that is consistent with :command:`BAR <foo(BAR)>` but is much less verbose.

Although this is intended for subcommands, it works with any local reference.

Merge request reports

Loading