Skip to content

Commit

Permalink
Fix constants not showing up due to examples being omitted
Browse files Browse the repository at this point in the history
  • Loading branch information
davepagurek committed Mar 20, 2024
1 parent 288ba4c commit 2813514
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,15 @@ for (const entry of allData) {

const { module, submodule, forEntry } = getModuleInfo(entry);

const examples = entry.examples.map(getExample);
const item = {
itemtype: 'property',
name: entry.name,
...locationInfo(entry),
...typeObject(entry.type),
description: descriptionString(entry.description),
example: examples.length > 0 ? examples : undefined,
alt: getAlt(entry),
module,
submodule,
class: forEntry || 'p5'
Expand Down

0 comments on commit 2813514

Please sign in to comment.