{% macro api_object(dataType) %}
    {%- set object_url = '' -%}
    {%- set object = (dataType[-1:1] == '*') ? dataType[:-1] : dataType -%}
    {%- set group = '' -%}

    {% for grouping in ['events', 'objects', 'enums', 'functions'] %}
        {% if collections['bzfs_api_' ~ grouping][object] is defined %}
            {% set group = grouping %}
            {% set object_url = url(collections['bzfs_api_' ~ grouping][object]) %}
        {% endif %}
    {% endfor %}

    {%- if object_url -%}
        <a href="{{ object_url }}">
            {{- dataType -}}{{- (group == 'functions') ? '()' : '' -}}
        </a>
    {%- else -%}
        {{- dataType -}}
    {%- endif -%}
{% endmacro %}

{% macro api_object(dataType) %}
    {%- set object_url = '' -%}
    {%- set object = (dataType[-1:1] == '*') ? dataType[:-1] : dataType -%}
    {%- set group = '' -%}

    {% for grouping in ['events', 'types', 'functions'] %}
        {% if collections['bzfs_api_' ~ grouping][object] is defined %}
            {% set group = grouping %}
            {% set object_url = url(collections['bzfs_api_' ~ grouping][object]) %}
        {% endif %}
    {% endfor %}

    {%- if object_url -%}
        <a href="{{ object_url }}">
            {{- dataType -}}{{- (group == 'functions') ? '()' : '' -}}
        </a>
    {%- else -%}
        {{- dataType -}}
    {%- endif -%}
{% endmacro %}

Fix auto-links to API data types in docs
Fix auto-links to API data types in docs
