mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +02:00
fix(content-docs): properly display collocated social card image (#6744)
* fix(content-docs): properly display collocated social card image * oops
This commit is contained in:
parent
ddad9713e6
commit
051380aa4b
4 changed files with 12 additions and 2 deletions
|
@ -8,6 +8,10 @@
|
|||
declare module '@docusaurus/plugin-content-docs' {
|
||||
import type {RemarkAndRehypePluginOptions} from '@docusaurus/mdx-loader';
|
||||
|
||||
export interface Assets {
|
||||
image?: string;
|
||||
}
|
||||
|
||||
export type NumberPrefixParser = (filename: string) => {
|
||||
filename: string;
|
||||
numberPrefix?: number;
|
||||
|
@ -159,6 +163,7 @@ declare module '@theme/DocItem' {
|
|||
import type {
|
||||
PropNavigationLink,
|
||||
PropVersionMetadata,
|
||||
Assets,
|
||||
} from '@docusaurus/plugin-content-docs';
|
||||
|
||||
export type DocumentRoute = {
|
||||
|
@ -204,6 +209,7 @@ declare module '@theme/DocItem' {
|
|||
readonly metadata: Metadata;
|
||||
readonly toc: readonly TOCItem[];
|
||||
readonly contentTitle: string | undefined;
|
||||
readonly assets: Assets;
|
||||
(): JSX.Element;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue