 -%}

    {#- Figure out the document's source file path. -#}
    {%- set relative_path = pagename + page_source_suffix -%}
    {%- if not subdirectory -%}
      {%- set document_path = relative_path -%}
    {%- else -%}
      {%- set document_path = subdirectory + "/" + relative_path -%}
    {%- endif -%}

    {#- Don't allow http:// URLs -#}
    {%- if repo.startswith(
      (
        "http://github.com/",
        "http://gitlab.com/",
        "http://bitbucket.org/",
      )
    ) -%}
      {{ warning("C