mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 09:42:26 +03:00
Merge 397c2d0e32
into 41e07772dc
This commit is contained in:
commit
1cf6d0284a
|
@ -106,15 +106,18 @@ export const getStaticProps: GetStaticProps<PropsPage, ParsedUrlQuery> = async (
|
||||||
: null
|
: null
|
||||||
const section = mdx.frontmatter.section ?? parentFolder
|
const section = mdx.frontmatter.section ?? parentFolder
|
||||||
const sectionMeta = section ? recordSection[section] ?? null : null
|
const sectionMeta = section ? recordSection[section] ?? null : null
|
||||||
const baseClass = null
|
|
||||||
|
// Determine base class details from frontmatter, if provided
|
||||||
|
const baseClass = mdx.frontmatter.api_base_class
|
||||||
|
? {
|
||||||
|
title: mdx.frontmatter.api_base_class_title ?? mdx.frontmatter.title,
|
||||||
|
slug: mdx.frontmatter.api_base_class,
|
||||||
|
}
|
||||||
|
: null
|
||||||
|
|
||||||
const apiDetails: ApiDetails = {
|
const apiDetails: ApiDetails = {
|
||||||
stringName: mdx.frontmatter.api_string_name ?? null,
|
stringName: mdx.frontmatter.api_string_name ?? null,
|
||||||
baseClass: baseClass
|
baseClass,
|
||||||
? {
|
|
||||||
title: mdx.frontmatter.title,
|
|
||||||
slug: mdx.frontmatter.api_base_class,
|
|
||||||
}
|
|
||||||
: null,
|
|
||||||
trainable: mdx.frontmatter.api_trainable ?? null,
|
trainable: mdx.frontmatter.api_trainable ?? null,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user