Adding a docstring below the variable definition (even an empty one, i.e. """""") means it gets picked up and cross-referenced by mkdocs/mkdocstrings.
Credit to pawamoy on GitHub: https://github.com/mkdocstrings/mkdocstrings/discussions/801#discussioncomment-14564914