Skip to content

Commit

Permalink
docs(nxdev): take into account custom description (#13987)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcabanes authored Dec 22, 2022
1 parent 66ad046 commit c69e99f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions nx-dev/models-package/src/lib/package.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ export interface FileMetadata {
export interface PackageData {
description: string;
documents: {
tags: string[];
id: string;
name: string;
itemList: any[];
content: string;
description: string;
file: string;
id: string;
itemList: any[];
name: string;
path: string;
tags: string[];
}[];
executors: SchemaMetadata[];
generators: SchemaMetadata[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function generatePackageSchemas(): Promise<void[]> {
description: p.description,
documents: p.documents.map((d) => ({
...createDocumentMetadata({
description: p.description,
description: d.description || p.description,
file: ['generated', 'packages', p.name, 'documents', d.id].join('/'),
id: d.id,
itemList: d.itemList,
Expand Down

1 comment on commit c69e99f

@vercel
Copy link

@vercel vercel bot commented on c69e99f Dec 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.