mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 13:44:55 +03:00
Refactoring
This commit is contained in:
parent
8d3ed7c1a4
commit
7f52b89a04
|
@ -58,7 +58,7 @@ export const getStaticProps: GetStaticProps<PropsPage, ParsedUrlQuery> = async (
|
|||
props: {
|
||||
slug: args.params.slug,
|
||||
mdx: await serialize(
|
||||
fs.readFileSync(path.join('docs', args.params.slug + '.mdx'), 'utf-8'),
|
||||
fs.readFileSync(`${path.join('docs', args.params.slug)}.mdx`, 'utf-8'),
|
||||
{
|
||||
parseFrontmatter: true,
|
||||
mdxOptions: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user