Skip to content

Commit 5b6c47f

Browse files
antrossmolant
authored andcommitted
Fix: Category used for VS Code extension
Now appears under "Extensions" instead of "Vscodes". - - - - - - - - - - Fix webhintio/hint#2929 Close #827
1 parent 2e55d55 commit 5b6c47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers/update-site/documentation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const getResourcesFiles = async () => {
234234
name = nameSplitted[nameSplitted.length - 1];
235235
}
236236

237-
const resourceType = nameSplitted[0].split('-')[0];
237+
const resourceType = name === 'vscode-webhint' ? 'extension' : nameSplitted[0].split('-')[0];
238238
const dir = path.join(process.cwd(), constants.dirs.USER_GUIDE, `${resourceType}s`, nameSplitted.slice(0, nameSplitted.length - 1).join('/'));
239239
const dest = `${dir}/${name}.md`;
240240

0 commit comments

Comments
 (0)