Skip to content

Commit

Permalink
docs(nxdev): update package schema list link (nrwl#11432)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcabanes authored Aug 3, 2022
1 parent aa79910 commit 4f074e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function PackageSchemaList({
name: string;
description: string;
githubUrl: string;
id: string;
readme: { content: string; filePath: string };
};
seo: { title: string; description: string; url: string; imageUrl: string };
Expand All @@ -30,6 +31,7 @@ export function PackageSchemaList({
name: getPublicPackageName(pkg.name),
description: pkg.description,
githubUrl: pkg.githubRoot + pkg.root,
id: pkg.name,
get readme() {
const hasOverview = pkg.documentation.find((d) => d.id === 'overview');
return !!hasOverview
Expand Down Expand Up @@ -129,7 +131,7 @@ export function PackageSchemaList({
<div className="prose mb-16 max-w-none">{vm.markdown}</div>

<PackageReference
name={vm.pkg.name}
name={vm.pkg.id}
executors={pkg.executors}
generators={pkg.generators}
></PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function PackageReference({
<SchemaListItem
schema={executor}
packageName={name}
type="generator"
type="executors"
/>
))}
{executors.length === 0 && <EmptyList type="executor" />}
Expand All @@ -46,7 +46,7 @@ export function PackageReference({
<SchemaListItem
schema={generator}
packageName={name}
type="generator"
type="generators"
/>
))}
{generators.length === 0 && <EmptyList type="generator" />}
Expand All @@ -61,15 +61,15 @@ function SchemaListItem({
packageName,
}: {
schema: SchemaMetadata;
type: 'executor' | 'generator';
type: 'executors' | 'generators';
packageName: string;
}): JSX.Element {
return (
<li
key={schema.name}
className="focus-within:ring-blue-nx-base relative flex px-2 py-4 transition focus-within:ring-2 focus-within:ring-offset-2 hover:bg-gray-50"
>
{type === 'executor' ? (
{type === 'executors' ? (
<ChipIcon
className="h-8 w-8 flex-shrink-0 rounded-full text-gray-300"
role="img"
Expand Down

0 comments on commit 4f074e2

Please sign in to comment.