mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-12 17:22:25 +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
|
||||
const section = mdx.frontmatter.section ?? parentFolder
|
||||
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 = {
|
||||
stringName: mdx.frontmatter.api_string_name ?? null,
|
||||
baseClass: baseClass
|
||||
? {
|
||||
title: mdx.frontmatter.title,
|
||||
slug: mdx.frontmatter.api_base_class,
|
||||
}
|
||||
: null,
|
||||
baseClass,
|
||||
trainable: mdx.frontmatter.api_trainable ?? null,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user