mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
13 lines
359 B
JavaScript
13 lines
359 B
JavaScript
const docs = require('vue-docgen-api');
|
|
const path = require('path');
|
|
|
|
/**
|
|
* Generate an object of API documentation.
|
|
* @param documentationRootDir
|
|
* @return {Promise<ComponentDoc>}
|
|
*/
|
|
module.exports = async (documentationRootDir) => {
|
|
const file = path.resolve(documentationRootDir, '../src/components/Select.vue');
|
|
return await docs.parse(file);
|
|
};
|