Skip to content

Commit

Permalink
fix: dont fail on non-numeric id attributes (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
barjin authored Jan 22, 2025
1 parent 36f9484 commit f34ff19
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apify/docusaurus-plugin-typedoc-api",
"version": "4.3.10",
"version": "4.3.11",
"description": "Docusaurus plugin that provides source code API documentation powered by TypeDoc. ",
"keywords": [
"docusaurus",
Expand Down
4 changes: 3 additions & 1 deletion packages/plugin/src/utils/reexports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ function getMaxId(obj: any) {
if (typeof obj[key] === 'object') {
maxId = Math.max(maxId, getMaxId(obj[key]));
} else if (key === 'id') {
maxId = Math.max(maxId, obj[key]);
if (Number.isInteger(obj[key])) {
maxId = Math.max(maxId, obj[key]);
}
}
}

Expand Down
6 changes: 6 additions & 0 deletions playground/website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ const config: Config = {
moduleShortcutsPath: __dirname + '/../python/module_shortcuts.json',
pythonModulePath: __dirname + '/../python/src',
},
reexports: [
{
url: 'https://crawlee.dev/python/api/class/Dataset',
group: 'Classes',
},
],
}),
],

Expand Down

0 comments on commit f34ff19

Please sign in to comment.