spaCy/website/pages
Odio Marcelino 908bfd66f8 Fix: base class metadata lost for API pages
What was wrong
`apiDetails.baseClass` in [website/pages/[...listPathPage].tsx](cci:7://file:///c:/Users/T2430514/Downloads/spaCy/website/pages/%5B...listPathPage%5D.tsx:0:0-0:0) was hard-coded to `null`, ignoring the `api_base_class` and `api_base_class_title` values provided in page front-matter.
As a result, API reference pages could not render “extends …​” information or generate correct cross-links, hurting usability and discoverability of the docs.

## How it’s fixed
The placeholder line was replaced with real logic:

```ts
const baseClass = mdx.frontmatter.api_base_class
  ? {
      title: mdx.frontmatter.api_base_class_title ?? mdx.frontmatter.title,
      slug:  mdx.frontmatter.api_base_class,
    }
  : null;
```
apiDetails.baseClass now receives this object, allowing the UI to show accurate base-class data whenever it’s supplied, while still defaulting to null when it isn’t.

Co-Authored-By: S. M. Mohiuddin Khan Shiam <147746955+mohiuddin-khan-shiam@users.noreply.github.com>
2025-06-29 22:51:37 +06:00
..
models Website migration from Gatsby to Next (#12058) 2023-01-11 17:30:07 +01:00
universe Website migration from Gatsby to Next (#12058) 2023-01-11 17:30:07 +01:00
_app.tsx Remove zoom locking (#12164) 2023-01-24 13:54:49 +01:00
_document.tsx Website migration from Gatsby to Next (#12058) 2023-01-11 17:30:07 +01:00
[...listPathPage].tsx Fix: base class metadata lost for API pages 2025-06-29 22:51:37 +06:00
404.js Website migration from Gatsby to Next (#12058) 2023-01-11 17:30:07 +01:00
index.tsx Add spacy-llm docs to website (#12782) 2023-07-24 14:44:47 +02:00