mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-04 21:50:35 +03:00
Refactoring
This commit is contained in:
parent
d625737451
commit
7c31de6c34
|
@ -58,7 +58,7 @@ export const getStaticProps: GetStaticProps<PropsPage, ParsedUrlQuery> = async (
|
||||||
props: {
|
props: {
|
||||||
slug: args.params.slug,
|
slug: args.params.slug,
|
||||||
mdx: await serialize(
|
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,
|
parseFrontmatter: true,
|
||||||
mdxOptions: {
|
mdxOptions: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user