mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 07:49:43 +02:00
feat(theme-classic): new configuration syntax for a simple footer (#6132)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com> Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
cb4265253a
commit
d987c22996
9 changed files with 364 additions and 91 deletions
|
@ -73,11 +73,8 @@ export type FooterLinkItem = {
|
|||
html?: string;
|
||||
prependBaseUrlToHref?: string;
|
||||
};
|
||||
export type FooterLinks = {
|
||||
title?: string;
|
||||
items: FooterLinkItem[];
|
||||
};
|
||||
export type Footer = {
|
||||
|
||||
export type FooterBase = {
|
||||
style: 'light' | 'dark';
|
||||
logo?: {
|
||||
alt?: string;
|
||||
|
@ -88,9 +85,21 @@ export type Footer = {
|
|||
href?: string;
|
||||
};
|
||||
copyright?: string;
|
||||
links: FooterLinks[];
|
||||
};
|
||||
|
||||
export type MultiColumnFooter = FooterBase & {
|
||||
links: Array<{
|
||||
title: string | null;
|
||||
items: FooterLinkItem[];
|
||||
}>;
|
||||
};
|
||||
|
||||
export type SimpleFooter = FooterBase & {
|
||||
links: FooterLinkItem[];
|
||||
};
|
||||
|
||||
export type Footer = MultiColumnFooter | SimpleFooter;
|
||||
|
||||
export type TableOfContents = {
|
||||
minHeadingLevel: number;
|
||||
maxHeadingLevel: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue