Skip to content

Commit

Permalink
Wrapping up exploration
Browse files Browse the repository at this point in the history
  • Loading branch information
stocaaro committed Jan 31, 2025
1 parent f1e1b48 commit 6bd1d66
Show file tree
Hide file tree
Showing 5 changed files with 5,357,716 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ApiDocs/ReferencePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const ReferencePage = ({ category }) => {
);
return (
<View className={'reference-page'}>
asd
{cat?.children?.map((child, idx) => (
<Fragment key={`reference-${idx}`}>
{idx !== 0 && <Divider marginTop={'medium'} />}
Expand Down
13 changes: 13 additions & 0 deletions src/data/process-typedoc.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { writeFileSync } from 'fs';

export const processReferences = (references, rootPackage) => {
// build flat object for easier faster lookups
const flatReferences = {};
Expand Down Expand Up @@ -66,5 +68,16 @@ export const processReferences = (references, rootPackage) => {
}
);

try {
writeFileSync(
'./parsedJson.json',
JSON.stringify(flatReferences, null, 2),
'utf8'
);
console.log('Successfully saved parsed API information');
} catch (error) {
console.log('An error has occurred ', error);
}

return flatReferences;
};
Loading

0 comments on commit 6bd1d66

Please sign in to comment.