Skip to content

Commit fefa459

Browse files
sarvajeantross
authored andcommitted
Fix: Changelog
Fix #799 Close #800
1 parent 4b8233a commit fefa459

File tree

3 files changed

+2878
-3738
lines changed

3 files changed

+2878
-3738
lines changed

helpers/update-site/documentation.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const hintDocumentationPaths = [
5555
];
5656

5757
const resources = [
58+
'configuration',
5859
'connector',
5960
'extension',
6061
'formatter',
@@ -168,14 +169,14 @@ const getResourcesFiles = async () => {
168169
const imageFiles = [];
169170

170171
for (const resource of resources) {
171-
const images = await globby([`${constants.dirs.NODE_MODULES}/@hint/{${resource}-*,configuration-*/node_modules/@hint/${resource}-*}/images/**/*`], { absolute: true });
172+
const images = await globby([`${constants.dirs.NODE_MODULES}/@hint/{${resource}-*,configuration-all/node_modules/@hint/${resource}-*}/images/**/*`], { absolute: true });
172173

173174
images.forEach((image) => {
174175
imageFiles.push(getImageItemFromResource(image, resource));
175176
});
176177
}
177178

178-
const docs = await globby([`${constants.dirs.NODE_MODULES}/@hint/{${resources.join(',')},configuration-*/node_modules/@hint/{${resources.join(',')}}}-*/{README.md,docs/*.md}`], { absolute: true });
179+
const docs = await globby([`${constants.dirs.NODE_MODULES}/@hint/{${resources.join(',')},configuration-all/node_modules/@hint/{${resources.join(',')}}}-*/{README.md,docs/*.md}`], { absolute: true });
179180

180181
const promises = docs.map(async (doc) => {
181182
const { content, frontMatter } = await getExistingContent(doc);
@@ -724,7 +725,7 @@ const createHintCategories = (files) => {
724725
};
725726

726727
const updateChangelog = async () => {
727-
const files = await globby([`${constants.dirs.HINT_PACKAGES}/*/CHANGELOG.md`]);
728+
const files = await globby([`${constants.dirs.NODE_MODULES}/{hint,@hint/{${resources.join(',')},configuration-all/node_modules/@hint/{${resources.join(',')}}}-*}/CHANGELOG.md`]);
728729

729730
const changelog = await files.reduce(async (totalPromise, file) => {
730731
const total = await totalPromise;

0 commit comments

Comments
 (0)