mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
fix bug that docs not loading
This commit is contained in:
parent
c6336453bc
commit
50ccb23bd6
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ router.get('/docs.json', async ctx => {
|
|||
}
|
||||
|
||||
docs.push({
|
||||
path: path.replace(`${dirPath}/`, '').split('.')[0],
|
||||
path: path.match(new RegExp(`docs\/${lang}\/(.+?)\.md$`))![1],
|
||||
title: markdown.renderer.render(headingTokens, {}, {}),
|
||||
summary: markdown.renderer.render(firstParagrapfTokens, {}, {}),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue