{%- assign module = include.i | split: "." | first -%}
{%- if module == "pyatv" -%}
  {%- assign module = "" -%}
  {%- assign path = "#" | append: include.i -%}
{%- else -%}
  {%- assign path = "#pyatv." | append: include.i -%}
{%- endif -%}
{%- assign url = '/api/' | append: module | append: path | relative_url -%}
{{ '<a href="URL">PATH</a>' | replace: "URL", url | replace: "PATH", include.i }}