Browse Source

Up docs

pull/5358/head
Artur Arseniev 3 years ago
parent
commit
e4c83c33cc
  1. 2
      .eslintrc
  2. 3
      docs/api.js
  3. 3
      src/canvas/types.ts

2
.eslintrc

@ -20,6 +20,6 @@
}],
"ignorePatterns": [
"dist/*",
"private/*",
"private/*"
]
}

3
docs/api.js

@ -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, '')

3
src/canvas/types.ts

@ -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;

Loading…
Cancel
Save