We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4008574 commit 9ed120dCopy full SHA for 9ed120d
src/build/mdn-comments.ts
@@ -50,7 +50,7 @@ function extractSummary(markdown: string): string {
50
return normalizedText.split(" ")[0] || ""; // Fallback: first word if no sentence found
51
}
52
53
-async function getFolders(dirPath: URL): Promise<URL[]> {
+async function getDirectories(dirPath: URL): Promise<URL[]> {
54
try {
55
const entries = await fs.readdir(dirPath, {
56
withFileTypes: true,
@@ -94,7 +94,7 @@ async function getIndexMdContents(
94
95
export async function generateDescription(): Promise<Record<string, string>> {
96
97
- const folders = await getFolders(basePath);
+ const folders = await getDirectories(basePath);
98
if (folders.length > 0) {
99
return await getIndexMdContents(folders);
100
0 commit comments