Skip to content

Commit

Permalink
docs(nxdev): add external paths (nrwl#11741)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcabanes authored Aug 26, 2022
1 parent e7c86e1 commit 353d078
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions nx-dev/data-access-documents/src/lib/documents.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export class DocumentsApi {
const paths: StaticDocumentPaths[] = [];

function recur(curr, acc) {
if (curr.isExternal) return;
if (curr.itemList) {
curr.itemList.forEach((ii) => {
recur(ii, [...acc, curr.id]);
Expand Down
1 change: 1 addition & 0 deletions nx-dev/models-document/src/lib/documents.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export interface DocumentMetadata {
packageName?: string;
file?: string;
path?: string;
isExternal?: boolean;
itemList?: DocumentMetadata[];
}
1 change: 1 addition & 0 deletions scripts/documentation/map-link-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function filePathExtractor(file: any): string[] {
const paths: string[] = [];

function recur(curr): void {
if (curr.isExternal) return; // Removing external links
if (curr.itemList) {
curr.itemList.forEach((ii) => {
recur(ii);
Expand Down

0 comments on commit 353d078

Please sign in to comment.