mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 09:14:32 +03:00
Refactoring
This commit is contained in:
parent
d625737451
commit
7c31de6c34
|
@ -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