Skip to content

Commit

Permalink
Up docs
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Aug 30, 2023
1 parent 0d3c7f4 commit e4c83c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
}],
"ignorePatterns": [
"dist/*",
"private/*",
"private/*"
]
}
3 changes: 2 additions & 1 deletion docs/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ const getEventsMdFromTypes = async (filePath) => {
.then(cm => documentation.formats.md(cm, /*{ markdownToc: true }*/));
const indexFrom = resTypes.indexOf(START_EVENTS) + START_EVENTS.length;
const indexTo = resTypes.indexOf(END_EVENTS);

// console.log(`${resTypes}`)
const result = resTypes.substring(indexFrom, indexTo)
.replace(/\n### Examples\n/gi, '')
.replace(/\n## types\n/gi, '')
.replace(/## /gi, '* ')
.replace(/\\`/gi, '`')
.replace(/##/gi, '')
Expand Down
3 changes: 3 additions & 0 deletions src/canvas/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ export enum CanvasEvents {
pointer = 'canvas:pointer',
}
/**{END_EVENTS}*/

// need this to avoid the TS documentation generator to break
export default CanvasEvents;

0 comments on commit e4c83c3

Please sign in to comment.