Link to LSST documents given their handle using LSST's ls.st link
    shortener.

    Example::

        :ldm:`151`

def lsst_doc_shortlink_role(name, rawtext, text, lineno, inliner,
                            options=None, content=None):
    """Link to LSST documents given their handle using LSST's ls.st link
    shortener.

    Example::

        :ldm:`151`
    """
    options = options or {}
    content = content or []
    node = nodes.reference(
        text='{0}-{1}'.format(name.upper(), text),
        refuri='https://ls.st/{0}-{1}'.format(name, text),
        **options)
    return [node], []