mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-28 23:09:16 +09:00
fix bug that docs not loading
This commit is contained in:
parent
d2c14b844e
commit
7705a7928e
@ -168,7 +168,7 @@ router.get('/docs.json', async ctx => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
docs.push({
|
docs.push({
|
||||||
path: path.replace(`${dirPath}/`, '').split('.')[0],
|
path: path.match(new RegExp(`docs\/${lang}\/(.+?)\.md$`))![1],
|
||||||
title: markdown.renderer.render(headingTokens, {}, {}),
|
title: markdown.renderer.render(headingTokens, {}, {}),
|
||||||
summary: markdown.renderer.render(firstParagrapfTokens, {}, {}),
|
summary: markdown.renderer.render(firstParagrapfTokens, {}, {}),
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user