build(docs-infra): remove `disambiguator` doc-type (#42414)

Now that we disambiguate files by encoding the outputPath, there is
no need for the `disambiguator` doc-type.

PR Close #42414
This commit is contained in:
Pete Bacon Darwin 2021-05-29 18:06:13 +01:00 committed by Dylan Hunn
parent b0592c1be6
commit 15fca6ca94
2 changed files with 2 additions and 17 deletions

View File

@ -67,7 +67,7 @@ module.exports = new Package('angular-base', [
collectExamples.exampleFolders = []; collectExamples.exampleFolders = [];
generateKeywordsProcessor.ignoreWords = require(path.resolve(__dirname, 'ignore-words'))['en']; generateKeywordsProcessor.ignoreWords = require(path.resolve(__dirname, 'ignore-words'))['en'];
generateKeywordsProcessor.docTypesToIgnore = [undefined, 'example-region', 'json-doc', 'api-list-data', 'api-list-data', 'contributors-json', 'navigation-json', 'announcements-json', 'disambiguator']; generateKeywordsProcessor.docTypesToIgnore = [undefined, 'example-region', 'json-doc', 'api-list-data', 'api-list-data', 'contributors-json', 'navigation-json', 'announcements-json'];
generateKeywordsProcessor.propertiesToIgnore = ['basePath', 'renderedContent', 'docType', 'searchTitle']; generateKeywordsProcessor.propertiesToIgnore = ['basePath', 'renderedContent', 'docType', 'searchTitle'];
}) })
@ -168,5 +168,5 @@ module.exports = new Package('angular-base', [
}) })
.config(function(convertToJsonProcessor) { .config(function(convertToJsonProcessor) {
convertToJsonProcessor.docTypes = ['disambiguator']; convertToJsonProcessor.docTypes = [];
}); });

View File

@ -1,15 +0,0 @@
{% 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 %}