angular-cn/aio/tools/transforms/templates/disambiguator.template.html
Pete Bacon Darwin 538286df16 build(docs-infra): add path disambiguation (#41788)
When two documents have the same `outputPath`, only differing by
letter casing, there can be problems on case-insensitive file-systems:
Only one of each of the docs would end up being written.

Moreover, the Webpack 5 bundler will error if it comes across files
that have this kind of ambiguous paths.

This commit adds a new docType: `disambiguator`, which will display
a list of the docs that match an ambiguous path. Each of the ambiguous
docs is then given a unique path and outputPath to ensure there are no
collisions.

PR Close #41788
2021-04-26 12:12:00 -07:00

15 lines
357 B
HTML

{% marked %}
# {$ doc.title $}
{% endmarked %}
{% block content %}
<div class="content">
There are multiple pages that match this path:
<ul>
{% for ambiguousDoc in doc.docs %}<li>
<a href="{$ ambiguousDoc.path $}">{$ ambiguousDoc.id $}</a>
{$ ambiguousDoc.shortDescription | marked $}
</li>{% endfor %}
</ul>
</div>
{% endblock %}