Skip to content

Commit

Permalink
Try fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv committed Jan 16, 2025
1 parent 7dc4d40 commit 24f6fd6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions site/api/api_gen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ Deno.stdout.writeSync(
);
const cache = createCache();
const dot = enc.encode(".");
const docs = await doc(paths.map(([id]) => id), { load: cache.load });
const refs: Array<Ref> = paths.map(
([id, path, slug, name, description, shortdescription]): Ref => {
const nodes = docs[id];

const refs: Array<Ref> = await Promise.all(paths.map(
async (
[id, path, slug, name, description, shortdescription],
): Promise<Ref> => {
const nodes = Object.values(await doc([id], { load: cache.load })).flat();
Deno.stdout.writeSync(dot);
return [
nodes.sort((a, b) => a.name.localeCompare(b.name)),
Expand All @@ -65,7 +67,7 @@ const refs: Array<Ref> = paths.map(
shortdescription,
];
},
);
));
Deno.stdout.writeSync(enc.encode("done\n"));

function namespaceGetLink(
Expand Down Expand Up @@ -101,6 +103,7 @@ function createDoc(
slug.replaceAll("/", " / ")
}</a> / ${node.name}</sup></div>`;
let component: JSX.Element | null = null;
node.declarationKind;
switch (node.kind) {
case "class":
component = <Class getLink={getLink} parent={classParent}>{node}</Class>;
Expand Down

0 comments on commit 24f6fd6

Please sign in to comment.