Skip to content

Commit

Permalink
fix(nxdev): external related docs link (nrwl#13263)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacplmann authored Nov 18, 2022
1 parent 19ead43 commit fe99206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@
{
"name": "CI Setup",
"id": "ci-setup",
"tags": ["distribute-task-execution"],
"path": "/recipes/ci/ci-setup"
},
{
Expand Down
8 changes: 4 additions & 4 deletions nx-dev/data-access-documents/src/lib/documents.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,31 +249,31 @@ export class DocumentsApi {
tags.some((tag) => curr.tags.includes(tag)) &&
['concepts', 'more-concepts'].some((id) => acc.includes(id))
) {
curr.path = [...acc, curr.id].join('/');
curr.path = curr.path || [...acc, curr.id].join('/');
relatedConcepts.push(curr);
}
if (
curr.tags &&
tags.some((tag) => curr.tags.includes(tag)) &&
acc.includes('recipes')
) {
curr.path = [...acc, curr.id].join('/');
curr.path = curr.path || [...acc, curr.id].join('/');
relatedRecipes.push(curr);
}
if (
curr.tags &&
tags.some((tag) => curr.tags.includes(tag)) &&
['nx', 'workspace'].some((id) => acc.includes(id))
) {
curr.path = [...acc, curr.id].join('/');
curr.path = curr.path || [...acc, curr.id].join('/');
relatedReference.push(curr);
}
if (
curr.tags &&
tags.some((tag) => curr.tags.includes(tag)) &&
acc.includes('see-also')
) {
curr.path = [...acc, curr.id].join('/');
curr.path = curr.path || [...acc, curr.id].join('/');
relatedSeeAlso.push(curr);
}
}
Expand Down

0 comments on commit fe99206

Please sign in to comment.