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:
Joshua Chen 2022-02-23 18:21:22 +08:00 committed by GitHub
parent ddad9713e6
commit 051380aa4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 2 deletions

View file

@ -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;
};
}