Skip to content

Commit

Permalink
feat: remove personal paths from generated docs (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubajmarek committed Jan 10, 2025
1 parent 2f9d4bc commit 9be0cf3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/update-components-api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ const getComponentsApi = async () => {
pathsComponentsLoop((componentPath) => {
promises.push(vueDocs.parse(`${pathComponentsRoot}/${componentPath}`));
});
const componentsApi = await Promise.all(promises);
const componentsApi = (await Promise.all(promises))
.map((component) => ({
...component,
sourceFiles: component.sourceFiles.map((sourceFile) => sourceFile
.replace(pathComponentsRoot, '/src/components')),
}));
return componentsApi;
};
function saveComponentsApiFile(componentsApi) {
Expand Down

0 comments on commit 9be0cf3

Please sign in to comment.