run prettier formatting

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-08-09 11:42:22 +02:00
parent 467b758a7a
commit 923491eece
311 changed files with 1449 additions and 1667 deletions
+2 -3
View File
@@ -139,9 +139,8 @@ async function findExternalDocsLinks(dir) {
const match = content.match(/---(?:\r|\n|.)*^id: (.*)$/m);
// Both docs with an id and without should remove trailing /index
const realPath = (match
? joinPath(dirname(url), match[1])
: url.replace(/\.md$/, '')
const realPath = (
match ? joinPath(dirname(url), match[1]) : url.replace(/\.md$/, '')
).replace(/\/index$/, '');
paths.set(url, realPath);